Skip to main content

Policy

Trait Policy 

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

Source

fn name(&self) -> &str

Source

fn vote(&self, call: &ToolCall) -> Vote

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§