ToolCall

data class ToolCall(val id: String, val type: String = "function", val function: CallableFunction)(source)

Represents a tool call generated by the model.

See also

Constructors

Link copied to clipboard
constructor(id: String, type: String = "function", function: CallableFunction)

Properties

Link copied to clipboard

The function to be called.

Link copied to clipboard
val id: String

The ID of the tool call.

Link copied to clipboard

The type of the tool. Currently, only "function" is supported.