pub struct SubagentOverride { /* private fields */ }Expand description
Scores a fixed worker target for delegated sub-agent work; abstains otherwise.
Implementations§
Source§impl SubagentOverride
impl SubagentOverride
Sourcepub fn new(worker: impl Into<String>) -> Self
pub fn new(worker: impl Into<String>) -> Self
Creates an override scoring worker for delegated sub-agent work.
worker must name a target in the cascade’s set, or routing a sub-agent request
fails with LibsyError::TargetNotFound.
Trait Implementations§
Source§impl<S> Classifier<S> for SubagentOverridewhere
S: Send + 'static,
impl<S> Classifier<S> for SubagentOverridewhere
S: Send + 'static,
Source§fn score<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_state: &'life1 mut S,
request: &'life2 mut Request,
_driver: Option<&'life3 Driver>,
) -> Pin<Box<dyn Future<Output = Result<(Classification, Option<Response>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn score<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_state: &'life1 mut S,
request: &'life2 mut Request,
_driver: Option<&'life3 Driver>,
) -> Pin<Box<dyn Future<Output = Result<(Classification, Option<Response>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Score the classifier’s targets given the current state and request. Read more
Auto Trait Implementations§
impl Freeze for SubagentOverride
impl RefUnwindSafe for SubagentOverride
impl Send for SubagentOverride
impl Sync for SubagentOverride
impl Unpin for SubagentOverride
impl UnsafeUnpin for SubagentOverride
impl UnwindSafe for SubagentOverride
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