类 DashScopeRequest

java.lang.Object
io.agentscope.core.formatter.dashscope.dto.DashScopeRequest

public class DashScopeRequest extends Object
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
   }
 }
 
  • 构造器详细资料

  • 方法详细资料

    • getModel

      public String getModel()
    • setModel

      public void setModel(String model)
    • getInput

      public DashScopeInput getInput()
    • setInput

      public void setInput(DashScopeInput input)
    • getParameters

      public DashScopeParameters getParameters()
    • setParameters

      public void setParameters(DashScopeParameters parameters)
    • getEndpointType

      public EndpointType getEndpointType()
      Gets the endpoint type for endpoint selection.
      返回:
      the endpoint type (defaults to AUTO)
    • setEndpointType

      public void setEndpointType(EndpointType endpointType)
      Sets the endpoint type for endpoint selection.
      参数:
      endpointType - the endpoint type
    • builder

      public static DashScopeRequest.Builder builder()