Anthropic Agents (.NET) sample uses APIKey, but the actual property is ApiKey
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- csharp
- Domain
- documentation
Research direction
Open the Anthropic provider documentation page and inspect the three C# code blocks under the public API and Foundry examples. Verify the AnthropicClient initializer against the referenced SDK documentation, then confirm all three samples use the exposed property name and no longer produce the reported CS0117 error.
Written by the indexing model from the issue text.
Description
The C# sample under "Basic Agent Creation (Anthropic Public API)" on this page shows:
AnthropicClient client = new() { APIKey = apiKey };
This doesn't compile — Microsoft.Agents.AI.Anthropic 1.13.0-preview.260703.1 (which depends on the official Anthropic SDK 12.20.0) exposes the property as ApiKey, not APIKey (confirmed against the official C# SDK docs, which consistently use ApiKey). Hit CS0117: 'AnthropicClient' does not contain a definition for 'APIKey' following this sample verbatim.
All three code blocks on the page using this pattern (public API, Foundry API key, Foundry Azure credentials) have the same typo.
- Dominant language
- Mermaid
- Stars
- 263
- Forks
- 167
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/semantic-kernel-docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MicrosoftDocs/semantic-kernel-docs#434 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
All issues in MicrosoftDocs/semantic-kernel-docs
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·