Skip to content

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

Open
rogerbarreto wants to merge 4 commits intomicrosoft:mainfrom
rogerbarreto:features/ai-project-2.0.0-update
Open

.NET: Update Azure.AI.Projects 2.0.0-beta.1#4270
rogerbarreto wants to merge 4 commits intomicrosoft:mainfrom
rogerbarreto:features/ai-project-2.0.0-update

Conversation

@rogerbarreto
Copy link
Member

@rogerbarreto rogerbarreto commented Feb 25, 2026

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.

rogerbarreto and others added 3 commits February 17, 2026 11:19
- 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>
Copilot AI review requested due to automatic review settings February 25, 2026 19:13
@github-actions github-actions bot changed the title .Net: Update Azure.AI.Projects 2.0.0-beta.1 .NET: Update Azure.AI.Projects 2.0.0-beta.1 Feb 25, 2026
Copy link
Contributor

Copilot AI left a comment

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
File Description
dotnet/Directory.Packages.props Updated 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.cs Updated 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.cs Made 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.cs Introduced 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.cs Added pragma warning suppressions for experimental WorkflowAgentDefinition API
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Step26_MemorySearch/Program.cs Updated type name from MemorySearchTool to MemorySearchPreviewTool
dotnet/samples/GettingStarted/FoundryAgents/FoundryAgents_Evaluations_Step01_RedTeaming/Program.cs Added explicit options: null parameter to RedTeams.CreateAsync call

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants