Giter Site home page Giter Site logo

betalgo / anthropic Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 85 KB

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.

C# 100.00%
ai anthropic anthropic-claude betalgo ranul

anthropic's Introduction

Betalgo Ranul Anthropic Github readme banner

.NET Library for Anthropic Claude

โญ We appreciate your star, it helps! GitHub Repo stars

Community Links

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.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

anthropic's People

Contributors

kayhantolga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.