Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/agents/extensions/handoff_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ def prompt_with_handoff_instructions(prompt: str) -> str:
"""
Add recommended instructions to the prompt for agents that use handoffs.
"""
if not isinstance(prompt, str):
raise TypeError(f"prompt must be a string, got {type(prompt).__name__}")

return f"{RECOMMENDED_PROMPT_PREFIX}\n\n{prompt}"