public class Delta extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Delta() | 
| Delta(Delta source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getContent()Get 内容详情。 | 
| String | getReasoningContent()Get 思维链内容。用于展示模型思考过程,仅 Hunyuan-T1 系列模型可用。注意:在进行多轮对话时,请不要将此字段拼接到 messages 中。请求 messages 的请求参数中包含 reasoning_content,接口将报错。 | 
| String | getRole()Get 角色名称。 | 
| ToolCall[] | getToolCalls()Get 模型生成的工具调用,仅 hunyuan-functioncall 模型支持
说明:
对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setContent(String Content)Set 内容详情。 | 
| void | setReasoningContent(String ReasoningContent)Set 思维链内容。用于展示模型思考过程,仅 Hunyuan-T1 系列模型可用。注意:在进行多轮对话时,请不要将此字段拼接到 messages 中。请求 messages 的请求参数中包含 reasoning_content,接口将报错。 | 
| void | setRole(String Role)Set 角色名称。 | 
| void | setToolCalls(ToolCall[] ToolCalls)Set 模型生成的工具调用,仅 hunyuan-functioncall 模型支持
说明:
对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Delta()
public Delta(Delta source)
public String getRole()
public void setRole(String Role)
Role - 角色名称。public String getContent()
public void setContent(String Content)
Content - 内容详情。public ToolCall[] getToolCalls()
public void setToolCalls(ToolCall[] ToolCalls)
ToolCalls - 模型生成的工具调用,仅 hunyuan-functioncall 模型支持
说明:
对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。
注意:此字段可能返回 null,表示取不到有效值。public String getReasoningContent()
public void setReasoningContent(String ReasoningContent)
ReasoningContent - 思维链内容。用于展示模型思考过程,仅 Hunyuan-T1 系列模型可用。注意:在进行多轮对话时,请不要将此字段拼接到 messages 中。请求 messages 的请求参数中包含 reasoning_content,接口将报错。Copyright © 2025. All rights reserved.