Uses of Class
io.agentscope.extensions.model.openai.dto.OpenAIMessage
Packages that use OpenAIMessage
Package
Description
-
Uses of OpenAIMessage in io.agentscope.extensions.model.openai
Method parameters in io.agentscope.extensions.model.openai with type arguments of type OpenAIMessageModifier and TypeMethodDescriptionOpenAIChatModel.Builder.formatter(io.agentscope.core.formatter.Formatter<OpenAIMessage, OpenAIResponse, OpenAIRequest> formatter) Sets the message formatter to use. -
Uses of OpenAIMessage in io.agentscope.extensions.model.openai.compat.deepseek
Methods in io.agentscope.extensions.model.openai.compat.deepseek that return types with arguments of type OpenAIMessage -
Uses of OpenAIMessage in io.agentscope.extensions.model.openai.compat.glm
Methods in io.agentscope.extensions.model.openai.compat.glm that return OpenAIMessageModifier and TypeMethodDescriptionprotected OpenAIMessageGLMFormatter.convertMessage(io.agentscope.core.message.Msg msg, boolean hasMedia) protected OpenAIMessageGLMMultiAgentFormatter.convertMessage(io.agentscope.core.message.Msg msg, boolean hasMedia) Methods in io.agentscope.extensions.model.openai.compat.glm that return types with arguments of type OpenAIMessageModifier and TypeMethodDescriptionprotected List<OpenAIMessage>protected List<OpenAIMessage>protected static List<OpenAIMessage>GLMFormatter.ensureUserMessage(List<OpenAIMessage> messages) Ensure at least one user message exists in the conversation.Method parameters in io.agentscope.extensions.model.openai.compat.glm with type arguments of type OpenAIMessageModifier and TypeMethodDescriptionprotected static List<OpenAIMessage>GLMFormatter.ensureUserMessage(List<OpenAIMessage> messages) Ensure at least one user message exists in the conversation. -
Uses of OpenAIMessage in io.agentscope.extensions.model.openai.dto
Methods in io.agentscope.extensions.model.openai.dto that return OpenAIMessageModifier and TypeMethodDescriptionOpenAIMessage.Builder.build()OpenAIChoice.getDelta()OpenAIChoice.getEffectiveMessage()Get the effective message (either message or delta).OpenAIChoice.getMessage()Methods in io.agentscope.extensions.model.openai.dto that return types with arguments of type OpenAIMessageMethods in io.agentscope.extensions.model.openai.dto with parameters of type OpenAIMessageModifier and TypeMethodDescriptionvoidOpenAIChoice.setDelta(OpenAIMessage delta) voidOpenAIChoice.setMessage(OpenAIMessage message) Method parameters in io.agentscope.extensions.model.openai.dto with type arguments of type OpenAIMessageModifier and TypeMethodDescriptionOpenAIRequest.Builder.messages(List<OpenAIMessage> messages) voidOpenAIRequest.setMessages(List<OpenAIMessage> messages) -
Uses of OpenAIMessage in io.agentscope.extensions.model.openai.formatter
Methods in io.agentscope.extensions.model.openai.formatter that return OpenAIMessageModifier and TypeMethodDescriptionprotected OpenAIMessageOpenAIChatFormatter.convertMessage(io.agentscope.core.message.Msg msg, boolean hasMedia) Convert one AgentScope message to OpenAI message format.OpenAIMessageConverter.convertToMessage(io.agentscope.core.message.Msg msg, boolean hasMediaContent) Convert single Msg to OpenAI DTO Message.OpenAIConversationMerger.mergeToUserMessage(List<io.agentscope.core.message.Msg> msgs, Function<io.agentscope.core.message.Msg, String> roleFormatter, Function<List<io.agentscope.core.message.ContentBlock>, String> toolResultConverter) Merge conversation messages into a single OpenAIMessage.Methods in io.agentscope.extensions.model.openai.formatter that return types with arguments of type OpenAIMessageModifier and TypeMethodDescriptionprotected List<OpenAIMessage>Deprecated.protected List<OpenAIMessage>Deprecated.protected List<OpenAIMessage>Deprecated.protected List<OpenAIMessage>Deprecated.protected List<OpenAIMessage>protected List<OpenAIMessage>OpenAIChatFormatter.doFormat(List<io.agentscope.core.message.Msg> msgs, io.agentscope.core.model.GenerateOptions options) protected List<OpenAIMessage>protected List<OpenAIMessage>OpenAIMultiAgentFormatter.doFormat(List<io.agentscope.core.message.Msg> msgs, io.agentscope.core.model.GenerateOptions options) Method parameters in io.agentscope.extensions.model.openai.formatter with type arguments of type OpenAIMessageModifier 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.