Skip to content

Python: update workflow shared session sample to use client_kwargs instead of options #6293

@benke520

Description

@benke520

Summary

The sample azure_ai_agents_with_shared_session.py uses options={"store": False} in the workflow.run() call, which was valid in earlier API versions but is no longer a recognized parameter on Workflow.run(). The kwarg is silently ignored — store=False is never forwarded to the chat client.

Suggested Update

Replace options= with client_kwargs=, which is the current way to forward parameters to the underlying chat client:

# Before
result = await workflow.run(
    "Write a tagline for a budget-friendly eBike.",
    options={"store": False},
)

# After
result = await workflow.run(
    "Write a tagline for a budget-friendly eBike.",
    client_kwargs={"store": False},
)

PR #6294 has the fix.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions