ChatCompletionMessage

@SerialName(value = "assistant")
class ChatCompletionMessage(content: String?, reasoningContent: String? = null, val toolCalls: List<ToolCall>? = null) : AssistantMessage

Assistant-role message as returned by the DeepSeek API inside a ChatChoice.

Uses a custom serializer so that the role field is always present and tool_calls is emitted only when non-null.

Constructors

Link copied to clipboard
constructor(content: String?, reasoningContent: String? = null, toolCalls: List<ToolCall>? = null)

Properties

Link copied to clipboard
open override val content: String?

Assistant message text; may be null when the message only carries tool calls.

Link copied to clipboard
val name: String?

Optional participant name forwarded to the model.

Link copied to clipboard

When true, marks this message as a partial assistant response that the model should continue generating from. See the DeepSeek API docs for prefix mode.

Link copied to clipboard

For the deepseek-reasoner model: the reasoning trace associated with the response.

Link copied to clipboard

Tool calls the model emitted on this turn, or null if none.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String