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>) -> SelfOptions
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) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.