ToolCall

@Serializable
data class ToolCall(val id: String, val name: String, val input: JsonObject)

A model's request to run the tool named name with input.

Constructors

Link copied to clipboard
constructor(id: String, name: String, input: JsonObject)

Properties

Link copied to clipboard
val id: String

identifies the call, so its ChatMessage.ToolResult can refer to it.

Link copied to clipboard
val input: JsonObject

the arguments, in the shape of the tool's ToolSpec.inputSchema.

Link copied to clipboard