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
@SerialName(value = "content")
val content: String? = null

The contents of the message.

Link copied to clipboard
@SerialName(value = "function_call")
val functionCall: FunctionCall? = null

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

Link copied to clipboard
@SerialName(value = "role")
val role: ChatRole? = null

The role of the author of this message.

Link copied to clipboard
@SerialName(value = "tool_call_id")
val toolCallId: ToolId? = null

Tool call ID.

Link copied to clipboard
@SerialName(value = "tool_calls")
val toolCalls: List<ToolCallChunk>? = null

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