Class DashScopeOutput
java.lang.Object
io.agentscope.extensions.model.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"
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the first choice if available.getText()voidsetChoices(List<DashScopeChoice> choices) voidsetFinishReason(String finishReason) void
-
Constructor Details
-
DashScopeOutput
public DashScopeOutput()
-
-
Method Details
-
getChoices
-
setChoices
-
getFinishReason
-
setFinishReason
-
getText
-
setText
-
getFirstChoice
Get the first choice if available.- Returns:
- the first choice, or null if no choices
-