Crate lib_client_anthropic

Crate lib_client_anthropic 

Source
Expand description

Anthropic Claude API client library.

A type-safe, async client for the Anthropic Messages API.

Structs§

ApiKeyAuth
API key authentication (x-api-key header).
Client
Anthropic API client.
ClientBuilder
Client builder.
CreateMessageRequest
Request to create a message.
CreateMessageResponse
Response from creating a message.
ErrorDetail
Error detail.
ErrorResponse
Error response from the API.
Message
A message in the conversation.
Model
Model information.
Tool
Tool definition.
Usage
Token usage statistics.

Enums§

AnthropicError
Anthropic API error type.
ContentBlock
Content block in a message.
MessageContent
Message content (can be string or blocks).
Role
Message role.

Traits§

AuthStrategy
Authentication strategy trait.

Type Aliases§

Result
Result type alias for Anthropic operations.