Class ChatCompletionChunk.Delta
java.lang.Object
com.alibaba.dashscope.legacy_2x.aigc.completion.ChatCompletionChunk.Delta
- Enclosing class:
- ChatCompletionChunk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe conversation content.getRole()The role, can be `user` and `system` and `assistant` and 'tool'.For tool callsinthashCode()voidsetContent(String content) The conversation content.voidThe role, can be `user` and `system` and `assistant` and 'tool'.voidsetToolCalls(List<ToolCallBase> toolCalls) For tool callstoString()
-
Constructor Details
-
Delta
public Delta()
-
-
Method Details
-
getRole
The role, can be `user` and `system` and `assistant` and 'tool'. -
getContent
The conversation content. -
getToolCalls
For tool calls -
setRole
The role, can be `user` and `system` and `assistant` and 'tool'. -
setContent
The conversation content. -
setToolCalls
For tool calls -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-