11package com .volcengine .ark .runtime .model .completion .chat ;
22
3+ import com .fasterxml .jackson .annotation .JsonCreator ;
34import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
45import com .fasterxml .jackson .annotation .JsonProperty ;
56import com .volcengine .ark .runtime .utils .Converter ;
@@ -13,6 +14,9 @@ public class ChatMessage {
1314
1415 Object content ;
1516
17+ @ JsonProperty ("reasoning_content" )
18+ String reasoningContent ;
19+
1620 private String name ;
1721 @ JsonProperty ("function_call" )
1822 ChatFunctionCall functionCall ;
@@ -47,6 +51,7 @@ public void setContent(Object content) {
4751 this .content = content ;
4852 }
4953
54+
5055 public String getName () {
5156 return name ;
5257 }
@@ -79,6 +84,14 @@ public void setToolCallId(String toolCallId) {
7984 this .toolCallId = toolCallId ;
8085 }
8186
87+ public String getReasoningContent () {
88+ return reasoningContent ;
89+ }
90+
91+ public void setReasoningContent (String reasoningContent ) {
92+ this .reasoningContent = reasoningContent ;
93+ }
94+
8295 public static Builder builder () {
8396 return new Builder ();
8497 }
@@ -87,7 +100,8 @@ public static Builder builder() {
87100 public String toString () {
88101 return "ChatMessage{" +
89102 "role=" + role +
90- ", content='" + content + '\'' +
103+ ", content=" + content +
104+ ", reasoningContent='" + reasoningContent + '\'' +
91105 ", name='" + name + '\'' +
92106 ", functionCall=" + functionCall +
93107 ", toolCalls=" + toolCalls +
@@ -101,6 +115,9 @@ public static class Builder {
101115
102116 private Object content ;
103117
118+ @ JsonProperty ("reasoning_content" )
119+ private String reasoningContent ;
120+
104121 private String name ;
105122 @ JsonProperty ("function_call" )
106123 private ChatFunctionCall functionCall ;
@@ -146,10 +163,16 @@ public ChatMessage.Builder toolCallId(String toolCallId) {
146163 return this ;
147164 }
148165
166+ public ChatMessage .Builder reasoningContent (String reasoningContent ) {
167+ this .reasoningContent = reasoningContent ;
168+ return this ;
169+ }
170+
149171 public ChatMessage build () {
150172 ChatMessage chatMessage = new ChatMessage ();
151173 chatMessage .setRole (role );
152174 chatMessage .setContent (content );
175+ chatMessage .setReasoningContent (reasoningContent );
153176 chatMessage .setName (name );
154177 chatMessage .setFunctionCall (functionCall );
155178 chatMessage .setToolCalls (toolCalls );
0 commit comments