feat!: sdk regeneration 2026-05-05#49
Merged
GregHolmes merged 6 commits intomainfrom May 6, 2026
Merged
Conversation
Re-applied the ClientOptions.java patch (release-please version markers and correct Deepgram SDK header constants — Fern still strips both). Updated the README Agent WebSocket snippet to match the regen's restructured AgentV1SettingsAgent: it's now a discriminated union with .of(...) factories, and the think/greeting fields moved into the new AgentV1SettingsAgentContext submodel.
The 2026-05-05 regen turned AgentV1SettingsAgent into a discriminated union (.of(AgentV1SettingsAgentContext)) and moved think/speak/listen/greeting into the new AgentV1SettingsAgentContext submodel, with renamed inner types (AgentV1SettingsAgentContextThink etc.). Update the four affected examples — InjectMessage, VoiceAgent, CustomProviders, ProviderCombinations — to use the new shape. Also update AGENTS.md to make the post-regen verify step run `./gradlew test compileExamples`. `test` alone misses the examples/ directory; only the README snippet test catches the equivalent break in the README, so without compileExamples the regen review can pass while hand-maintained example files still won't compile against the new API.
lukeocodes
approved these changes
May 6, 2026
GregHolmes
pushed a commit
that referenced
this pull request
May 6, 2026
🤖 I have created a release *beep* *boop* --- ## [0.4.0](v0.3.0...v0.4.0) (2026-05-06) ### ⚠ BREAKING CHANGES * sdk regeneration 2026-05-05 ([#49](#49)) * sdk regeneration 2026-04-29 ([#47](#47)) ### Features * sdk regeneration 2026-04-29 ([#47](#47)) ([0519ad3](0519ad3)) * sdk regeneration 2026-05-05 ([#49](#49)) ([f44678a](f44678a)) ### Bug Fixes * **reconnect:** listener bug fixes + transport factory policy hook ([#45](#45)) ([eac8ad2](eac8ad2)) --- 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>
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.
Summary
src/main/java/com/deepgram/core/ClientOptions.java(release-please version markers + Deepgram SDK header constants — Fern still strips both).examples/agent/files for the AgentV1SettingsAgent schema restructure../gradlew test compileExamplesso future regen reviews catch the hand-maintainedexamples/directory.Breaking Changes
AgentV1SettingsAgentis now a discriminated union:AgentV1SettingsAgent.of(AgentV1SettingsAgentContext)or.of(String). The previousAgentV1SettingsAgent.builder()is removed.think/speak/listen/greetingfields moved fromAgentV1SettingsAgentintoAgentV1SettingsAgentContext.AgentV1SettingsAgentContext.messagesis now nested under.context.messagesvia the newAgentV1SettingsAgentContextContexttype.0.4.0.Additional Changes
AgentV1SettingsAgentContextContext— new conversation-history container atAgentV1SettingsAgentContext.context.AgentV1SettingsAgentContextListen,AgentV1SettingsAgentContextListenProvider,AgentV1SettingsAgentContextListenProviderV1,AgentV1SettingsAgentContextListenProviderV2,AgentV1SettingsAgentContextListenProviderV2LanguageHintfor per-context Listen overrides.AgentV1SettingsAgentContextSpeak,AgentV1SettingsAgentContextThinkfor per-context Speak/Think overrides (the originalAgentV1SettingsAgentSpeak/AgentV1SettingsAgentThinktypes are retained).AgentV1SettingsAudioOutputContainer.GroqThinkProviderReasoningMode,OpenAiThinkProviderReasoningMode.Validation
./gradlew test compileExamples✅./gradlew unitTest✅./gradlew integrationTest✅./gradlew check✅ (afterspotlessApplyreformatted one example)mvn test✅ (55 tests pass)