Skip to main content

PolicyEngine

Trait PolicyEngine 

Source
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§

Source

fn authorize(&self, agent: &Agent, call: &ToolCall) -> Authorization

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§