feat(voice): preserve voice session end detail#1764
Conversation
1290e23 to
7330634
Compare
7330634 to
6f4fac2
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds plumbing in the CLI voice bridge to retain the voice_session_ended payload (CAS “end detail”) so downstream runtimes can surface richer call outcome information (e.g., endedBy, callEnded, reason, and future fields).
Changes:
- Store the
voice_session_endedpayload onVoiceToolCallSessionand expose it via a newend_detailproperty. - Improve session-ended logging to include key outcome fields when present.
- Add tests to ensure dict payloads are preserved and non-dict payloads result in an empty detail.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/uipath/src/uipath/_cli/_chat/_voice_bridge.py | Preserves and exposes voice_session_ended payload and logs key fields. |
| packages/uipath/tests/cli/chat/test_voice_bridge.py | Adds coverage for end_detail preservation and non-dict handling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🚨 Heads up:
|
|



Draft support for AgentInterfaces flow-part-2 voice session outcome plumbing. Not required for AgentInterfaces #1013. This preserves the voice_session_ended payload opaquely on the voice bridge so downstream runtimes can surface callEnded, endedBy, reason, and future CAS fields.