pub trait Policy: Send + Sync {
// Required method
fn decide(&self, spec: &ToolSpec, input: &Value) -> Decision;
}Expand description
Decides, before execution, whether a tool call may run.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".