类 DashScopeOutput
java.lang.Object
io.agentscope.core.formatter.dashscope.dto.DashScopeOutput
DashScope output DTO.
This class represents the output section of a DashScope API response.
Example JSON:
{
"choices": [
{
"message": {...},
"finish_reason": "stop"
}
],
"finish_reason": "stop"
}
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get the first choice if available.getText()voidsetChoices(List<DashScopeChoice> choices) voidsetFinishReason(String finishReason) void
-
构造器详细资料
-
DashScopeOutput
public DashScopeOutput()
-
-
方法详细资料
-
getChoices
-
setChoices
-
getFinishReason
-
setFinishReason
-
getText
-
setText
-
getFirstChoice
Get the first choice if available.- 返回:
- the first choice, or null if no choices
-