类的使用
io.agentscope.core.formatter.dashscope.dto.DashScopeRequest
使用DashScopeRequest的程序包
程序包
说明
-
io.agentscope.core.formatter.dashscope中DashScopeRequest的使用
修饰符和类型方法说明DashScopeChatFormatter.buildRequest(String model, List<DashScopeMessage> messages, boolean stream) Build a complete DashScopeRequest for the API call.DashScopeChatFormatter.buildRequest(String model, List<DashScopeMessage> messages, boolean stream, GenerateOptions options, GenerateOptions defaultOptions, List<ToolSchema> tools, ToolChoice toolChoice) Build a complete DashScopeRequest with full configuration.DashScopeMultiAgentFormatter.buildRequest(String model, List<DashScopeMessage> messages, boolean stream) Build a complete DashScopeRequest for the API call.修饰符和类型方法说明voidDashScopeChatFormatter.applyOptions(DashScopeRequest request, GenerateOptions options, GenerateOptions defaultOptions) voidDashScopeMultiAgentFormatter.applyOptions(DashScopeRequest request, GenerateOptions options, GenerateOptions defaultOptions) voidDashScopeChatFormatter.applyToolChoice(DashScopeRequest request, ToolChoice toolChoice) Apply tool choice configuration to DashScopeRequest.voidDashScopeMultiAgentFormatter.applyToolChoice(DashScopeRequest request, ToolChoice toolChoice) voidDashScopeChatFormatter.applyTools(DashScopeRequest request, List<ToolSchema> tools) voidDashScopeMultiAgentFormatter.applyTools(DashScopeRequest request, List<ToolSchema> tools) -
io.agentscope.core.formatter.dashscope.dto中DashScopeRequest的使用
-
io.agentscope.core.model中DashScopeRequest的使用
参数类型为DashScopeRequest的io.agentscope.core.model中的方法修饰符和类型方法说明DashScopeHttpClient.call(DashScopeRequest request, Map<String, String> additionalHeaders, Map<String, Object> additionalBodyParams, Map<String, String> additionalQueryParams) Make a synchronous API call with additional HTTP parameters.reactor.core.publisher.Flux<DashScopeResponse> DashScopeHttpClient.stream(DashScopeRequest request, Map<String, String> additionalHeaders, Map<String, Object> additionalBodyParams, Map<String, String> additionalQueryParams) Make a streaming API call with additional HTTP parameters.类型变量类型为DashScopeRequest的io.agentscope.core.model中的方法参数修饰符和类型方法说明DashScopeChatModel.Builder.formatter(Formatter<DashScopeMessage, DashScopeResponse, DashScopeRequest> formatter) Sets the message formatter to use.类型变量类型为DashScopeRequest的io.agentscope.core.model中的构造器参数限定符构造器说明DashScopeChatModel(String apiKey, String modelName, boolean stream, Boolean enableThinking, Boolean enableSearch, EndpointType endpointType, GenerateOptions defaultOptions, String baseUrl, Formatter<DashScopeMessage, DashScopeResponse, DashScopeRequest> formatter, HttpTransport httpTransport, String publicKeyId, String publicKey) Creates a new DashScope chat model instance with explicit API type.DashScopeChatModel(String apiKey, String modelName, boolean stream, Boolean enableThinking, Boolean enableSearch, GenerateOptions defaultOptions, String baseUrl, Formatter<DashScopeMessage, DashScopeResponse, DashScopeRequest> formatter, HttpTransport httpTransport, String publicKeyId, String publicKey) Creates a new DashScope chat model instance with automatic API type detection.