Betalgo.Ranul.Anthropic
8.1.1
dotnet add package Betalgo.Ranul.Anthropic --version 8.1.1
NuGet\Install-Package Betalgo.Ranul.Anthropic -Version 8.1.1
<PackageReference Include="Betalgo.Ranul.Anthropic" Version="8.1.1" />
paket add Betalgo.Ranul.Anthropic --version 8.1.1
#r "nuget: Betalgo.Ranul.Anthropic, 8.1.1"
// Install Betalgo.Ranul.Anthropic as a Cake Addin #addin nuget:?package=Betalgo.Ranul.Anthropic&version=8.1.1 // Install Betalgo.Ranul.Anthropic as a Cake Tool #tool nuget:?package=Betalgo.Ranul.Anthropic&version=8.1.1
.NET Library for Anthropic Claude
⭐ We appreciate your star, it helps!
Community Links
We have a very new and channel. Please come and help us build the .NET AI community.
This C# library is created by Betalgo for the Ranul Tinga Project and is released under the MIT license.
Overview
A simple and efficient .NET library for accessing Anthropic's Claude AI API. This community-provided library allows you to easily integrate Claude's powerful AI capabilities into your C# applications.
Install Package
Install-Package Betalgo.Ranul.Anthropic
Documentation and Examples
The repository contains a sample project named Anthropic.Playground to help you understand how to work with Claude using this library. Please refer to the Wiki for detailed documentation and advanced usage scenarios.
Quick Start
Here's a simple example demonstrating how easy it is to use Claude with the Anthropic .NET Library:
var anthropicService = new AnthropicService(new()
{
ApiKey = Environment.GetEnvironmentVariable("MY_ANTHROPIC_API_KEY")
});
var messageRequest = new MessageRequest
{
Messages = [Message.FromUser("What is the capital of France?")],
Model = "claude-3-opus-20240229",
MaxTokens = 100
};
var messageResponse = await anthropicService.Messages.Create(messageRequest);
if (messageResponse.Successful)
{
Console.WriteLine(messageResponse.ToString());
}
Notes
This library is a community project for interacting with Anthropic's Claude AI and is not officially supported by Anthropic. Please use it responsibly and in accordance with Anthropic's usage policies for Claude.
Changelog
8.1.1
- Updated NuGet packages to address a security issue flagged by Microsoft: https://github.com/advisories/GHSA-8g4q-xg66-9fp4
8.1.0
- Updated Namespace to
Betalgo.Anthropic
8.0.0
- Initial release of the Anthropic Claude .NET Library
Acknowledgements
Maintenance of this project is made possible by all the bug reporters, contributors, and sponsors.
For any issues, contributions, or feedback related to using this library with Claude, feel free to reach out or submit a pull request.
Betalgo GitHub: https://github.com/betalgo
Betalgo Twitter: @Betalgo
Betalgo LinkedIn: Betalgo | LinkedIn
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- System.Net.Http.Json (>= 8.0.1)
- System.Text.Json (>= 8.0.5)
-
net6.0
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- System.Text.Json (>= 8.0.5)
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- System.Text.Json (>= 8.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.