From a0f7e50faf809cb10f7b5d6001ee8486ddd3d022 Mon Sep 17 00:00:00 2001 From: Christie Williams Date: Wed, 28 Oct 2026 10:18:19 -0400 Subject: [PATCH] test(AIC-3601): use the new handoff result text in the langchain-agents fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fixture only checks that a handoff handler's return value passes through the built tool unchanged, so it still passed with the old wording. Match the text TESTING.md ยง3.15a now pins so it no longer reads as current. Co-Authored-By: Claude Opus 5.5 --- packages/langchain-agents/tests/test_handler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/langchain-agents/tests/test_handler.py b/packages/langchain-agents/tests/test_handler.py index a68c42a4..2790243b 100644 --- a/packages/langchain-agents/tests/test_handler.py +++ b/packages/langchain-agents/tests/test_handler.py @@ -520,8 +520,8 @@ def handoff(_args: dict[str, Any]) -> str: if not chosen: chosen.append("billing") return ( - "Handoff to billing recorded. " - "Finish your own work and provide your final response." + "Handoff to billing recorded. billing takes over when your turn ends. " + "Finish your own part, then end your turn. Do not answer for billing." ) tool = _built_tool( @@ -529,8 +529,8 @@ def handoff(_args: dict[str, Any]) -> str: {"__handoff_billing": handoff}, ) assert await tool() == ( - "Handoff to billing recorded. " - "Finish your own work and provide your final response." + "Handoff to billing recorded. billing takes over when your turn ends. " + "Finish your own part, then end your turn. Do not answer for billing." ) assert chosen == ["billing"]