ChatDelta

@Serializable
data class ChatDelta(val role: ChatRole? = null, val content: String? = null, val functionCall: FunctionCall? = null, val toolCalls: List<ToolCallChunk>? = null, val toolCallId: ToolId? = null)

Generated chat message.

Constructors

Link copied to clipboard
constructor(role: ChatRole? = null, content: String? = null, functionCall: FunctionCall? = null, toolCalls: List<ToolCallChunk>? = null, toolCallId: ToolId? = null)

Properties

Link copied to clipboard
val content: String? = null

The contents of the message.

Link copied to clipboard

The name and arguments of a function that should be called, as generated by the model.

Link copied to clipboard
val role: ChatRole? = null

The role of the author of this message.

Link copied to clipboard
val toolCallId: ToolId? = null

Tool call ID.

Link copied to clipboard

The tool calls generated by the model, such as function calls.