Class Message
java.lang.Object
com.alibaba.dashscope.legacy_2x.common.Message
Deprecated.
represent input and output messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMessage.MessageBuilder<C extends Message,B extends Message.MessageBuilder<C, B>> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionMessage()Deprecated.protectedMessage(Message.MessageBuilder<?, ?> b) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.MessageBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.The conversation content.Deprecated.for multi modal message type: [text|image_url] image_url: url detailgetName()Deprecated.tool nameDeprecated.partial modeDeprecated.chain of thought contentgetRole()Deprecated.The role, can be `user` and `system` and `assistant` and 'tool'.Deprecated.For tool resultDeprecated.For tool callsinthashCode()Deprecated.voidsetContent(String content) Deprecated.The conversation content.voidsetContents(List<MessageContentBase> contents) Deprecated.for multi modal message type: [text|image_url] image_url: url detailvoidDeprecated.tool namevoidsetPartial(Boolean partial) Deprecated.partial modevoidsetReasoningContent(String reasoningContent) Deprecated.chain of thought contentvoidDeprecated.The role, can be `user` and `system` and `assistant` and 'tool'.voidsetToolCallId(String toolCallId) Deprecated.For tool resultvoidsetToolCalls(List<ToolCallBase> toolCalls) Deprecated.For tool callstoString()Deprecated.
-
Constructor Details
-
Message
Deprecated. -
Message
public Message()Deprecated.
-
-
Method Details
-
builder
Deprecated. -
getRole
Deprecated.The role, can be `user` and `system` and `assistant` and 'tool'. -
getContent
Deprecated.The conversation content. -
getToolCalls
Deprecated.For tool calls -
getToolCallId
Deprecated.For tool result -
getName
Deprecated.tool name -
getContents
Deprecated.for multi modal message type: [text|image_url] image_url: url detail -
getReasoningContent
Deprecated.chain of thought content -
getPartial
Deprecated.partial mode -
setRole
Deprecated.The role, can be `user` and `system` and `assistant` and 'tool'. -
setContent
Deprecated.The conversation content. -
setToolCalls
Deprecated.For tool calls -
setToolCallId
Deprecated.For tool result -
setName
Deprecated.tool name -
setContents
Deprecated.for multi modal message type: [text|image_url] image_url: url detail -
setReasoningContent
Deprecated.chain of thought content -
setPartial
Deprecated.partial mode -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-