ToolCall

data class ToolCall(val id: String? = null, val toolType: ToolType? = null, val args: Map<String, Any?>? = null)

A tool call the model runs on its own server side.

The client does not execute this call; it echoes the part back on the next request together with the matching ToolResponse, or the model redoes the work it already did.

Constructors

Link copied to clipboard
constructor(id: String? = null, toolType: ToolType? = null, args: Map<String, Any?>? = null)

Properties

Link copied to clipboard
val args: Map<String, Any?>?

The tool call arguments.

Link copied to clipboard
val id: String?

Unique identifier the matching ToolResponse repeats.

Link copied to clipboard

The type of tool that was called.