Skip to main content

catalogue_preview_contribution

Function catalogue_preview_contribution 

Source
pub fn catalogue_preview_contribution(
    catalog: &[Value],
) -> Option<PromptContribution>
Expand description

Build a catalogue-preview contribution from the projected JSON catalogue consumed by a search_tools implementation.

Each record needs a name and a bindings["lashlang.tool"] value. Extra fields such as id, description, and compact contract are ignored by the preview but can still be used by the search index.