GPUI Box GitHub

Components

OfferingCatalog builder

A searchable, kind-filterable catalog of offerings from multiple servers.

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

use gpui_kit::agent::OfferingCatalog;

Construct

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

Options

Chain onto the value.

source(source: OfferingSource) -> Self
sources(sources: impl IntoIterator<Item = OfferingSource>) -> Self
query(query: impl Into<SharedString>) -> Self
kinds(kinds: impl IntoIterator<Item = OfferingKind>) -> Self
selected(identity: OfferingIdentity) -> Self
on_activate(handler: impl Fn(OfferingIdentity, &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/offering_catalog.rs