Skip to content

Conversation

@rogerbarreto
Copy link
Member

Motivation and Context

Update Anthropic Sample to use Anthropic.Foundry dedicated package.

Copilot AI review requested due to automatic review settings December 2, 2025 13:27
@github-actions github-actions bot changed the title Change Anthropic Azure sample to use Athropic.Foundry package + cachi… .NET: Change Anthropic Azure sample to use Athropic.Foundry package + cachi… Dec 2, 2025
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 the Anthropic Azure sample to use the dedicated Anthropic.Foundry package instead of a custom implementation, simplifying the authentication flow and improving code maintainability.

Key Changes:

  • Migrated from custom AnthropicFoundryClient to new Anthropic.Foundry package (v0.1.0)
  • Refactored authentication using IAnthropicFoundryCredentials interface with new credential classes
  • Updated Anthropic core package from v10.4.0 to v11.0.0

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs Replaced custom AnthropicFoundryClient with new AnthropicAzureTokenCredential class implementing IAnthropicFoundryCredentials; updated client initialization to use foundry-specific credential types
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Agent_With_Anthropic.csproj Added Anthropic.Foundry package reference
dotnet/Directory.Packages.props Updated Anthropic package to v11.0.0 and Anthropic.Foundry to v0.1.0

@rogerbarreto rogerbarreto added this pull request to the merge queue Dec 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 2, 2025
@rogerbarreto rogerbarreto added this pull request to the merge queue Dec 2, 2025
Merged via the queue into microsoft:main with commit ceaea46 Dec 2, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in Agent Framework Dec 2, 2025
This was referenced Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants