Commit Graph
23 Commits
Author SHA1 Message Date
Théo Monnom b2c0fb5b0c Unify provider streams and harden voice lifecycle persistence
Migrate provider WebSocket handling to shared typed protocols, pooling, pacing, and idle timers. Preserve SmallestAI continuations with response-based silence completion and isolated segments.

Keep connection acquisition, reconnect controls, stream cleanup, and host wrapper ownership safe across cancellation. Consolidate provider interfaces and typed MCP contracts.

Normalize pending speech boundaries and preserve conversation identity, ordering, late results, and acknowledged checkpoints across overlapping voice runs. Extend deterministic regressions, storage observations, and lifecycle documentation.

Validation: rebuilt extension; 2900 Python tests passed; formatting, lint, and type checks passed. Rust, binding, codegen, and deterministic simulation checks are recorded in the audit and lifecycle verification records.
2026-11-14 16:10:47 -08:00
Théo Monnom fe4495f99c storage: a write of unknown outcome raises the typed StorageUncertain
StorageError::Uncertain reached Python as a plain StorageError; it now maps
to livekit.agents.storage.StorageUncertain, declared once in the ABI and
generated, so a caller can tell it from a refusal that applied nothing.
2026-11-14 11:13:19 -08:00
Théo Monnom 9b296ceb9f realtime: one RealtimeModel, a plugin without session() refused at definition; stt: a provider that transcribes after the speech ends holds its end for the final 2026-11-13 23:45:44 -08:00
Théo Monnom 72f4f34721 websocket: a private transport with one plain base per kind (stt, tts, realtime); STT turns take the interim at commit and late finals correct by utterance; layers enforced by an import-boundary test 2026-11-13 22:54:39 -08:00
Théo Monnom c74fa34dcc plugins: 29 socket plugins on the base, aws/azure/spatius/speechmatics/upliftai off their SDKs; host proxies weak unless owned, every facade freed after close 2026-11-13 18:12:49 -08:00
Théo Monnom b0e000325d stt: a stream ends after its input by the core's speech state: goodbye and drain when audio went out, a clean end when nothing is owed 2026-11-13 16:11:09 -08:00
Théo Monnom 0385bdcfa5 socket base runs STT speech state, TTS segments, realtime readiness and pings; avatars on one base closed with their session; deepgram, cartesia, ultravox, phonic, PersonaPlex and Gemini Live on the base; DST survey clean 2026-11-13 14:19:20 -08:00
Théo Monnom 89b146579d typed provider errors decided by the core, storage answers each request once and orders rows by position, socket/avatar/forwarding bases, plugin contract tests 2026-11-13 13:08:09 -08:00
Théo Monnom 9e79bc520b errors reach their owner: awaited outcomes are read, fallbacks decided in the core, one shared helper per provider protocol (close codes, retries, usage, input audio, G.711, provider detail) 2026-11-13 09:50:33 -08:00
Théo Monnom 523387a614 providers: values read when used, capabilities fixed at construction; every Python task owned; tests never wait in real time 2026-11-12 23:49:19 -08:00
Théo Monnom c67f932cb7 retries: one owner per request, every retry announced through one helper, each failure reported once per provider 2026-11-12 22:58:36 -08:00
Théo Monnom 234fc2b3bc streams: after a provider fails, every input call returns that failure; one InputState decides, enforced by rust/check and the DST 2026-11-12 21:54:59 -08:00
Théo Monnom 544d5a1584 async crates: every task has an owner and all time comes from the injected clock, enforced by rust/check and Clippy 2026-11-12 21:16:20 -08:00
Théo Monnom 1507bea7dd py: a native facade is its native class; identity resolved in the core; _core_leg removed 2026-11-12 20:09:45 -08:00
Théo Monnom d88f8df204 logs: only LiveKit's Rust lines below WARN unless RUST_LOG says otherwise; startup internals at DEBUG; refusals say why; registration names its transport 2026-11-12 17:15:04 -08:00
Théo Monnom e4d3c71a6a tts: options owned by the core, one final error event; tests current, fast and bounded by a 10 s timeout 2026-11-12 16:18:34 -08:00
Théo Monnom 5f527a3f61 py: a provider reaching the core runs as its _core_leg names, wherever it is passed 2026-11-12 15:10:36 -08:00
Théo Monnom b3d43d0c4c voice: a node over the session's default runs the native provider, not its Python wrapper 2026-11-12 14:28:43 -08:00
Théo Monnom 60d07ad7d6 tests: one top-level suite (host, plugins, smoke, e2e); CI split into rust, python and e2e workflows; the DST runs alone 2026-11-12 14:26:33 -08:00
Théo Monnom ea7d502b7d runtime: the session owner keeps a console --record recording in .livekit/sessions/ 2026-11-12 14:17:44 -08:00
Théo Monnom 988bd6bddb console: --record keeps the report and the audio in .livekit/sessions/ 2026-11-12 14:12:54 -08:00
Théo Monnom 111eed17ef repo: examples move back to the root, shared by every language 2026-11-12 14:02:56 -08:00
Théo Monnom 82d546f599 repo: the Python SDK moves under python/, the generated OTel registry to otel/; no pydantic-ai comparisons 2026-11-12 13:20:11 -08:00