Skip to content

.NET: Bump Azure.AI.Projects to 2.1.0-beta.3#6542

Open
rogerbarreto wants to merge 3 commits into
microsoft:mainfrom
rogerbarreto:rogerbarreto/azure-ai-projects-beta3-bump
Open

.NET: Bump Azure.AI.Projects to 2.1.0-beta.3#6542
rogerbarreto wants to merge 3 commits into
microsoft:mainfrom
rogerbarreto:rogerbarreto/azure-ai-projects-beta3-bump

Conversation

@rogerbarreto

@rogerbarreto rogerbarreto commented Jun 16, 2026

Copy link
Copy Markdown
Member

Motivation & Context

See #6545 for the full context, rationale, and the transitive dependency constraint that drives the bump.

Description & Review Guide

  • What are the major changes?

    • Directory.Packages.props: Azure.AI.Projects 2.1.0-beta.2 to 2.1.0-beta.3, plus the transitive pins Azure.Core 1.56.0 to 1.57.0 and System.ClientModel 1.12.0 to 1.13.0 (beta.3 forces System.ClientModel 1.13.0.0 via Azure.Core 1.57.0).
    • MemorySearch sample, AgentSkills sample, and the session files integration test migrated to the beta.3 surface. Full per-API detail is in .NET: Bump Azure.AI.Projects to 2.1.0-beta.3 #6545.
  • What is the impact of these changes?

    • No framework library source changes. Only the central package versions, two samples, and one integration test were touched. The full solution builds clean with --warnaserror (0 warnings) and the Foundry unit suites pass (Foundry.UnitTests 365, Foundry.Hosting.UnitTests 250). No public API of the framework changes.
  • What do you want reviewers to focus on?

    • Whether the transitive Azure.Core and System.ClientModel bumps are acceptable, and that the sample migrations reflect the intended beta.3 usage.

Related Issue

Fixes #6545

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 title prefix in sync automatically.

Updates Azure.AI.Projects from 2.1.0-beta.2 to 2.1.0-beta.3, together with the transitive Azure.Core (1.56.0 to 1.57.0) and System.ClientModel (1.12.0 to 1.13.0) pins that beta.3 requires (beta.3 forces System.ClientModel 1.13.0.0 via Azure.Core 1.57.0).

Migrates the affected samples and integration test to the beta.3 surface:
* MemorySearch sample: MemorySearchToolCallResponseItem renamed to MemorySearchToolCall, Results renamed to Memories, MemoryItem indirection removed.
* AgentSkills sample: skill provisioning/download API redesigned to a version based model (CreateSkillVersionFromFiles, GetSkillContent which now downloads and unzips), removing manual ZIP handling.
* Session files integration test: GetSessionFilesAsync now returns an async collection of SessionDirectoryEntry and renames the sessionId parameter to agentSessionId.
Copilot AI review requested due to automatic review settings June 16, 2026 13:30
@moonbox3 moonbox3 added the .NET label Jun 16, 2026

@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.

Automated Code Review

Reviewers: 5 | Confidence: 92% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach


Automated review by rogerbarreto's agents

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 the .NET repo’s central package pin for Azure.AI.Projects to the latest beta and migrates affected samples/tests to the corresponding updated SDK surface so the Foundry-related scenarios continue to compile and run against the current SDK.

Changes:

  • Bump Azure.AI.Projects to 2.1.0-beta.3 and align transitive pins (Azure.Core1.57.0, System.ClientModel1.13.0).
  • Update the MemorySearch and AgentSkills samples to the beta.3 API shape (renamed types/members and updated skills provisioning/download flows).
  • Update the session files hosted-agent integration test to consume the new async listing shape for session directory entries.

Reviewed changes

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

File Description
dotnet/Directory.Packages.props Central package version bump for Azure.AI.Projects and related transitive dependencies.
dotnet/samples/02-agents/AgentsWithFoundry/Agent_Step22_MemorySearch/Program.cs Adjusts sample to new memory search raw item type/member names.
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Hosted-AgentSkills/Program.cs Migrates sample to the updated skills APIs and simplifies skill content download/extraction flow.
dotnet/tests/Foundry.Hosting.IntegrationTests/SessionFilesHostedAgentTests.cs Updates session file listing to the new async enumeration pattern.

Comment thread dotnet/tests/Foundry.Hosting.IntegrationTests/SessionFilesHostedAgentTests.cs Outdated
Avoids materializing the entire session directory listing into a List. The test now streams GetSessionFilesAsync and breaks as soon as the expected entry is found, then asserts it was located.
@rogerbarreto rogerbarreto marked this pull request as ready for review June 16, 2026 14:01

@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.

Automated Code Review

Reviewers: 5 | Confidence: 91% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach


Automated review by rogerbarreto's agents

@rogerbarreto rogerbarreto self-assigned this Jun 16, 2026
@rogerbarreto rogerbarreto added this pull request to the merge queue Jun 16, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Jun 16, 2026
@rogerbarreto rogerbarreto enabled auto-merge June 16, 2026 17:28
@rogerbarreto rogerbarreto added this pull request to the merge queue Jun 16, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: Bump Azure.AI.Projects to 2.1.0-beta.3

5 participants