Skip to content

.NET: Update Azure AI Projects to 3.0.0 beta 1 - #7995

Open
Roger Barreto (rogerbarreto) wants to merge 2 commits into
microsoft:mainfrom
rogerbarreto:rogerbarreto-update-azure-ai-projects
Open

.NET: Update Azure AI Projects to 3.0.0 beta 1#7995
Roger Barreto (rogerbarreto) wants to merge 2 commits into
microsoft:mainfrom
rogerbarreto:rogerbarreto-update-azure-ai-projects

Conversation

@rogerbarreto

Copy link
Copy Markdown
Member

Motivation & Context

Azure.AI.Projects 3.0.0-beta.1 moves its response and conversation models to OpenAI 2.12.0. Agent Framework needs to adopt the new SDK surface while preserving projects that still depend on Azure.AI.OpenAI 2.9.0-beta.1 and its older OpenAI dependency line.

Description & Review Guide

  • What are the major changes? Updates Azure.AI.Projects to 3.0.0-beta.1, Microsoft.Extensions.AI.OpenAI to 10.9.0, and OpenAI to 2.12.0. Migrates Foundry code to the upstream OpenAI conversation and response types. Keeps Azure.AI.OpenAI consumers on Microsoft.Extensions.AI.OpenAI 10.6.0 and OpenAI 2.10.0 through project-level overrides.
  • What is the impact of these changes? Foundry projects use the new Azure AI Projects SDK without breaking Azure.AI.OpenAI applications. Self-contained hosted samples continue using Azure.AI.Projects 2.1.0-beta.4 when they consume previously published Agent Framework packages.
  • What do you want reviewers to focus on? Please review the compatibility boundary between the OpenAI 2.12 Foundry projects and the OpenAI 2.10 Azure.AI.OpenAI projects, plus the migration from removed Azure response and conversation models to their OpenAI equivalents.

Related Issue

Fixes #7994

Contribution Checklist

  • The code builds clean without any errors or warnings
  • All unit tests pass, and I have added new tests where possible
  • The PR follows the Contribution Guidelines
  • This PR is linked to an issue and there is no other open PR for this issue (see Related Issue above).
  • This is not a breaking change. If it is a breaking change, add the breaking change label (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and the title prefix in sync automatically.

Migrate Foundry consumers to the OpenAI 2.12 response and conversation types while preserving Azure.AI.OpenAI compatibility through scoped package overrides.

Refs microsoft#7994

Copilot-Session: 57730879-50c2-46e6-82f6-ddf01a29ba0c

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAF Automated Review — Iteration 1

Result: No findings
Scope: full PR (1 commit(s)): 85d24a395b18
Model: gpt-5.6-sol

Overview

No publishable findings were identified in the reviewed scope.

Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
No publishable findings remained after source verification for this scope.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Foundry to Azure.AI.Projects 3.0.0-beta.1/OpenAI 2.12 while preserving Azure.AI.OpenAI compatibility.

Changes:

  • Migrates conversation, response, memory, and client-option APIs.
  • Adds project-level OpenAI 2.10 compatibility pins.
  • Updates tests, samples, warnings, and version references.

Reviewed changes

Copilot reviewed 63 out of 63 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
dotnet/Directory.Packages.props Updates central SDK versions.
dotnet/src/Microsoft.Agents.AI.Foundry/ClientHeadersExtensions.cs Updates MEAI documentation.
dotnet/src/Microsoft.Agents.AI.Foundry/ClientHeadersPolicy.cs Updates MEAI documentation.
dotnet/src/Microsoft.Agents.AI.Foundry/Microsoft.Agents.AI.Foundry.csproj Configures 3.0 preview dependencies.
dotnet/src/Microsoft.Agents.AI.Foundry/ServedModelPolicy.cs Updates MEAI documentation.
dotnet/src/Microsoft.Agents.AI.Foundry.Hosting/HostedAgentUserAgentPolicy.cs Updates MEAI documentation.
dotnet/src/Microsoft.Agents.AI.Foundry.Hosting/ServiceCollectionExtensions.cs Updates MEAI documentation.
dotnet/src/Microsoft.Agents.AI.OpenAI/Microsoft.Agents.AI.OpenAI.csproj Pins the OpenAI 2.10 line.
dotnet/src/Microsoft.Agents.AI.Workflows.Declarative.Foundry/AzureAgentProvider.cs Migrates conversation response types.
dotnet/tests/Microsoft.Agents.AI.UnitTests/OpenTelemetryAgentTests.cs Updates expected MEAI version context.
dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/PolicyPipelineInvestigationTests.cs Fixes namespace and type qualification.
dotnet/tests/Microsoft.Agents.AI.OpenAI.UnitTests/Microsoft.Agents.AI.OpenAI.UnitTests.csproj Pins compatibility dependencies.
dotnet/tests/Microsoft.Agents.AI.Hosting.OpenAI.UnitTests/OpenAIResponsesIntegrationTests.cs Uses specialized response options.
dotnet/tests/Microsoft.Agents.AI.Hosting.OpenAI.UnitTests/AgentHostingServiceCollectionExtensionsTests.cs Uses specialized response options.
dotnet/tests/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests.csproj Pins compatibility dependencies.
dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/Microsoft.Agents.AI.Foundry.UnitTests.csproj Updates preview warning configuration.
dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/MeaiAutoUserAgentVerificationTests.cs Migrates response options and version.
dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/FoundryAgentTests.cs Updates expected MEAI version.
dotnet/tests/Microsoft.Agents.AI.Foundry.UnitTests/AIProjectClientExtensionsTests.cs Resolves migrated tool-type ambiguity.
dotnet/tests/Microsoft.Agents.AI.Foundry.Hosting.UnitTests/HostedOutboundUserAgentTests.cs Updates expected user-agent version.
dotnet/tests/Microsoft.Agents.AI.Foundry.Hosting.UnitTests/FoundryAIToolExtensionsTests.cs Uses renamed creation property.
dotnet/tests/Foundry.IntegrationTests/ResponsesAgentFixture.cs Migrates conversation items.
dotnet/tests/Foundry.IntegrationTests/ResponsesAgentExtensionCreateTests.cs Uses ConversationResource.
dotnet/tests/Foundry.IntegrationTests/FoundryVersionedAgentFixture.cs Migrates conversation items.
dotnet/tests/Foundry.IntegrationTests/Foundry.IntegrationTests.csproj Suppresses preview diagnostics.
dotnet/tests/Foundry.Hosting.IntegrationTests/Foundry.Hosting.IntegrationTests.csproj Updates diagnostic suppressions.
dotnet/tests/Foundry.Hosting.IntegrationTests/Fixtures/HostedAgentFixture.cs Migrates conversation items.
dotnet/samples/05-end-to-end/M365Agent/M365Agent.csproj Pins compatibility dependencies.
dotnet/samples/05-end-to-end/AGUIWebChat/Server/Program.cs Removes namespace imports.
dotnet/samples/05-end-to-end/AGUIWebChat/Server/AGUIWebChatServer.csproj Pins compatibility dependencies.
dotnet/samples/05-end-to-end/AGUIClientServer/AGUIDojoServer/AGUIDojoServer.csproj Pins compatibility dependencies.
dotnet/samples/05-end-to-end/AgentWithPurview/AgentWithPurview.csproj Pins compatibility dependencies.
dotnet/samples/05-end-to-end/AgentWebChat/AgentWebChat.Web/OpenAIResponsesAgentClient.cs Uses specialized response options.
dotnet/samples/05-end-to-end/AgentWebChat/AgentWebChat.AgentHost/AgentWebChat.AgentHost.csproj Pins compatibility dependencies.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Workflow-Resilient/HostedWorkflowResilient.csproj Selects SDK by local/package mode.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Workflow-Handoff/HostedWorkflowHandoff.csproj Pins standalone compatibility versions.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-Steering/HostedSteering.csproj Selects SDK by local/package mode.
dotnet/samples/03-workflows/Visualization/Visualization.csproj Pins transitive compatibility versions.
dotnet/samples/03-workflows/Declarative/HostedWorkflow/Program.cs Migrates conversation type.
dotnet/samples/03-workflows/Concurrent/MapReduce/MapReduce.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/ModelContextProtocol/ResponseAgent_Hosted_MCP/ResponseAgent_Hosted_MCP.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/ModelContextProtocol/Agent_MCP_Server/Agent_MCP_Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/ModelContextProtocol/Agent_MCP_Server_Auth/Agent_MCP_Server_Auth.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/ModelContextProtocol/Agent_MCP_LongRunningTask_Client/Agent_MCP_LongRunningTask_Client.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/DevUI/DevUI_Step01_BasicUsage/DevUI_Step01_BasicUsage.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/DeclarativeAgents/ChatClient/DeclarativeChatClientAgents.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AGUI/Step05_StateManagement/Server/Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AGUI/Step04_HumanInLoop/Server/Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AGUI/Step03_FrontendTools/Server/Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AGUI/Step02_BackendTools/Server/Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AGUI/Step01_GettingStarted/Server/Server.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AgentWithMemory/AgentWithMemory_Step06_MemoryUsingAgentMemory/AgentWithMemory_Step06_MemoryUsingAgentMemory.csproj Updates standalone MEAI version.
dotnet/samples/02-agents/AgentSkills/Agent_Step07_SkillsAutoApproval/Agent_Step07_SkillsAutoApproval.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Program.cs Uses renamed memory properties.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step22_MemorySearch/Agent_Step22_MemorySearch.csproj Suppresses preview diagnostics.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step20_MicrosoftFabric/Agent_Step20_MicrosoftFabric.csproj Suppresses preview diagnostics.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step19_SharePoint/Agent_Step19_SharePoint.csproj Suppresses preview diagnostics.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step18_BingCustomSearch/Agent_Step18_BingCustomSearch.csproj Suppresses preview diagnostics.
dotnet/samples/02-agents/AgentProviders/foundry/Agent_Step02.2_MultiturnWithServerConversations/Program.cs Uses ConversationResource.
dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIResponses/Agent_With_AzureOpenAIResponses.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/AgentProviders/azure/Agent_With_AzureOpenAIChatCompletion/Agent_With_AzureOpenAIChatCompletion.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/A2A/A2AAgent_StreamReconnection/A2AAgent_StreamReconnection.csproj Pins compatibility dependencies.
dotnet/samples/02-agents/A2A/A2AAgent_PollingForTaskCompletion/A2AAgent_PollingForTaskCompletion.csproj Pins compatibility dependencies.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread dotnet/samples/03-workflows/Declarative/HostedWorkflow/Program.cs
Comment thread dotnet/samples/05-end-to-end/AGUIWebChat/Server/Program.cs
Comment thread dotnet/tests/Foundry.IntegrationTests/ResponsesAgentFixture.cs
Restore namespaces required by the Azure OpenAI sample after dependency isolation changes.

Copilot-Session: 57730879-50c2-46e6-82f6-ddf01a29ba0c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: Update Azure AI Projects to 3.0.0 beta 1

4 participants