> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Handoff Filters • Rust AI Agent SDK

> HandoffFilters: Handoff filter configuration

# HandoffFilters

> Defined in the [**Workflow Aliases**](../modules/workflow_aliases) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Handoff filter configuration

## Fields

| Name          | Type                          | Description                              |
| ------------- | ----------------------------- | ---------------------------------------- |
| `filter_type` | `Option&lt;HandoffFilter&gt;` | Filter type                              |
| `agents`      | `Vec&lt;String&gt;`           | List of agent names for allow/deny lists |

## Methods

### `new`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn new() -> Self
```

Create a new handoff filter

### `allow_all`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn allow_all() -> Self
```

Allow all handoffs

### `deny_all`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn deny_all() -> Self
```

Deny all handoffs

### `allow_only`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn allow_only(agents: Vec<String>) -> Self
```

Allow only specific agents

**Parameters:**

| Name     | Type                |
| -------- | ------------------- |
| `agents` | `Vec&lt;String&gt;` |

### `deny`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn deny(agents: Vec<String>) -> Self
```

Deny specific agents

**Parameters:**

| Name     | Type                |
| -------- | ------------------- |
| `agents` | `Vec&lt;String&gt;` |

### `is_allowed`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn is_allowed(&self, target: &str) -> bool
```

Check if handoff to target is allowed

**Parameters:**

| Name     | Type   |
| -------- | ------ |
| `target` | `&str` |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/parity/workflow_aliases.rs#L216">
  `praisonai/src/parity/workflow_aliases.rs` at line 216
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Handoffs" icon="arrow-right-arrow-left" href="/docs/rust/handoffs" />

  <Card title="Rust A2A" icon="arrows-left-right" href="/docs/rust/a2a" />
</CardGroup>
