Skip to content

Commit d07b321

Browse files
committed
chore: sync from ark-apis f3c299ab7a
Auto-generated SDK sync from ark-apis at f3c299ab7a. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: 36d8e15468bc3fd86f2aaabf99b6c9209c2b8131 Ark-APIs-Commit: f3c299ab7a Release-Version: 0.10.0
1 parent e0692d7 commit d07b321

49 files changed

Lines changed: 906 additions & 4 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ The official Java library for accessing ModelArk on Volcengine and BytePlus. It
1010
<dependency>
1111
<groupId>com.volcengine</groupId>
1212
<artifactId>ark-runtime</artifactId>
13-
<version>0.9.0</version>
13+
<version>0.10.0</version>
1414
</dependency>
1515
```
1616

1717
### Gradle
1818

1919
```groovy
20-
implementation 'com.volcengine:ark-runtime:0.9.0'
20+
implementation 'com.volcengine:ark-runtime:0.10.0'
2121
```
2222

2323
## Choose Volcengine or BytePlus

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.0
1+
0.10.0

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.volcengine</groupId>
88
<artifactId>ark-runtime</artifactId>
9-
<version>0.9.0</version>
9+
<version>0.10.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>ark-runtime</name>

‎src/main/java/com/volcengine/ark/runtime/models/messages/ContentBlockStartContentBlock.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
@JsonSubTypes.Type(value = ContentBlockStartContentBlockWebSearchToolResult.class, name = "web_search_tool_result"),
3030
})
3131

32+
@com.volcengine.ark.runtime.utils.UnknownVariantFallback(UnknownContentBlockStartContentBlock.class)
3233
public interface ContentBlockStartContentBlock {
3334
public ContentBlockStartContentBlockType getType();
3435
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/ContentBlockStartContentBlockType.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626
public enum ContentBlockStartContentBlockType {
2727

28+
// SDK-only sentinel; original unknown wire value lives on UnknownVariant.
29+
UNKNOWN("__ark_unknown_variant__"),
30+
2831
SERVER_TOOL_USE("server_tool_use"),
2932

3033
TEXT("text"),
@@ -54,6 +57,7 @@ public String toString() {
5457
@JsonCreator
5558
public static ContentBlockStartContentBlockType fromValue(String value) {
5659
for (ContentBlockStartContentBlockType b : ContentBlockStartContentBlockType.values()) {
60+
if (b == UNKNOWN) continue;
5761
if (b.value.equalsIgnoreCase(value)) {
5862
return b;
5963
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/MessagesResponseContentBlockDelta.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
@JsonSubTypes.Type(value = MessagesResponseContentBlockDeltaThinking.class, name = "thinking_delta"),
2929
})
3030

31+
@com.volcengine.ark.runtime.utils.UnknownVariantFallback(UnknownMessagesResponseContentBlockDelta.class)
3132
public interface MessagesResponseContentBlockDelta {
3233
public MessagesResponseContentBlockDeltaType getType();
3334
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/MessagesResponseContentBlockDeltaType.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626
public enum MessagesResponseContentBlockDeltaType {
2727

28+
// SDK-only sentinel; original unknown wire value lives on UnknownVariant.
29+
UNKNOWN("__ark_unknown_variant__"),
30+
2831
INPUT_JSON_DELTA("input_json_delta"),
2932

3033
SIGNATURE_DELTA("signature_delta"),
@@ -52,6 +55,7 @@ public String toString() {
5255
@JsonCreator
5356
public static MessagesResponseContentBlockDeltaType fromValue(String value) {
5457
for (MessagesResponseContentBlockDeltaType b : MessagesResponseContentBlockDeltaType.values()) {
58+
if (b == UNKNOWN) continue;
5559
if (b.value.equalsIgnoreCase(value)) {
5660
return b;
5761
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/MessagesResponseContentPart.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
@JsonSubTypes.Type(value = MessagesResponseContentPartWebSearchToolResult.class, name = "web_search_tool_result"),
3030
})
3131

32+
@com.volcengine.ark.runtime.utils.UnknownVariantFallback(UnknownMessagesResponseContentPart.class)
3233
public interface MessagesResponseContentPart {
3334
public MessagesResponseContentPartType getType();
3435
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/MessagesResponseContentPartType.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626
public enum MessagesResponseContentPartType {
2727

28+
// SDK-only sentinel; original unknown wire value lives on UnknownVariant.
29+
UNKNOWN("__ark_unknown_variant__"),
30+
2831
SERVER_TOOL_USE("server_tool_use"),
2932

3033
TEXT("text"),
@@ -54,6 +57,7 @@ public String toString() {
5457
@JsonCreator
5558
public static MessagesResponseContentPartType fromValue(String value) {
5659
for (MessagesResponseContentPartType b : MessagesResponseContentPartType.values()) {
60+
if (b == UNKNOWN) continue;
5761
if (b.value.equalsIgnoreCase(value)) {
5862
return b;
5963
}

‎src/main/java/com/volcengine/ark/runtime/models/messages/MessagesStreamEvent.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
@JsonSubTypes.Type(value = MessagesResponseStreamMessageStop.class, name = "message_stop"),
3232
})
3333

34+
@com.volcengine.ark.runtime.utils.UnknownVariantFallback(UnknownMessagesStreamEvent.class)
3435
public interface MessagesStreamEvent {
3536
public MessagesStreamEventType getType();
3637
}

0 commit comments

Comments
 (0)