Prompt With Handoff Instructions • AI Agent SDK
prompt_with_handoff_instructions: Add handoff instructions to an agent's prompt.
prompt_with_handoff_instructions
Function
</div>
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') -> strParameters
ParamField
strThe original prompt/instructions
ParamField
AgentThe agent that will use handoffs
Returns
ResponseField
strUpdated prompt with handoff instructions
Uses
Handoff
Source
View on GitHubpraisonaiagents/agent/handoff.py at line 1915