pub trait Policy: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn vote(&self, call: &ToolCall) -> Vote;
}Expand description
A sync check that votes on whether a ToolCall should proceed.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".