Skip to main content

HandoffFilters

Defined in the Workflow Aliases module.
Rust AI Agent SDK Handoff filter configuration

Fields

NameTypeDescription
filter_typeOption<HandoffFilter>Filter type
agentsVec<String>List of agent names for allow/deny lists

Methods

new

fn new() -> Self
Create a new handoff filter

allow_all

fn allow_all() -> Self
Allow all handoffs

deny_all

fn deny_all() -> Self
Deny all handoffs

allow_only

fn allow_only(agents: Vec<String>) -> Self
Allow only specific agents Parameters:
NameType
agentsVec&lt;String&gt;

deny

fn deny(agents: Vec<String>) -> Self
Deny specific agents Parameters:
NameType
agentsVec&lt;String&gt;

is_allowed

fn is_allowed(&self, target: &str) -> bool
Check if handoff to target is allowed Parameters:
NameType
target&str

Source

View on GitHub

praisonai/src/parity/workflow_aliases.rs at line 216