pub trait PolicyEngine: Send + Sync {
// Required method
fn authorize(&self, agent: &Agent, call: &ToolCall) -> Authorization;
}Expand description
Determines whether an agent is allowed to execute a tool call.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".