Skip to content

Python: [Bug]: Inconsistent API - AzureOpenAIResponsesClient only allows sync TokenCredential #3449

Closed

Description

@savvaki

Description

Clients such as AzureAIClient accept an AsyncTokenCredential, however the AzureOpenAIResponsesClient only accepts a synchronous TokenCredential.

Code Sample

from agent_framework.azure import AzureOpenAIResponsesClient
from azure.identity.aio import DefaultAzureCredential # <-- Async credential

async with DefaultAzureCredential() as credential:
    AzureOpenAIResponsesClient(
            credential=credential, # <--- Not supported
            base_url="",
            deployment_name="",
            )

Error Messages / Stack Traces

Package Versions

1.0.0b260123

Python Version

3.13.7

Additional Context

No response

Activity

  1. added
    bugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)
    on Jan 27, 2026
  2. added theissue type on Jan 27, 2026
  3. added a commit that references this issue on Feb 19, 2026
    e6bbbbe
  4. added a commit that references this issue on Feb 19, 2026
    fd4e6e8
  5. moved this from In Progress to Done in Agent Frameworkon Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agentsUsage: [Issues, PRs], Target: Single agentbugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)pythonUsage: [Issues, PRs], Target: Python

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions