Skip to main content

prompt_with_handoff_instructions

Function
This function is defined in the handoff module.
Add handoff instructions to an agent’s prompt.

Signature

def prompt_with_handoff_instructions(base_prompt: str, agent: 'Agent') -> str

Parameters

base_prompt
str
required
The original prompt/instructions
agent
Agent
required
The agent that will use handoffs

Returns

Returns
str
Updated prompt with handoff instructions