pub struct AllToolsSelector;Expand description
Default selector that returns all available tools.
This is the pass-through implementation: every registered tool
is presented to the LLM. Users who need filtering implement
their own ToolSelector.
§Examples
use pe_tools::selector::{ToolSelector, AllToolsSelector};
use pe_core::{ToolSchema, Message};
let selector = AllToolsSelector;
let names = selector.select(&[], &[]).await;
assert!(names.is_empty());Trait Implementations§
Source§impl Clone for AllToolsSelector
impl Clone for AllToolsSelector
Source§fn clone(&self) -> AllToolsSelector
fn clone(&self) -> AllToolsSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllToolsSelector
impl Debug for AllToolsSelector
Source§impl Default for AllToolsSelector
impl Default for AllToolsSelector
Source§fn default() -> AllToolsSelector
fn default() -> AllToolsSelector
Returns the “default value” for a type. Read more
Source§impl ToolSelector for AllToolsSelector
impl ToolSelector for AllToolsSelector
Source§fn select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
available: &'life1 [ToolSchema],
_messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn select<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
available: &'life1 [ToolSchema],
_messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Vec<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Select tool names from the available set. Read more
Auto Trait Implementations§
impl Freeze for AllToolsSelector
impl RefUnwindSafe for AllToolsSelector
impl Send for AllToolsSelector
impl Sync for AllToolsSelector
impl Unpin for AllToolsSelector
impl UnsafeUnpin for AllToolsSelector
impl UnwindSafe for AllToolsSelector
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