Repository navigation
Conversation
|
There was a problem hiding this comment.
Devin Review found 1 potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| cli.runApp( | ||
| new ServerOptions({ | ||
| agent: fileURLToPath(import.meta.url), | ||
| agentName: 'my-agent', |
There was a problem hiding this comment.
🔴 Basic agent no longer auto-joins
agentName: 'my-agent' leaves rooms that rely on automatic dispatch without a voice agent. ServerOptions also ignores LIVEKIT_AGENT_NAME when a name is set in code.
Learn more
The connectivity walkthrough starts the basic agent in dev mode and opens a call without documenting any explicit dispatch. ServerOptions documents that a named server receives only explicit dispatches, and its name resolution gives a name in code precedence over LIVEKIT_AGENT_NAME. The worker then registers that resolved name. The development command can succeed while the call never reaches the example's entrypoint.
Example: Start the sample with only LiveKit credentials, then open a new room with a token that has no agent dispatch. The worker registers as my-agent, but no job arrives and the caller hears no greeting. A frontend that explicitly targets support and previously set LIVEKIT_AGENT_NAME=support also no longer selects this worker.
Recommended fix: Preserve the example's previous name resolution by omitting the hardcoded name. If the repository copy must retain the starter's explicit dispatch contract, update the connectivity walkthrough to dispatch my-agent and explain which setting controls the name.
Was this helpful? React with 👍 or 👎 to provide feedback.
…r's defaults as a starter copy
Description
basic_agent.tsis meant to be the starter agent, but it had drifted from agent-starter-node: different models, and a pile of feature demos added by feature PRs. Most of those demos are now SDK defaults (AEC warmup, text filters, false interruption resume, TTS-aligned transcripts).Changes Made
basic_agent.tswith the starter'ssrc/agent.tsandsrc/main.ts, in one file. The header links to the starter andlk agent init.@livekit/plugins-ai-cousticsto the examples, for the starter's noise cancellation.WorkerOptions,livekit.turnDetector), with the starter's models, the end call tool, and GPT-Live as the speech-to-speech option.basic_agent.tsfor plugin changes.basic_agentstays a copy, with new feature demos going in their own example.Pre-Review Checklist
pnpm build, eslint, and prettier pass locallyTesting
pnpm buildpasses. The README snippet type-checks.Related