gpui-kit GitHub

Components

ThinkingBlock builder

A collapsed block of model reasoning.

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

use gpui_kit::agent::ThinkingBlock;

Construct

new(ident: impl Into<Ident>, reasoning: Reasoning) -> Self

Options

Chain onto the value.

expanded(expanded: bool) -> Self
thinking(thinking: bool) -> Self
on_toggle(handler: impl Fn(bool, &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/thinking.rs