Python: Upgraded azure-ai-projects to 2.0.0b4#4438
Merged
dmytrostruk merged 4 commits intomicrosoft:mainfrom Mar 4, 2026
Merged
Python: Upgraded azure-ai-projects to 2.0.0b4#4438dmytrostruk merged 4 commits intomicrosoft:mainfrom
dmytrostruk merged 4 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Python Azure AI Foundry integration to work with azure-ai-projects==2.0.0b4, migrating code/tests/samples to the SDK’s breaking changes (notably agent reference payload shape and renamed model classes).
Changes:
- Bumps
azure-ai-projectsfrom2.0.0b3to2.0.0b4(and updates the lockfile accordingly). - Migrates agent creation/run plumbing to the new
agent_referencerequest shape and updated SDK model types. - Updates Foundry Memory store usage to the new
project_client.beta.memory_storessurface and refreshes impacted samples/tests.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| python/uv.lock | Locks azure-ai-projects==2.0.0b4 and associated dependency metadata changes. |
| python/packages/core/pyproject.toml | Pins core dependency to azure-ai-projects==2.0.0b4. |
| python/packages/azure-ai/agent_framework_azure_ai/_client.py | Switches request payload to extra_body.agent_reference, updates renamed SDK types, and adds foundry_features pass-through. |
| python/packages/azure-ai/agent_framework_azure_ai/_project_provider.py | Updates provider API to accept reference mappings and adapts to renamed SDK model types / new create_version kwargs. |
| python/packages/azure-ai/agent_framework_azure_ai/_shared.py | Migrates structured output response-format model types to new SDK class names. |
| python/packages/azure-ai/agent_framework_azure_ai/_foundry_memory_provider.py | Moves memory store operations to project_client.beta.memory_stores and updates request item shapes. |
| python/packages/azure-ai/tests/test_azure_ai_client.py | Updates unit tests for agent_reference, renamed response-format models, and code interpreter container model changes. |
| python/packages/azure-ai/tests/test_provider.py | Updates provider reference tests to use mapping-based references instead of AgentReference. |
| python/samples/02-agents/providers/azure_ai/azure_ai_provider_methods.py | Updates sample to use mapping-based agent references. |
| python/samples/02-agents/providers/azure_ai/azure_ai_with_memory_search.py | Updates sample to use beta.memory_stores and the preview memory search tool type. |
| python/samples/02-agents/context_providers/azure_ai_foundry_memory.py | Updates sample to use beta.memory_stores for create/search/delete. |
python/packages/azure-ai/agent_framework_azure_ai/_foundry_memory_provider.py
Show resolved
Hide resolved
Member
Python Test Coverage Report •
Python Unit Test Overview
|
|||||||||||||||||||||||||||||||||||||||||||||
giles17
approved these changes
Mar 3, 2026
alliscode
approved these changes
Mar 3, 2026
giles17
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
agent_referencerequest shape.Contribution Checklist