> ## 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.

# Routing Condition Protocol • Rust AI Agent SDK

> RoutingConditionProtocol: Extended protocol for conditions that support routing to targets. This extends ConditionProtocol with the ability to return target tasks/steps based...

# RoutingConditionProtocol

> Defined in the [**conditions**](../modules/conditions) module.

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

Extended protocol for conditions that support routing to targets. This extends ConditionProtocol with the ability to return target tasks/steps based on the condition evaluation.

## Methods

### `get_target`

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
fn get_target(&self, context: &HashMap<String, serde_json::Value>) -> Vec<String>
```

Get the target tasks/steps based on condition evaluation. # Arguments \* `context` - Dictionary containing variables for evaluation. # Returns List of target task/step names to route to. Returns empty list if no match found.

**Parameters:**

| Name         | Type                 |
| ------------ | -------------------- |
| `context`    | `&HashMap&lt;String` |
| `serde_json` | `:Value&gt;`         |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/conditions/mod.rs">
  `praisonai/src/conditions/mod.rs` at line 0
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Routing" icon="route" href="/docs/rust/routing" />

  <Card title="Rust Router" icon="arrows-split" href="/docs/rust/router" />

  <Card title="Rust Conditions" icon="code-branch" href="/docs/rust/conditions" />
</CardGroup>
