You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 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.
---------
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,5 +70,5 @@ The `.bak` files are our manually patched versions protected by `.fernignore`. T
70
70
3. In `.fernignore`, replace each `.bak` path back to the original path for files that still need patches.
71
71
4. Remove `.fernignore` entries entirely for any files where the generator now produces correct output.
72
72
5. Delete all `.bak` files once review is complete.
73
-
6. Run checks (`./gradlew test`) to verify.
73
+
6. Run checks (`./gradlew test compileExamples`) to verify. `test` covers unit/wire tests including the README snippet compilation; `compileExamples` separately compiles the hand-maintained `examples/` directory and catches stale API call sites that `test` alone would miss.
74
74
7. Commit as `chore: re-apply manual patches after regen` and push.
* @return Languages detected in the user's speech, sorted by word count (descending). Only present on user-role messages when the listen model is flux-general-multi.
82
+
*/
83
+
@JsonProperty("languages")
84
+
publicOptional<List<String>> getLanguages() {
85
+
returnlanguages;
86
+
}
87
+
59
88
@java.lang.Override
60
89
publicbooleanequals(Objectother) {
61
90
if (this == other) returntrue;
@@ -68,12 +97,15 @@ public Map<String, Object> getAdditionalProperties() {
* <p>Languages detected in the user's speech, sorted by word count (descending). Only present on user-role messages when the listen model is flux-general-multi.</p>
@@ -151,9 +203,49 @@ public _FinalStage content(@NotNull String content) {
151
203
returnthis;
152
204
}
153
205
206
+
/**
207
+
* <p>Languages detected in the user's speech, sorted by word count (descending). Only present on user-role messages when the listen model is flux-general-multi.</p>
208
+
* @return Reference to {@code this} so that method calls can be chained together.
* <p>Languages detected in the user's speech, sorted by word count (descending). Only present on user-role messages when the listen model is flux-general-multi.</p>
0 commit comments