Skip to content
Merged
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
8 changes: 4 additions & 4 deletions packages/langchain-agents/tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,17 +520,17 @@ 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(
{"__handoff_billing": {"description": "transfer", "parameters": {}}},
{"__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"]

Expand Down
Loading