pub struct ToolDiscoveryPluginFactory { /* private fields */ }Expand description
Plugin factory for the search_tools discovery surface.
Declares its provider and tool-surface contribution through a
PluginSpec driven by StaticPluginFactory, so it does not
hand-roll the SessionPlugin + register ceremony.
Implementations§
Trait Implementations§
Source§impl Default for ToolDiscoveryPluginFactory
impl Default for ToolDiscoveryPluginFactory
Source§impl PluginFactory for ToolDiscoveryPluginFactory
impl PluginFactory for ToolDiscoveryPluginFactory
fn id(&self) -> &'static str
Source§fn build(
&self,
ctx: &PluginSessionContext,
) -> Result<Arc<dyn SessionPlugin>, PluginError>
fn build( &self, ctx: &PluginSessionContext, ) -> Result<Arc<dyn SessionPlugin>, PluginError>
Produce a session-scoped plugin. Must be cheap — see the
trait-level docs for the full contract.
fn lashlang_abilities(&self) -> LashlangAbilities
fn lashlang_language_features(&self) -> LashlangLanguageFeatures
Source§fn lashlang_resources(&self) -> ResourceCatalog
fn lashlang_resources(&self) -> ResourceCatalog
Host-owned Lashlang catalog entries that code may link against. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ToolDiscoveryPluginFactory
impl !UnwindSafe for ToolDiscoveryPluginFactory
impl Freeze for ToolDiscoveryPluginFactory
impl Send for ToolDiscoveryPluginFactory
impl Sync for ToolDiscoveryPluginFactory
impl Unpin for ToolDiscoveryPluginFactory
impl UnsafeUnpin for ToolDiscoveryPluginFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more