feat: Phase 2 — Text Intelligence (/read), models endpoints, Stream ergonomics - #165
Open
dg-coreylweathers wants to merge 1 commit into
Open
feat: Phase 2 — Text Intelligence (/read), models endpoints, Stream ergonomics#165dg-coreylweathers wants to merge 1 commit into
dg-coreylweathers wants to merge 1 commit into
Conversation
This was referenced Jul 31, 2026
…rgonomics - #94: Text Intelligence (/v1/read). Deepgram::text_intelligence() -> Read with analyze_text / analyze_url, an Options builder (sentiment, summarize, topics, intents, custom topics/intents, language, tag), and a response module reusing the shared sentiment/topic/intent types with a Read-specific Summary { text }. New example analyze_text. - Models endpoints: Deepgram::models() -> Models with get_models, get_model, get_project_models, get_project_model, plus typed ModelsResponse/Model/ ModelMetadata. New example models. - #163: futures::Stream. listen::websocket::TranscriptionStream already implements Stream<Item = Result<StreamResponse>>; re-exported and documented, with a new stream_futures example demonstrating StreamExt combinator usage. All additive (verified with cargo semver-checks: no new breaking changes beyond the Phase 1 #130 streaming change). Closes #94, #163 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
Live-verified against the production API (Rust 1.97 container):
Also addressed the review NIT: |
dg-coreylweathers
force-pushed
the
feat/phase-2-read-stream-models
branch
from
July 31, 2026 11:14
8532804 to
a5fa559
Compare
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.
Phase 2 — Text Intelligence & stream ergonomics
Stacked on top of #164 (Phase 1). Base is
feat/phase-1-quick-wins, so this diff shows only Phase 2; GitHub will retarget it tomainonce #164 merges.What's included
/v1/read).Deepgram::text_intelligence()→Readwithanalyze_text/analyze_url, anOptionsbuilder (sentiment, summarize [boolean, notv2], topics, intents, custom topics/intents + modes, language, tag), and a response module reusing the shared sentiment/topic/intent types with a Read-specificSummary { text }. Exampleanalyze_text.Deepgram::models()→Modelswithget_models,get_model,get_project_models,get_project_model; typedModelsResponse/Model/ModelMetadata. Examplemodels.futures::Stream.TranscriptionStreamalready implementsStream<Item = Result<StreamResponse>>; re-exported at the crate root and documented, with a newstream_futuresexample showingStreamExtcombinators. Verified against the current code (src/listen/websocket.rs:793).Verification (Rust 1.97 container)
-D warnings/ fmt /cargo test --all --all-features(139 tests, incl. new/read+ models deserialization tests) ✅cargo check(no-default / listen / speak / manage) ✅cargo semver-checks: no new breaking changes — the only 2 breaks are the Phase 1 Extra metadata support #130 streaming ones inherited from the base branch.Closes #94, #163