Skip to content

azure-ai-projects 2.0.0 ImportError #45585

@amit-ezra

Description

@amit-ezra
  • Package Name:
  • Package Version: 2.0.0
  • Operating System: Win
  • Python Version: 3.12

Describe the bug
Import fails
see stack trace
.venv/lib/python3.12/site-packages/agent_framework_azure_ai/init.py:5: in
from ._agent_provider import AzureAIAgentsProvider
.venv/lib/python3.12/site-packages/agent_framework_azure_ai/_agent_provider.py:26: in
from ._chat_client import AzureAIAgentClient, AzureAIAgentOptions
.venv/lib/python3.12/site-packages/agent_framework_azure_ai/_chat_client.py:94: in
from ._shared import AzureAISettings, resolve_file_ids, to_azure_ai_agent_tools
.venv/lib/python3.12/site-packages/agent_framework_azure_ai/_shared.py:19: in
from azure.ai.projects.models import (
E ImportError: cannot import name 'TextResponseFormatConfigurationResponseFormatJsonObject' from 'azure.ai.projects.models' (/__w/1/s/.venv/lib/python3.12/site-packages/azure/ai/projects/models/init.py)

To Reproduce
Steps to reproduce the behavior:
from agent_framework_azure_ai import AzureAIAgentClient

Expected behavior
not throw an exception

Additional context
Doesn't happen with version 2.0.0b4

Metadata

Metadata

Assignees

Labels

AI ProjectsService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions