We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173cfa8 commit 19afd6fCopy full SHA for 19afd6f
src/agents/extensions/handoff_prompt.py
@@ -15,17 +15,8 @@
15
def prompt_with_handoff_instructions(prompt: str) -> str:
16
"""
17
Add recommended instructions to the prompt for agents that use handoffs.
18
-
19
- Args:
20
- prompt: A string containing the prompt to which handoff instructions will be added
21
22
- Returns:
23
- A string with the recommended handoff instructions prepended to the provided prompt
24
25
- Raises:
26
- TypeError: If the prompt is not a string
27
28
if not isinstance(prompt, str):
29
raise TypeError(f"prompt must be a string, got {type(prompt).__name__}")
30
+
31
return f"{RECOMMENDED_PROMPT_PREFIX}\n\n{prompt}"
0 commit comments