Expand description
Type-safe Rust client for the Anthropic API.
See the crate README for an overview.
Re-exports§
pub use beta::BetaHeader;pub use client::Client;asyncpub use client::ClientBuilder;asyncpub use error::Error;pub use error::Result;
Modules§
- admin
admin - Anthropic Admin API.
- auth
- Authentication primitives and the
RequestSignerhook. - batches
- The Batches API: submit a batch of message requests, poll for completion, stream per-request results.
- bedrock
bedrock - AWS Bedrock support: a
RequestSignerthat signs HTTP requests with sigv4. - beta
- Typed
anthropic-betaheader values. - blocking
sync - Blocking (synchronous) variants of the HTTP surface.
- client
async - HTTP client and builder.
- conversation
conversation - Multi-turn conversation helper.
- cost_
preview asyncandpricing CostPreview– estimate the USD cost of a request before sending it.- derive
derive - Procedural-macro re-exports for the
derivefeature. - dry_run
async DryRun– preview the HTTP request that would be sent, without firing it.- error
- Error type, result alias, and wire-format error payload.
- files
- The Files API (beta).
- managed_
agents managed-agents-preview - Anthropic Managed Agents API (preview).
- messages
- The Messages API:
create,create_stream,count_tokens. - models
- The Models API:
list,list_all,get. - pagination
- Generic pagination wrapper used across paginated endpoints.
- pricing
pricing - Per-model pricing and cost calculation.
- retry
asyncorsync - Retry policy honoring
Retry-After. - skills
skills - The Skills API (beta).
- sse
streaming - Low-level Server-Sent Events parsing.
- tool_
dispatch async - Tool-dispatch foundation: the
Tooltrait, plus a registry and agent loop runner (the latter two land in v0.2 tasks #19 and #20). - types
- Foundational shared types:
ModelId,Role,Usage,StopReason. - user_
profiles user-profiles - The User Profiles API (beta).