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

> prompt_with_handoff_instructions: Add handoff instructions to an agent's prompt.

# prompt\_with\_handoff\_instructions

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

> This function is defined in the [**handoff**](../modules/handoff) module.

Add handoff instructions to an agent's prompt.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def prompt_with_handoff_instructions(base_prompt: str, agent: 'Agent') -> str
```

## Parameters

<ParamField query="base_prompt" type="str" required={true}>
  The original prompt/instructions
</ParamField>

<ParamField query="agent" type="Agent" required={true}>
  The agent that will use handoffs
</ParamField>

### Returns

<ResponseField name="Returns" type="str">
  Updated prompt with handoff instructions
</ResponseField>

## Uses

* `Handoff`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/handoff.py#L802">
  `praisonaiagents/agent/handoff.py` at line 802
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Handoffs Concept" icon="hand-holding" href="/docs/concepts/handoffs" />

  <Card title="Handoffs Feature" icon="arrow-right-arrow-left" href="/docs/features/handoffs" />
</CardGroup>
