Merged
Conversation
theomonnom
approved these changes
Mar 31, 2026
Member
theomonnom
left a comment
There was a problem hiding this comment.
lgtm! pending and update could be merged
osimhi213
added a commit
to de-id/livekit-agents
that referenced
this pull request
Apr 3, 2026
* upstream/main: (26 commits) fix(cartesia): handle flush_done message in TTS _recv_task (livekit#5321) docs: add example agent replies to AsyncToolset (livekit#5313) add tag field to evaluation OTEL log records (livekit#5315) (phonic) Add `min_words_to_interrupt` to Phonic plugin options (livekit#5304) use delta aggregation temporality for otel metrics (livekit#5314) fix(openai realtime): support per-response tool_choice in realtime sessions (livekit#5211) add 7-day uv cooldown (livekit#5290) fix is_context_type for generic RunContext types (livekit#5307) evals: custom judges, tag metadata, and OTEL improvements (livekit#5306) feat: OTEL metrics for latencies, usage, and connection timing (livekit#4891) add session_end_timeout and gracefully cancel entrypoint on shutdown (livekit#4580) fix(core): reduce TTS output buffering latency (livekit#5292) (phonic) Update languages fields (livekit#5285) fix(cli): prevent api_key/api_secret from leaking in tracebacks (livekit#5300) fix(core): fix BackgroundAudioPlayer.play() hanging indefinitely (livekit#5299) add AsyncToolset (livekit#5127) append generate_reply instructions as system msg and convert it to user msg if unsupported (livekit#5287) fix(core): reset user state to listening when audio is disabled (livekit#5198) feat(mistralai): add ref_audio support to Voxtral TTS for zero-shot voice cloning (livekit#5278) (gemini-3.1-flash-live-preview): add warning for generate_reply (livekit#5286) ...
russellmartin-livekit
pushed a commit
that referenced
this pull request
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AsyncToolset lets tools run in the background while the voice agent keeps talking. Example
How it works:
Progress updates: Long-running tools can push intermediate status messages (e.g. "Found 3 flights, confirming the best one...") into the conversation via
ctx.update(). The tool updates and results are injected as tool outputs immediately when updates are created.Delivery timing: Reply is generated when the agent is idle. Multiple updates from concurrent tools are merged into a single reply to avoid back-to-back replies. If the agent already replied after update injection (e.g. the user asked about it and the LLM answered from context), the tool reply is skipped.
Duplicate prevention: To avoid calling the same async tool multiple times for the same goal, by default it rejects the duplicate and lets the LLM re-call with explicit confirmation, cancel the existing task, or do nothing.