Skip to content

Commit ca58aca

Browse files
SDK regeneration
1 parent f3ddda7 commit ca58aca

20 files changed

Lines changed: 422 additions & 661 deletions

.fern/metadata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"cliVersion": "4.92.0",
2+
"cliVersion": "4.107.0",
33
"generatorName": "fernapi/fern-java-sdk",
4-
"generatorVersion": "4.6.1",
4+
"generatorVersion": "4.6.2",
55
"generatorConfig": {
66
"package-prefix": "com.deepgram",
77
"base-api-exception-class-name": "DeepgramHttpException",
@@ -11,8 +11,8 @@
1111
},
1212
"enable-wire-tests": true
1313
},
14-
"originGitCommit": "0d16d3b0d2f3da69dc058ea78f235b2b11288371",
14+
"originGitCommit": "05bd7add608b322a6278fa20da22f2ed501d50ef",
1515
"originGitCommitIsDirty": true,
1616
"invokedBy": "manual",
17-
"sdkVersion": "0.3.0"
17+
"sdkVersion": "0.3.1"
1818
}

docs/Migrating-v0.2-to-v0.3.md

Lines changed: 0 additions & 257 deletions
This file was deleted.

src/main/java/com/deepgram/core/ClientOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ private ClientOptions(
4141
this.headers.putAll(headers);
4242
this.headers.putAll(new HashMap<String, String>() {
4343
{
44-
put("User-Agent", "com.deepgram:deepgram-java-sdk/0.3.0"); // x-release-please-version
44+
put("User-Agent", "com.deepgram:deepgram-sdk/0.3.1");
4545
put("X-Fern-Language", "JAVA");
46-
put("X-Fern-SDK-Name", "com.deepgram:deepgram-java-sdk");
47-
put("X-Fern-SDK-Version", "0.3.0"); // x-release-please-version
46+
put("X-Fern-SDK-Name", "com.deepgram.fern:api-sdk");
47+
put("X-Fern-SDK-Version", "0.3.1");
4848
}
4949
});
5050
this.headerSuppliers = headerSuppliers;

src/main/java/com/deepgram/resources/agent/v1/types/AgentV1History.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public Object get() {
3333
@SuppressWarnings("unchecked")
3434
public <T> T visit(Visitor<T> visitor) {
3535
if (this.type == 0) {
36-
return visitor.visit((AgentV1HistoryContent) this.value);
36+
return visitor.visit((ConversationHistoryMessage) this.value);
3737
} else if (this.type == 1) {
38-
return visitor.visit((AgentV1HistoryFunctionCalls) this.value);
38+
return visitor.visit((FunctionCallHistoryMessage) this.value);
3939
}
4040
throw new IllegalStateException("Failed to visit value. This should never happen.");
4141
}
@@ -60,18 +60,18 @@ public String toString() {
6060
return this.value.toString();
6161
}
6262

63-
public static AgentV1History of(AgentV1HistoryContent value) {
63+
public static AgentV1History of(ConversationHistoryMessage value) {
6464
return new AgentV1History(value, 0);
6565
}
6666

67-
public static AgentV1History of(AgentV1HistoryFunctionCalls value) {
67+
public static AgentV1History of(FunctionCallHistoryMessage value) {
6868
return new AgentV1History(value, 1);
6969
}
7070

7171
public interface Visitor<T> {
72-
T visit(AgentV1HistoryContent value);
72+
T visit(ConversationHistoryMessage value);
7373

74-
T visit(AgentV1HistoryFunctionCalls value);
74+
T visit(FunctionCallHistoryMessage value);
7575
}
7676

7777
static final class Deserializer extends StdDeserializer<AgentV1History> {
@@ -86,13 +86,13 @@ public AgentV1History deserialize(JsonParser p, DeserializationContext context)
8686
&& ((Map<?, ?>) value).containsKey("role")
8787
&& ((Map<?, ?>) value).containsKey("content")) {
8888
try {
89-
return of(ObjectMappers.JSON_MAPPER.convertValue(value, AgentV1HistoryContent.class));
89+
return of(ObjectMappers.JSON_MAPPER.convertValue(value, ConversationHistoryMessage.class));
9090
} catch (RuntimeException e) {
9191
}
9292
}
9393
if (value instanceof Map<?, ?> && ((Map<?, ?>) value).containsKey("function_calls")) {
9494
try {
95-
return of(ObjectMappers.JSON_MAPPER.convertValue(value, AgentV1HistoryFunctionCalls.class));
95+
return of(ObjectMappers.JSON_MAPPER.convertValue(value, FunctionCallHistoryMessage.class));
9696
} catch (RuntimeException e) {
9797
}
9898
}

0 commit comments

Comments
 (0)