From 0088471d5501e06781e8d59560d74ec89986feb7 Mon Sep 17 00:00:00 2001 From: Benke Qu Date: Tue, 2 Jun 2026 16:55:25 -0700 Subject: [PATCH 1/2] fix: use client_kwargs instead of invalid options kwarg in workflow sample Workflow.run() does not accept an options parameter. The store=False kwarg was silently ignored. Use client_kwargs to correctly forward it to the underlying chat client. Fixes #6293 --- .../agents/azure_ai_agents_with_shared_session.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py b/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py index 3600c8ce339..a1abbc9e9b4 100644 --- a/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py +++ b/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py @@ -92,9 +92,10 @@ async def main() -> None: result = await workflow.run( "Write a tagline for a budget-friendly eBike.", - # Keyword arguments will be passed to each agent call. - # Setting store=False to avoid storing messages in the service for this example. - options={"store": False}, + # client_kwargs are forwarded to each underlying chat client call, which + # passes them to the model API. store=False tells the Responses API not + # to persist messages server-side for this example. + client_kwargs={"store": False}, ) # The final state should be IDLE since the workflow no longer has messages to From b4a252ee054fee4a80df67964f0204ef6f4c08b3 Mon Sep 17 00:00:00 2001 From: Benke Qu Date: Thu, 4 Jun 2026 13:39:11 -0700 Subject: [PATCH 2/2] fix: use backend-neutral wording in client_kwargs comment --- .../agents/azure_ai_agents_with_shared_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py b/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py index a1abbc9e9b4..4eb5ae8dd5d 100644 --- a/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py +++ b/python/samples/03-workflows/agents/azure_ai_agents_with_shared_session.py @@ -92,9 +92,9 @@ async def main() -> None: result = await workflow.run( "Write a tagline for a budget-friendly eBike.", - # client_kwargs are forwarded to each underlying chat client call, which - # passes them to the model API. store=False tells the Responses API not - # to persist messages server-side for this example. + # client_kwargs are forwarded to each underlying chat client call. + # store=False tells the model API not to persist messages server-side + # for this example. client_kwargs={"store": False}, )