pub struct PostInvocationPipeline { /* private fields */ }Expand description
Pipeline of post-invocation hooks evaluated in registration order.
Implementations§
Source§impl PostInvocationPipeline
impl PostInvocationPipeline
pub fn new() -> Self
pub fn add(&mut self, hook: Box<dyn PostInvocationHook>)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn evaluate_with_evidence( &self, tool_name: &str, response: &Value, ) -> PipelineOutcome
pub fn evaluate_with_context_and_evidence( &self, context: &PostInvocationContext<'_>, response: &Value, ) -> PipelineOutcome
pub fn evaluate( &self, tool_name: &str, response: &Value, ) -> (PostInvocationVerdict, Vec<String>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PostInvocationPipeline
impl !RefUnwindSafe for PostInvocationPipeline
impl Send for PostInvocationPipeline
impl Sync for PostInvocationPipeline
impl Unpin for PostInvocationPipeline
impl UnsafeUnpin for PostInvocationPipeline
impl !UnwindSafe for PostInvocationPipeline
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