Class ChatCompletionChunk.Delta

java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.completion.ChatCompletionChunk.Delta
Enclosing class:
ChatCompletionChunk

public static class ChatCompletionChunk.Delta extends Object
  • Constructor Details

    • Delta

      public Delta()
  • Method Details

    • getRole

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

      public String getContent()
      The conversation content.
    • getToolCalls

      public List<ToolCallBase> getToolCalls()
      For tool calls
    • setRole

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

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

      public void setToolCalls(List<ToolCallBase> toolCalls)
      For tool calls
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object