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) -> SelfOptions
Chain onto the value.
expanded(expanded: bool) -> Self
thinking(thinking: bool) -> Self
on_toggle(handler: impl Fn(bool, &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.