Components
Tool Call
An in-conversation card that visualizes a tool invocation — running (spinner + optional steps), success (green, with the result) or error (with the detail). The result renders as a syntax-highlighted JSON block.
States
- Loading compliance rules
- Extracting fields
- Scoring risk
Result
{
"risk": "low",
"confidence": 0.98,
"sanctions": false
}
Error
Timeout contacting the sanctions provider (HTTP 503).
API
| Prop | Type | Default | Description |
|---|---|---|---|
toolCall | ToolCall | required | The call to render: { id, name, status, detail? }. |
steps | string[] | [] | Sub-steps shown while running and on expand. |