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

# Get Target • AI Agent SDK

> get_target: Get the target tasks/steps based on condition evaluation.

# get\_target

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**RoutingConditionProtocol**](../classes/RoutingConditionProtocol) class in the [**protocols**](../modules/protocols) module.

Get the target tasks/steps based on condition evaluation.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_target(context: Dict[str, Any]) -> List[str]
```

## Parameters

<ParamField query="context" type="Dict" required={true}>
  Dictionary containing variables for evaluation.
</ParamField>

### Returns

<ResponseField name="Returns" type="List[str]">
  List of target task/step names to route to.
  Returns empty list if no match found.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/conditions/protocols.py#L81">
  `praisonaiagents/conditions/protocols.py` at line 81
</Card>
