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

> promptWithHandoffInstructions: API reference for promptWithHandoffInstructions

# promptWithHandoffInstructions

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

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

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def promptWithHandoffInstructions(basePrompt: string,
  handoffs: Array<{ name: string; description?: string }>) -> string
```

### Returns

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/parity/index.ts#L493">
  `src/parity/index.ts` at line 493
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Handoffs" icon="arrow-right-arrow-left" href="/docs/js/handoffs" />

  <Card title="JS Agent Team" icon="users" href="/docs/js/agent-team" />

  <Card title="JS Prompt Expander" icon="message" href="/docs/js/prompt-expander" />

  <Card title="JS Prompt Expander CLI" icon="terminal" href="/docs/js/prompt-expander-cli" />

  <Card title="JS Template Catalog" icon="file-code" href="/docs/js/template-catalog" />
</CardGroup>
