In the onBeforeRequest() method of the PartyServerOptions type, parameter lobby.party is type keyof Env. If you had a durable object named MyAgent, it will be "MyAgent".
However, routePartykitRequest() passes the kebab-case namespace value from the URL path as lobby.party instead of the actual class name. So the value will be "my-agent" using the same example.