类的使用
io.agentscope.core.model.ChatResponse
使用ChatResponse的程序包
程序包
说明
-
io.agentscope.core.formatter中ChatResponse的使用
修饰符和类型方法说明Formatter.parseResponse(TResp response, Instant startTime) Parse provider-specific response to AgentScope ChatResponse. -
io.agentscope.core.formatter.anthropic中ChatResponse的使用
修饰符和类型方法说明static ChatResponseAnthropicResponseParser.parseMessage(com.anthropic.models.messages.Message message, Instant startTime) Parse non-streaming Anthropic Message to ChatResponse.AnthropicChatFormatter.parseResponse(Object response, Instant startTime) AnthropicMultiAgentFormatter.parseResponse(Object response, Instant startTime) 返回变量类型为ChatResponse的类型的io.agentscope.core.formatter.anthropic中的方法修饰符和类型方法说明static reactor.core.publisher.Flux<ChatResponse> AnthropicResponseParser.parseStreamEvents(reactor.core.publisher.Flux<com.anthropic.models.messages.RawMessageStreamEvent> eventFlux, Instant startTime) Parse streaming Anthropic events to ChatResponse Flux. -
io.agentscope.core.formatter.dashscope中ChatResponse的使用
修饰符和类型方法说明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.formatter.gemini中ChatResponse的使用
修饰符和类型方法说明GeminiChatFormatter.parseResponse(com.google.genai.types.GenerateContentResponse response, Instant startTime) GeminiMultiAgentFormatter.parseResponse(com.google.genai.types.GenerateContentResponse response, Instant startTime) GeminiResponseParser.parseResponse(com.google.genai.types.GenerateContentResponse response, Instant startTime) Parse Gemini GenerateContentResponse to AgentScope ChatResponse. -
io.agentscope.core.formatter.ollama中ChatResponse的使用
修饰符和类型方法说明OllamaChatFormatter.parseResponse(OllamaResponse result, Instant startTime) OllamaMultiAgentFormatter.parseResponse(OllamaResponse result, Instant startTime) OllamaResponseParser.parseResponse(OllamaResponse response) Parses an OllamaResponse object into a ChatResponse object. -
io.agentscope.core.formatter.openai中ChatResponse的使用
修饰符和类型方法说明protected ChatResponseOpenAIResponseParser.parseChunkResponse(OpenAIResponse response, Instant startTime) Parse OpenAI streaming response chunk.protected ChatResponseOpenAIResponseParser.parseCompletionResponse(OpenAIResponse response, Instant startTime) Parse OpenAI non-streaming response.OpenAIBaseFormatter.parseResponse(OpenAIResponse response, Instant startTime) OpenAIResponseParser.parseResponse(OpenAIResponse response, Instant startTime) Parse OpenAI response DTO to AgentScope ChatResponse. -
io.agentscope.core.model中ChatResponse的使用
修饰符和类型方法说明ChatResponse.Builder.build()Builds a new ChatResponse instance with the set values.OllamaChatModel.chat(List<Msg> messages, GenerateOptions options) Chat with the model using default options.OllamaChatModel.chat(List<Msg> messages, OllamaOptions options) Chat with the model using Ollama-specific options.Creates a new instance of ChatResponse with the specified ID, copying all other fields from this instance.返回变量类型为ChatResponse的类型的io.agentscope.core.model中的方法修饰符和类型方法说明static reactor.core.publisher.Flux<ChatResponse> ModelUtils.applyTimeoutAndRetry(reactor.core.publisher.Flux<ChatResponse> responseFlux, GenerateOptions options, GenerateOptions defaultOptions, String modelName, String provider) Applies timeout and retry configuration to a model response Flux.protected reactor.core.publisher.Flux<ChatResponse> AnthropicChatModel.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses from Anthropic's API.protected abstract reactor.core.publisher.Flux<ChatResponse> ChatModelBase.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Internal implementation for streaming chat completion responses.protected reactor.core.publisher.Flux<ChatResponse> DashScopeChatModel.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses from DashScope's API.protected reactor.core.publisher.Flux<ChatResponse> GeminiChatModel.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses from Gemini's API.protected reactor.core.publisher.Flux<ChatResponse> OllamaChatModel.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) protected reactor.core.publisher.Flux<ChatResponse> OpenAIChatModel.doStream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) protected reactor.core.publisher.Flux<ChatResponse> OpenAIChatModel.doStream0(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) final reactor.core.publisher.Flux<ChatResponse> ChatModelBase.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.reactor.core.publisher.Flux<ChatResponse> Model.stream(List<Msg> messages, List<ToolSchema> tools, GenerateOptions options) Stream chat completion responses.类型变量类型为ChatResponse的io.agentscope.core.model中的方法参数修饰符和类型方法说明static reactor.core.publisher.Flux<ChatResponse> ModelUtils.applyTimeoutAndRetry(reactor.core.publisher.Flux<ChatResponse> responseFlux, GenerateOptions options, GenerateOptions defaultOptions, String modelName, String provider) Applies timeout and retry configuration to a model response Flux. -
io.agentscope.core.tracing中ChatResponse的使用
返回变量类型为ChatResponse的类型的io.agentscope.core.tracing中的方法修饰符和类型方法说明default reactor.core.publisher.Flux<ChatResponse> Tracer.callModel(ChatModelBase instance, List<Msg> inputMessages, List<ToolSchema> toolSchemas, GenerateOptions options, Supplier<reactor.core.publisher.Flux<ChatResponse>> modelCall) 类型变量类型为ChatResponse的io.agentscope.core.tracing中的方法参数修饰符和类型方法说明default reactor.core.publisher.Flux<ChatResponse> Tracer.callModel(ChatModelBase instance, List<Msg> inputMessages, List<ToolSchema> toolSchemas, GenerateOptions options, Supplier<reactor.core.publisher.Flux<ChatResponse>> modelCall)