类的使用
io.agentscope.core.formatter.dashscope.dto.DashScopeResponse
使用DashScopeResponse的程序包
-
io.agentscope.core.formatter.dashscope中DashScopeResponse的使用
修饰符和类型方法说明DashScopeChatFormatter.parseResponse(DashScopeResponse result, Instant startTime) DashScopeMultiAgentFormatter.parseResponse(DashScopeResponse result, Instant startTime) DashScopeResponseParser.parseResponse(DashScopeResponse response, Instant startTime) Parse DashScopeResponse to AgentScope ChatResponse. -
io.agentscope.core.model中DashScopeResponse的使用
修饰符和类型方法说明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.返回变量类型为DashScopeResponse的类型的io.agentscope.core.model中的方法修饰符和类型方法说明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.类型变量类型为DashScopeResponse的io.agentscope.core.model中的方法参数修饰符和类型方法说明DashScopeChatModel.Builder.formatter(Formatter<DashScopeMessage, DashScopeResponse, DashScopeRequest> formatter) Sets the message formatter to use.类型变量类型为DashScopeResponse的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.