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                
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="Betalgo.Ranul.Anthropic" Version="8.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Betalgo.Ranul.Anthropic --version 8.1.1                
#r "nuget: Betalgo.Ranul.Anthropic, 8.1.1"                
#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.
// 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                

Betalgo Ranul Anthropic Github readme banner

.NET Library for Anthropic Claude

⭐ We appreciate your star, it helps! GitHub Repo stars

We have a very new Discord and Static Badge 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

Betalgo.Ranul.Anthropic

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

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 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. 
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
8.1.1 101 10/10/2024
8.1.0 113 8/27/2024
8.0.2 101 7/22/2024
8.0.1 101 7/18/2024
8.0.0 84 7/17/2024
0.0.1 88 7/9/2024