pub struct KeywordToolStrategy { /* private fields */ }Expand description
v1: lexical filter. Returns tools whose name or description contains any of the keywords found in the user’s turn input. (Substring match in v0; promote to TF-IDF later.)
Implementations§
Trait Implementations§
Source§impl ToolStrategy for KeywordToolStrategy
impl ToolStrategy for KeywordToolStrategy
fn select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 AgentContext,
_budget: &'life2 mut TokenBudget,
) -> Pin<Box<dyn Future<Output = Result<Vec<ToolRef>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for KeywordToolStrategy
impl !RefUnwindSafe for KeywordToolStrategy
impl Send for KeywordToolStrategy
impl Sync for KeywordToolStrategy
impl Unpin for KeywordToolStrategy
impl UnsafeUnpin for KeywordToolStrategy
impl !UnwindSafe for KeywordToolStrategy
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