-
Notifications
You must be signed in to change notification settings - Fork 945
.NET: Change Anthropic Azure sample to use Athropic.Foundry package + cachi… #2578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET: Change Anthropic Azure sample to use Athropic.Foundry package + cachi… #2578
Conversation
There was a problem hiding this 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
AnthropicFoundryClientto newAnthropic.Foundrypackage (v0.1.0) - Refactored authentication using
IAnthropicFoundryCredentialsinterface 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 |
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Outdated
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Show resolved
Hide resolved
dotnet/samples/GettingStarted/AgentProviders/Agent_With_Anthropic/Program.cs
Outdated
Show resolved
Hide resolved
…pic/Program.cs Co-authored-by: Copilot <[email protected]>
Motivation and Context
Update Anthropic Sample to use
Anthropic.Foundrydedicated package.