ToolCall

data class ToolCall(val id: String? = null, val type: String? = null, val function: FunctionCall)(source)

Represents a tool call made by the model.

Constructors

Link copied to clipboard
constructor(id: String? = null, type: String? = null, function: FunctionCall)

Properties

Link copied to clipboard

The function that was called

Link copied to clipboard
val id: String?

The optional identifier for this tool call

Link copied to clipboard
val type: String?

The optional type of the tool call, typically "function"