Repository navigation
feat(regen): add think live and flux tts support - #815
Conversation
|
dg-coreylweathers
left a comment
There was a problem hiding this comment.
What this PR does: Regenerates the Python SDK from deepgram-docs #1283 (Think Live) and adds think_live settings, send_update_think_live, send_inject_dynamic_agent_message, and typed ThinkLiveUpdated, FrustrationDetected, and conversational_behavior events, with the agent socket client hand-merged because it is frozen.
Approved. Hold merge until deepgram-docs #1283 merges. The worth-fixing items are in a follow-up comment below.
What I checked:
- Does it break existing code? No. Every new field is optional,
__all__went from 428 to 432 names with none removed, and the standing manual patches are all present. - Does the hand-merged socket reach the wire? Yes. Running
examples/33against production in Docker: SettingsApplied, ThinkLiveUpdated, ConversationText withfilleranddefault, FrustrationDetected. Tests assert the literalUpdateThink_Liveandis_dynamic: truepayloads. - Is Think Live live in production? Yes, under the new names only. Production rejects
think_conversational; staging still accepts only the old names, so smokes against staging fail until it catches up. - Gate: mypy clean, 1133 tests pass, 95% coverage, in Docker with the WireMock compose.
|
@GregHolmes follow-ups from the review, none blocking:
Server-side observation for the API team: |
🤖 I have created a release *beep* *boop* --- ## [7.16.0](v7.15.0...v7.16.0) (2026-10-27) ### Features * **Voice Agent Think Live:** Configure `agent.think_live` with the Deepgram v1 provider; update it during a session with `connection.send_update_think_live(...)`; and receive `ThinkLiveUpdated` and `FrustrationDetected` events. Use `connection.send_inject_dynamic_agent_message(...)` to request a Think Live-generated filler line. `ConversationText` now reports `conversational_behavior` (`default`, `backchannel`, `presence_check`, or `filler`); the service always sends it, while older or self-hosted payloads default to `default` in the Python model. ([#815](#815)) ([0a97e3a](0a97e3a)) * **Flux TTS:** Flux models now support 41 languages and 230 voices. Continue to pass the model as `flux-{voice}-{language}`; text normalization is available for English, German, Dutch, French, Hindi, Italian, Japanese, Portuguese, Russian, and Spanish. ([#815](#815)) ([0a97e3a](0a97e3a)) ### Bug Fixes * **Agent:** Document `ConversationText.conversational_behavior` as always sent, while retaining the `default` fallback for self-hosted and mocked payload compatibility. ([#819](#819)) ([cd8ba29](cd8ba29)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Greg Holmes <greg.holmes@deepgram.com>
Summary
Validation
Flux control wording remains source-spec owned and will be corrected there.