Class DashScopeRequest
java.lang.Object
io.agentscope.extensions.model.dashscope.dto.DashScopeRequest
DashScope API request DTO.
This class represents the top-level request structure for DashScope's text-generation and multimodal-generation APIs.
Example JSON:
{
"model": "qwen-plus",
"input": {
"messages": [...]
},
"parameters": {
"result_format": "message",
"temperature": 0.7
}
}
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDashScopeRequest(String model, DashScopeInput input, DashScopeParameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic DashScopeRequest.Builderbuilder()Gets the endpoint type for endpoint selection.getInput()getModel()voidsetEndpointType(EndpointType endpointType) Sets the endpoint type for endpoint selection.voidsetInput(DashScopeInput input) voidvoidsetParameters(DashScopeParameters parameters)
-
Constructor Details
-
DashScopeRequest
public DashScopeRequest() -
DashScopeRequest
-
-
Method Details
-
getModel
-
setModel
-
getInput
-
setInput
-
getParameters
-
setParameters
-
getEndpointType
Gets the endpoint type for endpoint selection.- Returns:
- the endpoint type (defaults to AUTO)
-
setEndpointType
Sets the endpoint type for endpoint selection.- Parameters:
endpointType- the endpoint type
-
builder
-