pub struct ProviderSelectionSuggestor { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl Suggestor for ProviderSelectionSuggestor
impl Suggestor for ProviderSelectionSuggestor
Source§fn dependencies(&self) -> &[ContextKey]
fn dependencies(&self) -> &[ContextKey]
Context keys this suggestor reads from. Read more
Source§fn accepts(&self, ctx: &dyn Context) -> bool
fn accepts(&self, ctx: &dyn Context) -> bool
Pure predicate: should this suggestor execute given the current context? Read more
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProviderSelectionSuggestor: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 dyn Context,
) -> Pin<Box<dyn Future<Output = AgentEffect> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
ProviderSelectionSuggestor: 'async_trait,
Produce effects given the current context. Read more
Auto Trait Implementations§
impl Freeze for ProviderSelectionSuggestor
impl !RefUnwindSafe for ProviderSelectionSuggestor
impl Send for ProviderSelectionSuggestor
impl Sync for ProviderSelectionSuggestor
impl Unpin for ProviderSelectionSuggestor
impl UnsafeUnpin for ProviderSelectionSuggestor
impl !UnwindSafe for ProviderSelectionSuggestor
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