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
| Name | Type | Description |
|---|---|---|
filter_type | Option<HandoffFilter> | Filter type |
agents | Vec<String> | List of agent names for allow/deny lists |
Methods
new
fn new() -> SelfCreate a new handoff filter
allow_all
fn allow_all() -> SelfAllow all handoffs
deny_all
fn deny_all() -> SelfDeny all handoffs
allow_only
fn allow_only(agents: Vec<String>) -> SelfAllow only specific agents
Parameters:
| Name | Type |
|---|---|
agents | Vec<String> |
deny
fn deny(agents: Vec<String>) -> SelfDeny specific agents
Parameters:
| Name | Type |
|---|---|
agents | Vec<String> |
is_allowed
fn is_allowed(&self, target: &str) -> boolCheck if handoff to target is allowed
Parameters:
| Name | Type |
|---|---|
target | &str |
Source
View on GitHubpraisonai/src/parity/workflow_aliases.rs at line 216