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.