anthropics/anthropic-sdk-csharp
概要
Access to Anthropic's safety-first language model APIs in C#
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- +1
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAnthropic SDK for C#
[!IMPORTANT] As of version 10+, the
Anthropicpackage is now the official Anthropic SDK for C#. Package versions 3.X and below were previously used for the tryAGI community-built SDK, which has moved totryAGI.Anthropic. If you need to continue using the former client in your project, update your package reference totryAGI.Anthropic.
The Anthropic SDK for C# provides access to the Claude API from C# applications.
Documentation
Full documentation is available at platform.claude.com/docs/en/api/sdks/csharp.
Installation
dotnet add package Anthropic
Getting started
using System;
using Anthropic;
using Anthropic.Models.Messages;
AnthropicClient client = new();
MessageCreateParams parameters = new()
{
MaxTokens = 1024,
Messages =
[
new UserMessageParam("Hello, Claude")
],
Model = Model.ClaudeOpus5_5,
};
var message = await client.Messages.Create(parameters);
Console.WriteLine(message);
Requirements
.NET Standard 2.0+
Contributing
See CONTRIBUTING.md.
License
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details. Versions released before the change from the MIT License, and third-party contributions merged before it, remain under the MIT License. See LICENSE-MIT.
関連プロジェクトを探す
読み込み中…