Uh oh!
There was an error while loading. Please reload this page.
.NET: Add .NET Anthropic Claude Skills sample - #3497
Conversation
- Add Agent_Anthropic_Step04_UsingSkills sample demonstrating pptx skill usage - Add integration tests for skills functionality - Update README.md with new sample reference - Update solution file to include new sample project Co-authored-by: rogerbarreto <19890735+rogerbarreto@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a new .NET sample demonstrating Anthropic Claude Skills support, matching Python sample functionality as requested in Issue #2690. The implementation uses a simplified AsAITool() approach that automatically handles beta flags and container configuration.
Changes:
- Added a new sample
Agent_Anthropic_Step04_UsingSkillsdemonstrating Skills usage (pptx skill) - Added integration tests for Skills functionality in
AnthropicSkillsIntegrationTests.cs - Updated parent README to reference the new sample
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
AnthropicSkillsIntegrationTests.cs | Integration tests for Anthropic Skills functionality with two test cases |
Agent_Anthropic_Step04_UsingSkills/README.md | Documentation for the Skills sample with code examples and prerequisites |
Agent_Anthropic_Step04_UsingSkills/Program.cs | Sample code demonstrating Skills listing, agent creation, and file download |
Agent_Anthropic_Step04_UsingSkills.csproj | Project configuration file matching existing sample patterns |
agent-framework-dotnet.slnx | Solution file updated to include the new sample project |
AgentWithAnthropic/README.md | Updated table of samples to reference the new Skills sample |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Motivation and Context
Adds a sample demonstrating Anthropic Claude Skills support in .NET, matching the Python sample functionality as requested in Issue #2690. Follows Stephen Toub's recommended simplified approach using
AsAITool().Description
Sample
Agent_Anthropic_Step04_UsingSkillsdemonstrates:BetaSkillParams.AsAITool()to add skills (SDK auto-handles beta flags)Key:
AsAITool()auto-handles beta headers and container config - no manualRawRepresentationFactoryneeded!Changes:
Program.cs- Simplified with skills listing and file downloadREADME.md- Updated documentationAnthropicSkillsIntegrationTests.cs- Simplified testsContribution 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.
Fixes.NET: Claude Skills support #2690