Skip to content

.NET: Change sample to use official Anthropic C# package - #2471

Merged
Stephen Toub (stephentoub) merged 2 commits into
microsoft:mainfrom
stephentoub:anthropicsample
Nov 28, 2025
Merged

.NET: Change sample to use official Anthropic C# package#2471
Stephen Toub (stephentoub) merged 2 commits into
microsoft:mainfrom
stephentoub:anthropicsample

Conversation

@stephentoub

Copy link
Copy Markdown
Member

No description provided.

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 migrates the MultiModelService sample from the unofficial Anthropic.SDK package to the official Anthropic C# package, simplifying the client initialization and aligning with the official SDK.

  • Updates the Anthropic client initialization to use the official package's API
  • Removes the deprecated Anthropic.SDK package reference and version entry
  • Maintains consistency with AWS Bedrock and OpenAI client initialization patterns

Reviewed changes

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

FileDescription
dotnet/samples/GettingStarted/Workflows/_Foundational/05_MultiModelService/Program.csUpdates Anthropic client initialization to use the official Anthropic package API instead of Anthropic.SDK
dotnet/samples/GettingStarted/Workflows/_Foundational/05_MultiModelService/05_MultiModelService.csprojChanges package reference from "Anthropic.SDK" to "Anthropic"
dotnet/Directory.Packages.propsRemoves the Anthropic.SDK version entry (official Anthropic package version already exists at line 14)

@markwallace-microsoftMark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Nov 28, 2025
@github-actionsgithub-actionsBot changed the title Change sample to use official Anthropic C# package.NET: Change sample to use official Anthropic C# packageNov 28, 2025
Merged via the queue into microsoft:main with commit a3909b8Nov 28, 2025
15 checks passed
Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@stephentoub@rogerbarreto@SergeyMenshykh@markwallace-microsoft