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

# Prompt With Handoff Instructions • Rust AI Agent SDK

> prompt_with_handoff_instructions: Generate a prompt with handoff instructions Creates a system prompt that includes instructions for handing off to other agents when appropriate. #...

# prompt\_with\_handoff\_instructions

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

Generate a prompt with handoff instructions Creates a system prompt that includes instructions for handing off to other agents when appropriate. # Arguments \* `base_prompt` - The base system prompt \* `available_agents` - List of agents that can be handed off to

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def prompt_with_handoff_instructions(base_prompt: &str, available_agents: &[&str]) -> String
```

## Parameters

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

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

### Returns

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

## Uses

* `join`

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

  <Card title="Rust Prompts" icon="message" href="/docs/rust/prompts" />

  <Card title="Rust Templates" icon="file-code" href="/docs/rust/templates" />
</CardGroup>
