Files
Kazuhiro Sera 3ce7c24d34 feat: #636 Add human-in-the-loop (HITL) support (#2230)
Co-authored-by: Michael James Schock <m@mjschock.com>
2026-01-29 12:16:28 +09:00

13 lines
380 B
Python

from agents.extensions.handoff_prompt import (
RECOMMENDED_PROMPT_PREFIX,
prompt_with_handoff_instructions,
)
def test_prompt_with_handoff_instructions_includes_prefix() -> None:
prompt = "Handle the transfer smoothly."
result = prompt_with_handoff_instructions(prompt)
assert result.startswith(RECOMMENDED_PROMPT_PREFIX)
assert result.endswith(prompt)