pub struct PassThroughClassifier;Expand description
No-op classifier that returns all tools without filtering.
Useful as a fallback or when classification is not desired.
Trait Implementations§
Source§impl Classifier for PassThroughClassifier
impl Classifier for PassThroughClassifier
Source§fn classify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 str,
available_tools: &'life2 [ToolDescriptor],
) -> Pin<Box<dyn Future<Output = ClassificationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn classify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_input: &'life1 str,
available_tools: &'life2 [ToolDescriptor],
) -> Pin<Box<dyn Future<Output = ClassificationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Classify user input and return routing information.
Source§fn supports_multi_category(&self) -> bool
fn supports_multi_category(&self) -> bool
Whether this classifier can handle multi-category classification.
Source§impl Clone for PassThroughClassifier
impl Clone for PassThroughClassifier
Source§fn clone(&self) -> PassThroughClassifier
fn clone(&self) -> PassThroughClassifier
Returns a duplicate of the value. Read more
1.0.0 · 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 PassThroughClassifier
impl Debug for PassThroughClassifier
Source§impl Default for PassThroughClassifier
impl Default for PassThroughClassifier
Source§fn default() -> PassThroughClassifier
fn default() -> PassThroughClassifier
Returns the “default value” for a type. Read more
impl Copy for PassThroughClassifier
Auto Trait Implementations§
impl Freeze for PassThroughClassifier
impl RefUnwindSafe for PassThroughClassifier
impl Send for PassThroughClassifier
impl Sync for PassThroughClassifier
impl Unpin for PassThroughClassifier
impl UnsafeUnpin for PassThroughClassifier
impl UnwindSafe for PassThroughClassifier
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