Repository navigation
Conversation
There was a problem hiding this comment.
Devin Review found 1 potential issue.
2 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| @server.rtc_session() | ||
| async def entrypoint(ctx: JobContext) -> None: | ||
| # each log entry will include these fields | ||
| @server.rtc_session(agent_name="my-agent") |
There was a problem hiding this comment.
🔴 Starter agent missing from rooms
After the documented dev launch, rtc_session registers my-agent, so rooms created without explicit dispatch get no assistant. The hardcoded name also overrides LIVEKIT_AGENT_NAME, so dispatches targeting a previously configured name no longer reach it.
Learn more
The root README’s example launch command starts the worker without a dispatch step. The worker’s dispatch contract says named workers do not receive jobs automatically when a room is created. The name resolution order also puts the decorator’s name ahead of LIVEKIT_AGENT_NAME, which the previous unnamed decorator honored.
Example: Run the example in dev and join a new room with a room token that does not request an agent. The client joins but never hears a greeting, because no job starts for the named starter.
Recommended fix: If the explicit name must stay to match upstream, add a my-agent dispatch step to the documented dev flow and document how to migrate an existing custom name. Otherwise, retain the unnamed decorator and make the dispatch policy change in the source starter first.
Was this helpful? React with 👍 or 👎 to provide feedback.
…r's defaults as a starter copy
Why
basic_agent.pyis meant to be the starter agent, but it had drifted from agent-starter-python: different models, and a pile of feature demos added by feature PRs. Most of those demos are now SDK defaults (AEC warmup, markdown and emoji filters, false interruption resume) or deprecated (metrics_collected).Changes
basic_agent.pywith the starter'ssrc/agent.py. The header links to the starter andlk agent init.livekit-plugins-ai-cousticsto the voice_agents example dependencies, for the starter's noise cancellation.basic_agentstays a copy, with new feature demos going in their own example.basic_agent.pywas the onlyinference.responses.LLMexample (#8213). If we want to keep one, it should be its own file.Related
Testing
ruff checkandruff format --checkpass. Loaded the agent and the README snippet with dummy credentials. Not run against LiveKit Cloud.