Skip to content

.NET: Update Azure.AI.Projects 2.0.0-beta.1 - #4270

Merged
Roger Barreto (rogerbarreto) merged 24 commits into
microsoft:mainfrom
rogerbarreto:features/ai-project-2.0.0-update
Mar 4, 2026
Merged

.NET: Update Azure.AI.Projects 2.0.0-beta.1#4270
Roger Barreto (rogerbarreto) merged 24 commits into
microsoft:mainfrom
rogerbarreto:features/ai-project-2.0.0-update

Conversation

@rogerbarreto

@rogerbarretoRoger Barreto (rogerbarreto) commented Feb 25, 2026

Copy link
Copy Markdown
Member

Motivation and Context

The Azure.AI.Projects and Azure.AI.Projects.OpenAI packages 2.0.0-beta.1 are now available on NuGet.org, replacing the previous alpha builds that required a local package source.

Description

  • Updated Azure.AI.Projects and Azure.AI.Projects.OpenAI from 2.0.0-alpha.20260213.1 to 2.0.0-beta.1 (NuGet.org)
  • Removed local-packages NuGet source and its package source mapping from nuget.config
  • Fixed breaking API changes introduced in 2.0.0-beta.1:
    • MemorySearchTool renamed to MemorySearchPreviewTool (FoundryAgents_Step26_MemorySearch sample)
    • RedTeams.CreateAsync overload ambiguity resolved with explicit options: null (FoundryAgents_Evaluations_Step01_RedTeaming sample)
    • CreateAgentVersion/CreateAgentVersionAsync parameter changed from BinaryData? to string? for foundryFeatures, and AgentVersionCreationOptions made nullable (AzureAIProjectChatClientExtensionsTests)
    • Added #pragma warning disable AAIP001 for experimental WorkflowAgentDefinition (HostedWorkflow sample)

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

- Bump Azure.AI.Projects to 2.0.0-alpha.20260213.1
- Bump Azure.AI.Projects.OpenAI to 2.0.0-alpha.20260213.1
- Bump System.ClientModel to 1.9.0 (transitive dependency)
- Switch both GetAgent and CreateAgentVersion to protocol methods
with MEAI user-agent policy injection via RequestOptions
- Migrate 29 CREATE-path tests from FakeAgentClient to HttpHandlerAssert
pattern for real HTTP pipeline testing
- Fix StructuredOutputDefinition constructor (BinaryData -> IDictionary)
- Fix responses endpoint path (openai/responses -> /responses)
- Add local-packages NuGet source for pre-release nupkgs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Update Azure.AI.Projects and Azure.AI.Projects.OpenAI to 2.0.0-beta.1
- Remove local-packages NuGet source (packages now on nuget.org)
- Fix MemorySearchTool -> MemorySearchPreviewTool rename
- Fix RedTeams.CreateAsync ambiguous call
- Fix CreateAgentVersion/Async signature change (BinaryData -> string)
- Suppress AAIP001 experimental warning for WorkflowAgentDefinition
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
CopilotAI review requested due to automatic review settings February 25, 2026 19:13
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Feb 25, 2026
@github-actionsgithub-actionsBot changed the title .Net: Update Azure.AI.Projects 2.0.0-beta.1.NET: Update Azure.AI.Projects 2.0.0-beta.1Feb 25, 2026

CopilotAI 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

This PR updates Azure.AI.Projects from version 1.2.0-beta.5 to 2.0.0-beta.1, along with Azure.AI.Projects.OpenAI and System.ClientModel dependencies. The update includes several breaking API changes that required code adjustments across the codebase, including modified method signatures, renamed types, and updated constructor parameters. The changes also improve test infrastructure with better resource management patterns.

Changes:

  • Updated Azure.AI.Projects package versions (2.0.0-beta.1) and System.ClientModel (1.9.0) with corresponding breaking API adaptations
  • Refactored test infrastructure to properly dispose HTTP handler resources using a new DisposableTestClient wrapper pattern
  • Updated sample code to accommodate SDK API changes (MemorySearchPreviewTool, experimental warnings, method signatures)

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
dotnet/Directory.Packages.propsUpdated package versions for Azure.AI.Projects (2.0.0-beta.1), Azure.AI.Projects.OpenAI (2.0.0-beta.1), and System.ClientModel (1.9.0)
dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.csUpdated protocol method calls to include new foundryFeatures parameter, simplified error handling, improved documentation comments, and reorganized static field placement
dotnet/tests/Microsoft.Agents.AI.AzureAI.UnitTests/AzureAIProjectChatClientTests.csMade HTTP request filtering more specific by adding POST method check and updating path pattern from "openai/responses" to "/responses"
dotnet/tests/Microsoft.Agents.AI.AzureAI.UnitTests/AzureAIProjectChatClientExtensionsTests.csIntroduced DisposableTestClient wrapper for proper resource disposal, updated test mocks to match new SDK signatures (foundryFeatures parameter), adapted StructuredOutputDefinition constructor to accept Dictionary instead of BinaryData, and improved user-agent header verification
dotnet/samples/GettingStarted/Workflows/Declarative/HostedWorkflow/Program.csAdded pragma warning suppressions for experimental WorkflowAgentDefinition API
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step26_MemorySearch/Program.csUpdated type name from MemorySearchTool to MemorySearchPreviewTool
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Evaluations_Step01_RedTeaming/Program.csAdded explicit options: null parameter to RedTeams.CreateAsync call

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-merge-queueBot pushed a commit that referenced this pull request Feb 26, 2026
* Update Microsoft.Agents.AI.AzureAI for Azure.AI.Projects SDK 2.0.0
- Bump Azure.AI.Projects to 2.0.0-alpha.20260213.1
- Bump Azure.AI.Projects.OpenAI to 2.0.0-alpha.20260213.1
- Bump System.ClientModel to 1.9.0 (transitive dependency)
- Switch both GetAgent and CreateAgentVersion to protocol methods
with MEAI user-agent policy injection via RequestOptions
- Migrate 29 CREATE-path tests from FakeAgentClient to HttpHandlerAssert
pattern for real HTTP pipeline testing
- Fix StructuredOutputDefinition constructor (BinaryData -> IDictionary)
- Fix responses endpoint path (openai/responses -> /responses)
- Add local-packages NuGet source for pre-release nupkgs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update Azure.AI.Projects to 2.0.0-beta.1 from NuGet.org
- Update Azure.AI.Projects and Azure.AI.Projects.OpenAI to 2.0.0-beta.1
- Remove local-packages NuGet source (packages now on nuget.org)
- Fix MemorySearchTool -> MemorySearchPreviewTool rename
- Fix RedTeams.CreateAsync ambiguous call
- Fix CreateAgentVersion/Async signature change (BinaryData -> string)
- Suppress AAIP001 experimental warning for WorkflowAgentDefinition
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Move s_modelWriterOptionsWire field before methods that use it
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to no response for status checks Feb 26, 2026
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to no response for status checks Feb 26, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .NetpythonUsage: [Issues, PRs], Target: PythonworkflowsUsage: [Issues, PRs], Target: Workflows

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants

@rogerbarreto@markwallace-microsoft@alliscode@SergeyMenshykh@peibekwe@westey-m