Confusing Documentaion
https://github.com/livekit/node-sdks/blob/a7e9dd400aa5c6e9882299bbc225860dbebdfd08/examples/agent-dispatch/index.ts#L28-L33
If you take a look at the comment string for the function, it says that the agent will be dispatched, if you just add the agent name to the access token.
This is not true though, there needs to be an additional call for this to happen. I think updating this could cause less confusion as to what exactly triggers the agent dispatch.
关闭于 2025-08-14 2 条评论