Skip to content

feat!: sdk regeneration 2026-05-05#49

Merged
GregHolmes merged 6 commits intomainfrom
gh/sdk-gen-2026-05-05
May 6, 2026
Merged

feat!: sdk regeneration 2026-05-05#49
GregHolmes merged 6 commits intomainfrom
gh/sdk-gen-2026-05-05

Conversation

@GregHolmes
Copy link
Copy Markdown
Contributor

@GregHolmes GregHolmes commented May 5, 2026

Summary

  • Regenerate the Java SDK with the latest Fern output.
  • Re-apply the manual patch to src/main/java/com/deepgram/core/ClientOptions.java (release-please version markers + Deepgram SDK header constants — Fern still strips both).
  • Update README and four examples/agent/ files for the AgentV1SettingsAgent schema restructure.
  • Update AGENTS.md verify step to ./gradlew test compileExamples so future regen reviews catch the hand-maintained examples/ directory.

Breaking Changes

  • AgentV1SettingsAgent is now a discriminated union: AgentV1SettingsAgent.of(AgentV1SettingsAgentContext) or .of(String). The previous AgentV1SettingsAgent.builder() is removed.
  • The think / speak / listen / greeting fields moved from AgentV1SettingsAgent into AgentV1SettingsAgentContext.
  • AgentV1SettingsAgentContext.messages is now nested under .context.messages via the new AgentV1SettingsAgentContextContext type.
  • Downstream Java consumers will need import and constructor updates. Pre-1.0; release-please will land this as 0.4.0.

Additional Changes

  • Add AgentV1SettingsAgentContextContext — new conversation-history container at AgentV1SettingsAgentContext.context.
  • Add AgentV1SettingsAgentContextListen, AgentV1SettingsAgentContextListenProvider, AgentV1SettingsAgentContextListenProviderV1, AgentV1SettingsAgentContextListenProviderV2, AgentV1SettingsAgentContextListenProviderV2LanguageHint for per-context Listen overrides.
  • Add AgentV1SettingsAgentContextSpeak, AgentV1SettingsAgentContextThink for per-context Speak/Think overrides (the original AgentV1SettingsAgentSpeak / AgentV1SettingsAgentThink types are retained).
  • Add AgentV1SettingsAudioOutputContainer.
  • Add GroqThinkProviderReasoningMode, OpenAiThinkProviderReasoningMode.

Validation

  • ./gradlew test compileExamples
  • ./gradlew unitTest
  • ./gradlew integrationTest
  • ./gradlew check ✅ (after spotlessApply reformatted one example)
  • mvn test ✅ (55 tests pass)
  • All 41 examples compile against the regenerated SDK. 31 ran end-to-end against the live Deepgram API; 6 long-running streaming/agent examples connected and progressed through their happy path before being cut off at the 60s test ceiling. 4 examples failed for pre-existing environmental reasons (local proxy required / placeholder webhook URL / missing CLI arg / missing SageMaker fixture) — none are regen-induced regressions.

@GregHolmes GregHolmes requested a review from lukeocodes as a code owner May 5, 2026 14:42
fern-api Bot and others added 4 commits May 5, 2026 14:45
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.
@GregHolmes GregHolmes changed the title chore: SDK regeneration 2026-05-05 feat!: sdk regeneration 2026-05-05 May 5, 2026
@GregHolmes GregHolmes self-assigned this May 5, 2026
@GregHolmes GregHolmes merged commit f44678a into main May 6, 2026
8 of 10 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants