Handoff Filters • Rust AI Agent SDK

HandoffFilters: Handoff filter configuration

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

rust
fn new() -> Self

Create a new handoff filter

allow_all

rust
fn allow_all() -> Self

Allow all handoffs

deny_all

rust
fn deny_all() -> Self

Deny all handoffs

allow_only

rust
fn allow_only(agents: Vec<String>) -> Self

Allow only specific agents

Parameters:

NameType
agentsVec&lt;String&gt;

deny

rust
fn deny(agents: Vec<String>) -> Self

Deny specific agents

Parameters:

NameType
agentsVec&lt;String&gt;

is_allowed

rust
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


Related Documentation