类 DashScopeMessageConverter
java.lang.Object
io.agentscope.core.formatter.dashscope.DashScopeMessageConverter
Converts AgentScope Msg objects to DashScope DTO message types.
This class provides unified conversion methods for both simple text messages and multimodal messages containing images, videos, and audio.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明convertToMessage(Msg msg, boolean useMultimodalFormat) Convert single Msg to DashScopeMessage.
-
构造器详细资料
-
DashScopeMessageConverter
-
-
方法详细资料
-
convertToMessage
Convert single Msg to DashScopeMessage.This is the main entry point for message conversion. It automatically selects the appropriate format based on the message content and the hasMediaContent flag.
- 参数:
msg- The message to convertuseMultimodalFormat- Whether to use multimodal content format (List of content parts)- 返回:
- The converted DashScopeMessage
-