From bfd2f671d558e4ae2cc6df305fd0ef5bb13da5c3 Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Mon, 30 Mar 2026 11:56:44 -0700 Subject: [PATCH] Fix workflows HIL sample --- .../03-workflows/human-in-the-loop/agents_with_HITL.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/samples/03-workflows/human-in-the-loop/agents_with_HITL.py b/python/samples/03-workflows/human-in-the-loop/agents_with_HITL.py index 0364221bff..4d45047139 100644 --- a/python/samples/03-workflows/human-in-the-loop/agents_with_HITL.py +++ b/python/samples/03-workflows/human-in-the-loop/agents_with_HITL.py @@ -173,7 +173,9 @@ async def main() -> None: ), name="writer_agent", instructions=("You are a marketing writer."), - tool_choice="required", + default_options={ + "tool_choice": "required", + }, ) final_editor_agent = Agent(