Class MultiModalMessage.MultiModalMessageBuilder<C extends MultiModalMessage,B extends MultiModalMessage.MultiModalMessageBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.common.MultiModalMessage.MultiModalMessageBuilder<C,B>
- Enclosing class:
- MultiModalMessage
public abstract static class MultiModalMessage.MultiModalMessageBuilder<C extends MultiModalMessage,B extends MultiModalMessage.MultiModalMessageBuilder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionannotations(List<Map<String, Object>> annotations) annotations result for messageabstract Cbuild()The conversation content.tool namereasoningContent(String reasoningContent) chain of thought contentThe role, can be `user` and `bot`.protected abstract Bself()toolCallId(String toolCallId) For tool resulttoolCalls(List<ToolCallBase> toolCalls) For tool callstoString()
-
Constructor Details
-
MultiModalMessageBuilder
public MultiModalMessageBuilder()
-
-
Method Details
-
role
The role, can be `user` and `bot`.- Returns:
this.
-
content
The conversation content.- Returns:
this.
-
toolCalls
For tool calls- Returns:
this.
-
toolCallId
For tool result- Returns:
this.
-
name
tool name- Returns:
this.
-
reasoningContent
chain of thought content- Returns:
this.
-
annotations
annotations result for message- Returns:
this.
-
self
-
build
-
toString
-