Function

@Serializable
@SerialName(value = "function")
data class Function(val id: ToolId, val function: FunctionCall) : ToolCall

Tool call.

Constructors

Link copied to clipboard
constructor(id: ToolId, function: FunctionCall)

Properties

Link copied to clipboard
@SerialName(value = "function")
val function: FunctionCall

The function that the model called.

Link copied to clipboard
@SerialName(value = "id")
val id: ToolId

The ID of the tool call.