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§
fn name(&self) -> &str
fn inspect( &self, ctx: &PostInvocationContext<'_>, response: &Value, ) -> PostInvocationVerdict
Provided Methods§
fn take_evidence(&self) -> Option<GuardEvidence>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".