Skip to main content

Module tool_call

Module tool_call 

Source
Expand description

Collapsible tool-call cards and the group that folds a burst of them.

A ToolCall shows one invocation: its name, a one-line summary, the shared status vocabulary, and — when expanded — the input the agent sent, the output it received, or the failure reason. Calls that need a human decision carry Allow / Deny controls. A ToolGroup collapses several consecutive calls behind one shimmering “Running N tools…” header so a transcript stays readable while an agent works.

Both are controlled: the application owns every invocation as a Progressive<ToolInvocation> and decides what each typed event means.

Structs§

ToolCall
A collapsible card for one tool invocation.
ToolGroup
Folds consecutive tool calls behind one header.
ToolInvocation
Application-owned description of one tool invocation.

Enums§

ToolApproval
Whether a person must allow a tool call before it runs, and what they decided.
ToolCallEvent
An interaction emitted by ToolCall.
ToolGroupEvent
An interaction emitted by ToolGroup.