Uses of Class
io.agentscope.core.chat.completions.model.ChatMessage
Packages that use ChatMessage
Package
Description
-
Uses of ChatMessage in io.agentscope.core.chat.completions.builder
Methods in io.agentscope.core.chat.completions.builder that return ChatMessageModifier and TypeMethodDescriptionChatCompletionsResponseBuilder.convertMsgToChatMessage(io.agentscope.core.message.Msg msg) Convert an internal Msg to an external ChatMessage. -
Uses of ChatMessage in io.agentscope.core.chat.completions.converter
Method parameters in io.agentscope.core.chat.completions.converter with type arguments of type ChatMessageModifier and TypeMethodDescriptionList<io.agentscope.core.message.Msg>ChatMessageConverter.convertMessages(List<ChatMessage> chatMessages) Converts a list ofChatMessageDTOs to framework internalMsgobjects, supporting full conversation history including tool calls. -
Uses of ChatMessage in io.agentscope.core.chat.completions.model
Methods in io.agentscope.core.chat.completions.model that return ChatMessageModifier and TypeMethodDescriptionstatic ChatMessageChatMessage.assistantWithToolCalls(String content, List<ToolCall> toolCalls) Creates an assistant message with tool calls.ChatChoice.getDelta()ChatChoice.getMessage()static ChatMessageChatMessage.toolResult(String toolCallId, String name, String content) Creates a tool result message.Methods in io.agentscope.core.chat.completions.model that return types with arguments of type ChatMessageMethods in io.agentscope.core.chat.completions.model with parameters of type ChatMessageModifier and TypeMethodDescriptionvoidChatChoice.setDelta(ChatMessage delta) voidChatChoice.setMessage(ChatMessage message) Method parameters in io.agentscope.core.chat.completions.model with type arguments of type ChatMessageModifier and TypeMethodDescriptionvoidChatCompletionsRequest.setMessages(List<ChatMessage> messages)