java.lang.Object
com.alibaba.dashscope.legacy_2x.common.Message

@Deprecated public class Message extends Object
Deprecated.
represent input and output messages.
  • Constructor Details

    • Message

      protected Message(Message.MessageBuilder<?,?> b)
      Deprecated.
    • Message

      public Message()
      Deprecated.
  • Method Details

    • builder

      public static Message.MessageBuilder<?,?> builder()
      Deprecated.
    • getRole

      public String getRole()
      Deprecated.
      The role, can be `user` and `system` and `assistant` and 'tool'.
    • getContent

      public String getContent()
      Deprecated.
      The conversation content.
    • getToolCalls

      public List<ToolCallBase> getToolCalls()
      Deprecated.
      For tool calls
    • getToolCallId

      public String getToolCallId()
      Deprecated.
      For tool result
    • getName

      public String getName()
      Deprecated.
      tool name
    • getContents

      public List<MessageContentBase> getContents()
      Deprecated.
      for multi modal message type: [text|image_url] image_url: url detail
    • getReasoningContent

      public String getReasoningContent()
      Deprecated.
      chain of thought content
    • getPartial

      public Boolean getPartial()
      Deprecated.
      partial mode
    • setRole

      public void setRole(String role)
      Deprecated.
      The role, can be `user` and `system` and `assistant` and 'tool'.
    • setContent

      public void setContent(String content)
      Deprecated.
      The conversation content.
    • setToolCalls

      public void setToolCalls(List<ToolCallBase> toolCalls)
      Deprecated.
      For tool calls
    • setToolCallId

      public void setToolCallId(String toolCallId)
      Deprecated.
      For tool result
    • setName

      public void setName(String name)
      Deprecated.
      tool name
    • setContents

      public void setContents(List<MessageContentBase> contents)
      Deprecated.
      for multi modal message type: [text|image_url] image_url: url detail
    • setReasoningContent

      public void setReasoningContent(String reasoningContent)
      Deprecated.
      chain of thought content
    • setPartial

      public void setPartial(Boolean partial)
      Deprecated.
      partial mode
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object