Skip to content
providerkit
GitHub

ToolDisplay

Defined in: react/src/agents.ts:75

What a tool row shows besides its state. undefined or {} is the default row.

optional data?: unknown;

Defined in: react/src/agents.ts:86

JSON for a custom renderer on the client.


optional detail?: string;

Defined in: react/src/agents.ts:84


optional label?: string;

Defined in: react/src/agents.ts:78

Defaults to labels.tool[name], then to the tool’s name. A call to a tool the agent does not have defaults to “Unknown tool”.


optional name?: string;

Defined in: react/src/agents.ts:82

The key a client looks its own label up by. Defaults to the tool’s name, except for a call to a tool the agent does not have: the model made that name up, and it can hold anything, from words on a page it read to the arguments of a call it garbled.


optional summary?: string;

Defined in: react/src/agents.ts:83