• メッセージ
  • マネージドエージェント
  • 管理
Search...
⌘K
CLI、SDK、ライブラリ
概要
ant CLI
クイックスタート認証オプションCLIの使用スクリプトと自動化
クライアントSDK
ミドルウェアPythonTypeScriptC#GoJavaPHPRuby
ライブラリと統合
OpenAI SDK互換性
Log in
概要
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Solutions

  • AI agents
  • Code modernization
  • Coding
  • Customer support
  • Education
  • Financial services
  • Government
  • Life sciences

Partners

  • Amazon Bedrock
  • Google Cloud's Vertex AI

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Company

  • Anthropic
  • Careers
  • Economic Futures
  • Research
  • News
  • Responsible Scaling Policy
  • Security and compliance
  • Transparency

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Help and security

  • Availability
  • Status
  • Support
  • Discord

Terms and policies

  • Privacy policy
  • Responsible disclosure policy
  • Terms of service: Commercial
  • Terms of service: Consumer
  • Usage policy
CLI、SDK、ライブラリ

CLI、SDK、ライブラリ

Claude APIを使用して構築するための公式ツール:ant CLI、7つの言語のクライアントSDK、およびフレームワーク固有のライブラリ。

Was this page helpful?

  • CLI
  • クライアントSDK
  • ライブラリと統合

Anthropicは、Claude APIを使用して構築するための3種類の公式ツールを提供しています。

  • CLI: シェルスクリプティングおよびインタラクティブな使用のためのantコマンドラインツール。
  • クライアントSDK: Python、TypeScript、C#、Go、Java、PHP、Ruby向けの汎用Messages APIクライアント。各SDKは、イディオマティックなインターフェース、型安全性、およびストリーミング、リトライ、エラー処理の組み込みサポートを提供します。
  • ライブラリと統合: Messages APIを直接使用するのではなく、別のフレームワークのAPIサーフェス内でClaudeを公開するパッケージおよび互換性レイヤー。

完全なAPI仕様については、APIリファレンスを参照してください。

CLI

ant CLI

シェルスクリプティング、型付きフラグ、レスポンス変換

クライアントSDK

Python

同期および非同期クライアント、Pydanticモデル

TypeScript

Node.js、Deno、Bun、およびブラウザのサポート

C#

.NET Standard 2.0+、IChatClient統合

Go

コンテキストベースのキャンセル、関数型オプション

Java

ビルダーパターン、CompletableFuture非同期

PHP

値オブジェクト、ビルダーパターン

Ruby

Sorbet型、ストリーミングヘルパー

ライブラリと統合

ライブラリと統合は、別のフレームワークのAPIサーフェスを通じてClaudeを公開します。これらは汎用のMessages APIクライアントではありません。

OpenAI SDK互換性

OpenAI SDKサーフェスを通じてClaudeを使用