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 |
getRole()
Get 角色名称。
|
ToolCall[] |
getToolCalls()
Get 模型生成的工具调用,仅 hunyuan-functioncall 模型支持
说明:
对于每一次的输出值应该以Id为标识对Type、Name、Arguments字段进行合并。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setContent(String Content)
Set 内容详情。
|
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, toJsonString
public 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,表示取不到有效值。Copyright © 2024. All rights reserved.