r/code • • Jan 14 '25

Help Please Python agent won't connect to Livekit room.

I'm starting to work on my first coding project, and i can't get the agent to connect to a Livekit hosted playground. When the program starts, the hosted playground opens and allows me to connect but, the agent doesn't activate. I feel I'm most likely missing a major aspect of the code, but I can't pinpoint it.

https://pastebin.com/4GxdMc26 ,hopefully this link works.

I know that something with the token is probably wrong, but I highly suspect I have other inaccuracies in the code. What do you guys notice?

3 Upvotes

4 comments sorted by