HigLabo.Anthropic
10.2.0
Prefix Reserved
dotnet add package HigLabo.Anthropic --version 10.2.0
NuGet\Install-Package HigLabo.Anthropic -Version 10.2.0
<PackageReference Include="HigLabo.Anthropic" Version="10.2.0" />
<PackageVersion Include="HigLabo.Anthropic" Version="10.2.0" />
<PackageReference Include="HigLabo.Anthropic" />
paket add HigLabo.Anthropic --version 10.2.0
#r "nuget: HigLabo.Anthropic, 10.2.0"
#:package HigLabo.Anthropic@10.2.0
#addin nuget:?package=HigLabo.Anthropic&version=10.2.0
#tool nuget:?package=HigLabo.Anthropic&version=10.2.0
How to use? Download via Nuget search by HigLabo.Anthropic
All source code is https://github.com/higty/higlabo/tree/master/Net9
HigLabo.Anthropic is that.
You can see sample code at https://github.com/higty/higlabo/blob/master/Net9/HigLabo.Anthropic.SampleConsoleApp/AnthropicClientPlayground.cs
Nuget: HigLabo.Anthropic
API version 2026-10-21
Version 10.2.0.0 targets API version 2026-10-21 by default and supports .NET 8, 9, and 10.
var client = new AnthropicClient(apiKey);
var parameter = new MessagesParameter { Model = ModelNames.ClaudeSonnet4_6, Max_Tokens = 1024 };
parameter.AddUserMessage("Hello, Claude");
var response = await client.MessagesAsync(parameter);
Migration from earlier HigLabo.Anthropic versions:
- Remove assignments to
MessagesParameter.Temperature,Top_P, andTop_K. These properties and JSON fields are removed; the API rejects even their former defaults. - For custom
IChatMessageblocks, put documents in user messages. Direct assistant documents return HTTP 400; nested tool-result documents remain accepted. - Remove non-empty text
citationsarrays from user messages, including search results. Assistant citations and document/search-resultcitations: { enabled: true }remain accepted. The server validates these restrictions. AnthropicSettings.BetaVersionnow defaults to empty. Stable tools need no beta header. Set it explicitly for beta features.
AnthropicSettings.Version still accepts an explicit version. For non-default sampling, keep the previous library and API 2023-06-01.
Authentication retains the accepted x-api-key header. Official SDK, Admin API, and Enterprise Analytics changes do not affect this library.
See the official migration guide.
Run the HTTP contract tests (no API key or network requests required):
dotnet test Net9/HigLabo.Anthropic.Test/HigLabo.Anthropic.Test.csproj
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- HigLabo.Core (>= 10.0.0.4)
- HigLabo.NewtonsoftJson (>= 10.1.0)
-
net8.0
- HigLabo.Core (>= 10.0.0.4)
- HigLabo.NewtonsoftJson (>= 10.1.0)
-
net9.0
- HigLabo.Core (>= 10.0.0.4)
- HigLabo.NewtonsoftJson (>= 10.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.2.0 | 49,934 | 10/27/2026 |
| 10.1.0.3 | 117,704 | 8/2/2026 |
| 10.1.0.2 | 715 | 6/7/2026 |
| 10.1.0.1 | 889 | 5/7/2026 |
| 10.1.0 | 2,002 | 3/9/2026 |
| 9.1.0 | 1,189 | 4/15/2025 |
| 9.0.0.1 | 349 | 4/15/2025 |
| 9.0.0 | 243 | 1/22/2025 |
| 8.2.0 | 736 | 9/11/2024 |
| 8.1.0 | 472 | 4/7/2024 |
| 8.0.3 | 311 | 3/18/2024 |
| 8.0.2 | 305 | 3/18/2024 |
| 8.0.1 | 291 | 3/17/2024 |
| 8.0.0 | 284 | 3/17/2024 |