Skip to main content

Policy

Trait Policy 

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

Source

fn decide(&self, spec: &ToolSpec, input: &Value) -> Decision

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§