Repository navigation
feat(elevenlabs): instrument Agents WebSocket conversations - #20843
ZStriker19 wants to merge 1 commit into
Conversation
Codeowners resolved asResolved from the full PR diff against |
Circular import analysis
|
Dependency direction analysis🚨 New dependency direction violations detected 🚨5 new violation(s) of the dependency direction rules have been introduced by this PR:
📈 Existing violations got worse55 pre-existing violation(s) increased in severity (e.g. their target became more depended-on, or got pulled into an import cycle), though the edge itself isn't new: Show violations that got worse (showing 5 of 55 highest severity)
|
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 4 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 3054cc9 | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-10-06 20:30:29 Comparing candidate commit 3054cc9 in PR branch Found 0 performance improvements and 7 performance regressions! Performance is the same for 595 metrics, 10 unstable metrics, 6 known flaky benchmarks, 18 flaky benchmarks without significant changes.
|
Description
Adds LLM Observability instrumentation for ElevenLabs Python Agents over WebSocket, including synchronous and asynchronous conversations with default or custom audio interfaces.
Each provider event ID produces a workflow turn with direct response, speech-phase, and client-tool children. Transcripts and negotiated PCM16 audio are attached to response messages for full conversation playback. Repeated phrases stay separate, interrupted responses accept late transcripts, and optional completion events are not required. Typed user messages are captured even when no transcript is echoed.
Speech phases annotate
meta.metadata.ttfa_eligible: falsebecause transport timing and projected playback are estimates. Input and output share the existing 4 MiB encoded audio budget; unsupported or oversized audio preserves text.Testing
scripts/run-tests.scripts/lint checkspasses. Import analysis finds no cycle involving the new modules.Risks
This instruments SDK internals and is currently tested against 2.70.0. Playback placement and interruption trimming are estimates. The bounded two-turn window may omit transcripts arriving more than one subsequent turn late. Live validation of the production instrumentation remains pending.
Additional Notes
Scope is Python Agents WebSocket conversations. Standalone STT/TTS and browser transports are excluded. This PR is draft while coordinated rollout and live validation are completed.