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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HigLabo.Anthropic" Version="10.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HigLabo.Anthropic" Version="10.2.0" />
                    
Directory.Packages.props
<PackageReference Include="HigLabo.Anthropic" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HigLabo.Anthropic --version 10.2.0
                    
#r "nuget: HigLabo.Anthropic, 10.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HigLabo.Anthropic@10.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HigLabo.Anthropic&version=10.2.0
                    
Install as a Cake Addin
#tool nuget:?package=HigLabo.Anthropic&version=10.2.0
                    
Install as a Cake Tool

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, and Top_K. These properties and JSON fields are removed; the API rejects even their former defaults.
  • For custom IChatMessage blocks, put documents in user messages. Direct assistant documents return HTTP 400; nested tool-result documents remain accepted.
  • Remove non-empty text citations arrays from user messages, including search results. Assistant citations and document/search-result citations: { enabled: true } remain accepted. The server validates these restrictions.
  • AnthropicSettings.BetaVersion now 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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