How it works
- The app creates a room with the agent configuration in the room metadata. Every participant in the room receives room metadata, so provider keys typed in Settings are left out of it
- It calls
AgentDispatchClient.createDispatch()to dispatch the job to the registered Python worker. Those keys ride in the dispatch metadata, which only the worker’s job receives - The browser receives a JWT and joins the room
- The worker picks up the job, reads the config from room metadata, puts the keys back, builds the LLM/TTS/STT instances, and starts the session