Skip to content

Tool

One tool call, with its input and result. The badge says where the call is, with an icon and a word for each of the seven states.

Sourcecomponents/tool.tsx

Usage

When to use

Use when

One tool call, with its input and result as Code Blocks. Pass the part's state; the badge says Pending, Running, Awaiting approval, Responded, Completed, Error or Denied, with an icon

Don’t use when

A run of many steps (use Trace); the answer itself (use Message)