Uses of Class
io.agentscope.extensions.model.openai.dto.OpenAIRequest
Packages that use OpenAIRequest
Package
Description
-
Uses of OpenAIRequest in io.agentscope.extensions.model.openai
Methods in io.agentscope.extensions.model.openai with parameters of type OpenAIRequestModifier 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.reactor.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 OpenAIRequestModifier and TypeMethodDescriptionOpenAIChatModel.Builder.formatter(io.agentscope.core.formatter.Formatter<OpenAIMessage, OpenAIResponse, OpenAIRequest> formatter) Sets the message formatter to use. -
Uses of OpenAIRequest in io.agentscope.extensions.model.openai.compat.glm
Methods in io.agentscope.extensions.model.openai.compat.glm with parameters of type OpenAIRequestModifier and TypeMethodDescriptionprotected static voidGLMFormatter.applyGLMToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) Apply GLM-specific tool choice handling.voidGLMFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidGLMMultiAgentFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidGLMFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) voidGLMMultiAgentFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) protected static voidGLMFormatter.stripUnsupportedSamplingParams(OpenAIRequest request) Sanitize the request according to the GLM Chat Completions API reference. -
Uses of OpenAIRequest in io.agentscope.extensions.model.openai.compat.kimi
Methods in io.agentscope.extensions.model.openai.compat.kimi with parameters of type OpenAIRequestModifier and TypeMethodDescriptionprotected static voidKimiFormatter.applyKimiToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) Apply Kimi-specific tool choice handling.voidKimiFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidKimiMultiAgentFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidKimiFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) voidKimiMultiAgentFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) protected static voidKimiFormatter.sanitizeKimiRequest(OpenAIRequest request) Sanitize the request according to the Kimi Chat Completions API reference. -
Uses of OpenAIRequest in io.agentscope.extensions.model.openai.compat.minimax
Methods in io.agentscope.extensions.model.openai.compat.minimax with parameters of type OpenAIRequestModifier and TypeMethodDescriptionprotected voidMiniMaxFormatter.applyMaxTokens(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) protected voidMiniMaxMultiAgentFormatter.applyMaxTokens(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidMiniMaxFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidMiniMaxMultiAgentFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidMiniMaxFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) voidMiniMaxMultiAgentFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) -
Uses of OpenAIRequest in io.agentscope.extensions.model.openai.dto
Methods in io.agentscope.extensions.model.openai.dto that return OpenAIRequest -
Uses of OpenAIRequest in io.agentscope.extensions.model.openai.formatter
Methods in io.agentscope.extensions.model.openai.formatter that return OpenAIRequestModifier and TypeMethodDescriptionOpenAIBaseFormatter.buildRequest(String model, List<OpenAIMessage> messages, boolean stream) Build a basic OpenAIRequest.OpenAIBaseFormatter.buildRequest(String model, List<OpenAIMessage> messages, boolean stream, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions, List<io.agentscope.core.model.ToolSchema> tools, io.agentscope.core.model.ToolChoice toolChoice) Build a complete OpenAIRequest with full configuration.Methods in io.agentscope.extensions.model.openai.formatter with parameters of type OpenAIRequestModifier and TypeMethodDescriptionprotected voidOpenAIChatFormatter.applyAdditionalBodyParams(OpenAIRequest request, io.agentscope.core.model.GenerateOptions opts) Apply additional body parameters from GenerateOptions to OpenAI request.protected voidOpenAIChatFormatter.applyMaxTokens(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) abstract voidOpenAIBaseFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) Apply generation options to the request.voidOpenAIChatFormatter.applyOptions(OpenAIRequest request, io.agentscope.core.model.GenerateOptions options, io.agentscope.core.model.GenerateOptions defaultOptions) voidGLMFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) Deprecated.voidGLMMultiAgentFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) Deprecated.abstract voidOpenAIBaseFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) Apply tool choice configuration to the request.voidOpenAIBaseFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice, String baseUrl, String modelName) Apply tool choice with provider context.voidOpenAIChatFormatter.applyToolChoice(OpenAIRequest request, io.agentscope.core.model.ToolChoice toolChoice) abstract voidOpenAIBaseFormatter.applyTools(OpenAIRequest request, List<io.agentscope.core.model.ToolSchema> tools) Apply tool schemas to the request.voidOpenAIBaseFormatter.applyTools(OpenAIRequest request, List<io.agentscope.core.model.ToolSchema> tools, String baseUrl, String modelName) Apply tool schemas with provider context.voidOpenAIChatFormatter.applyTools(OpenAIRequest request, List<io.agentscope.core.model.ToolSchema> tools)