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