Uses of Class
io.agentscope.extensions.model.openai.dto.OpenAIResponse
Packages that use OpenAIResponse
Package
Description
-
Uses of OpenAIResponse in io.agentscope.extensions.model.openai
Methods in io.agentscope.extensions.model.openai that return OpenAIResponseModifier and TypeMethodDescriptionOpenAIClient.call(String apiKey, String baseUrl, OpenAIRequest request) Make a synchronous API call.OpenAIClient.call(String apiKey, String baseUrl, OpenAIRequest request, io.agentscope.core.model.GenerateOptions options) Make a synchronous API call with options.Methods in io.agentscope.extensions.model.openai that return types with arguments of type OpenAIResponseModifier and TypeMethodDescriptionreactor.core.publisher.Flux<OpenAIResponse>OpenAIClient.stream(String apiKey, String baseUrl, OpenAIRequest request, io.agentscope.core.model.GenerateOptions options) Make a streaming API call with options for headers and query params.Method parameters in io.agentscope.extensions.model.openai with type arguments of type OpenAIResponseModifier and TypeMethodDescriptionOpenAIChatModel.Builder.formatter(io.agentscope.core.formatter.Formatter<OpenAIMessage, OpenAIResponse, OpenAIRequest> formatter) Sets the message formatter to use. -
Uses of OpenAIResponse in io.agentscope.extensions.model.openai.formatter
Methods in io.agentscope.extensions.model.openai.formatter with parameters of type OpenAIResponseModifier and TypeMethodDescriptionprotected io.agentscope.core.model.ChatResponseOpenAIResponseParser.parseChunkResponse(OpenAIResponse response, Instant startTime) Parse OpenAI streaming response chunk.protected io.agentscope.core.model.ChatResponseOpenAIResponseParser.parseCompletionResponse(OpenAIResponse response, Instant startTime) Parse OpenAI non-streaming response.io.agentscope.core.model.ChatResponseOpenAIBaseFormatter.parseResponse(OpenAIResponse response, Instant startTime) io.agentscope.core.model.ChatResponseOpenAIResponseParser.parseResponse(OpenAIResponse response, Instant startTime) Parse OpenAI response DTO to AgentScope ChatResponse.