Expand description
Anthropic Claude API client library.
A type-safe, async client for the Anthropic Messages API.
Structs§
- ApiKey
Auth - API key authentication (x-api-key header).
- Client
- Anthropic API client.
- Client
Builder - Client builder.
- Create
Message Request - Request to create a message.
- Create
Message Response - Response from creating a message.
- Error
Detail - Error detail.
- Error
Response - Error response from the API.
- Message
- A message in the conversation.
- Model
- Model information.
- Tool
- Tool definition.
- Usage
- Token usage statistics.
Enums§
- Anthropic
Error - Anthropic API error type.
- Content
Block - Content block in a message.
- Message
Content - Message content (can be string or blocks).
- Role
- Message role.
Traits§
- Auth
Strategy - Authentication strategy trait.
Type Aliases§
- Result
- Result type alias for Anthropic operations.