gpui-kit GitHub

Components

ToolCallCard builder

One tool invocation, in whichever of its five states holds.

A builder is RenderOnce. Construct and mount it in one expression.

use gpui_kit::agent::ToolCallCard;

Construct

new(ident: impl Into<Ident>, tool: impl Into<SharedString>) -> Self

Options

Chain onto the value.

arguments(arguments: impl Into<ToolBody>) -> Self
state(state: ToolCallState) -> Self
elapsed(elapsed: impl Into<Elapsed>) -> Self
on_retry(handler: impl Fn(&mut Window, &mut App) + 'static) -> Self

Rendered by

Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.

Source: crates/gpui-kit/src/agent/tool_call.rs