Support AssemblyAI inference context carryover#2057
Open
rosetta-livekit-bot[bot] wants to merge 5 commits into
Open
Support AssemblyAI inference context carryover#2057rosetta-livekit-bot[bot] wants to merge 5 commits into
rosetta-livekit-bot[bot] wants to merge 5 commits into
Conversation
🦋 Changeset detectedLatest commit: efb7c37 The changes in this PR will be included in the next version bump. This PR includes changesets to release 38 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Guard provider updates by live capabilities and propagate model capability changes so sessions and fallback adapters forward context only while supported. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover the emitted session.update payload and the runtime previous_context_n_turns opt-out required by the Rosetta stack contract. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: rosetta-livekit-bot[bot] <282703043+rosetta-livekit-bot[bot]@users.noreply.github.com> Co-authored-by: Toubat <brian.yin@livekit.io>
Resolve conflicts by keeping both STT context-option and user-input transcription tests, and by combining fallback-adapter test imports. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
agent_contextcarryover for supported U3 Pro family models.Source diff coverage
livekit-agents/livekit/agents/inference/stt.pyagents/src/inference/stt.tsports the linked PR's U3 Pro carryover model gate, option shape, capability wiring, and assistant-message forwarding. JS-specific safeguards prevent unsupported/disabled fallback children from being mutated and synchronize capability listeners across model changes.tests/test_inference_stt_context.pyagents/src/inference/stt.test.tscovers capability gating, assistant-only forwarding, 1,750-character tail truncation, ignored items, activesession.updatewire payloads, supported/unsupported/supported/disabled transitions, and listener cleanup.This PR is intentionally the lower stack. PR #2058 supersedes its temporary carryover-control surface with the current session-level Python architecture.
Validation
efb7c37e0f6a630f8761f6abe4a274391e42ab09.Cue voice E2E
sid_e3340fa16681.efb7c37e0f6a630f8761f6abe4a274391e42ab09.voicewith real LiveKit room transport, voice injection/recording, and Cartesiasonic-3through LiveKit inference TTS.session.create/session.updatepayloads and supplied deterministic transcripts; the LLM was deterministic.true/false/true/false; only the supported transition forwarded. Unsupported, disabled, and user items never appeared inagent_context.Bcharacters, SHA-256a35f084996bba9fddefe6fb9be79b29763dc6ecc810fada308db8601777abf58.1/1while active to0/0after close.CONTINUITY-2057and real TTS audio.~/.cue-cli/sessions/sid_e3340fa16681/events.jsonl, two commandresult.jsonfiles, sessionrecording.wav, and both command WAVs. All were flushed and inspected directly.Ported from livekit/agents#6466
Original PR description
already introduced in the assembly ai plugin
Post-rebase
origin/mainto clear conflicts infallback_adapter.test.tsimports andagent_session.test.tsdescribe blocks.efb7c37e0f6a630f8761f6abe4a274391e42ab09.