ToolCallRequestPart interface

A tool call requested by the model.

Properties

arguments

Arguments passed to the tool, as an object or positional array.

id

Unique identifier correlating this call with its response.

name

The name of the tool being called.

type

Discriminator identifying this as a tool-call request part.

Property Details

arguments

Arguments passed to the tool, as an object or positional array.

arguments?: Record<string, unknown> | unknown[]

Property Value

Record<string, unknown> | unknown[]

id

Unique identifier correlating this call with its response.

id?: string

Property Value

string

name

The name of the tool being called.

name: string

Property Value

string

type

Discriminator identifying this as a tool-call request part.

type: "tool_call"

Property Value

"tool_call"