Skip to main content

PostInvocationHook

Trait PostInvocationHook 

Source
pub trait PostInvocationHook: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn inspect(
        &self,
        ctx: &PostInvocationContext<'_>,
        response: &Value,
    ) -> PostInvocationVerdict;

    // Provided method
    fn take_evidence(&self) -> Option<GuardEvidence> { ... }
}
Expand description

A hook that inspects tool responses after invocation.

Required Methods§

Source

fn name(&self) -> &str

Source

fn inspect( &self, ctx: &PostInvocationContext<'_>, response: &Value, ) -> PostInvocationVerdict

Provided Methods§

Implementors§