> ## 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 • Rust AI Agent SDK

> handoff: Create a handoff to another agent # Arguments * `target` - Name of the target agent * `message` - Optional handoff message

# handoff

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**workflow\_aliases**](../modules/workflow_aliases) module.

Create a handoff to another agent # Arguments \* `target` - Name of the target agent \* `message` - Optional handoff message

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def handoff(target: impl Into<String>, message: Option<&str>) -> HandoffConfig
```

## Parameters

<ParamField query="target" type="impl Into<String>" required={true}>
  No description available.
</ParamField>

<ParamField query="message" type="Option<&str>" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="HandoffConfig">
  The result of the operation.
</ResponseField>

## Uses

* `message`

## 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#L193">
  `praisonai/src/parity/workflow_aliases.rs` at line 193
</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>
