# ReqAnthropic v0.2.1 - Table of Contents

An Anthropic-focused API client for Elixir, built on Req.

## Pages

- [ReqAnthropic](readme.md)
- [Changelog](changelog.md)
- [LICENSE](license.md)

## Modules

- Core API
  - [ReqAnthropic](ReqAnthropic.md): An Anthropic-focused API client built on Req.
  - [ReqAnthropic.AuthError](ReqAnthropic.AuthError.md): Raised when no API key can be resolved. ReqAnthropic checks, in order
  - [ReqAnthropic.Beta](ReqAnthropic.Beta.md): Helpers for managing the `anthropic-beta` request header.
  - [ReqAnthropic.Client](ReqAnthropic.Client.md): Internal builder used by every resource module. It guarantees that all
resource calls share the same option-resolution and step-attachment
pipeline, so cross-cutting concerns (auth, error decoding, test stubs)
live in exactly one place.

  - [ReqAnthropic.Error](ReqAnthropic.Error.md): Normalized error returned by ReqAnthropic when the Anthropic API responds
with a non-2xx status, or when the client itself fails before sending.

  - [ReqAnthropic.RateLimit](ReqAnthropic.RateLimit.md): Parsed rate-limit metadata from Anthropic API response headers.
  - [ReqAnthropic.RateLimited](ReqAnthropic.RateLimited.md): Returned when the Anthropic API responds with HTTP 429 (Too Many Requests).
  - [ReqAnthropic.SSE](ReqAnthropic.SSE.md): Minimal Server-Sent Events parser used by streaming endpoints.

- Messages
  - [ReqAnthropic.Conversation](ReqAnthropic.Conversation.md): A small client-side helper for multi-turn Messages conversations.
  - [ReqAnthropic.Messages](ReqAnthropic.Messages.md): The Messages API: send prompts to Claude, count tokens, and stream
responses as parsed events.

- Models
  - [ReqAnthropic.Model](ReqAnthropic.Model.md): Struct representation of an Anthropic model and its capabilities.

  - [ReqAnthropic.Model.Capabilities](ReqAnthropic.Model.Capabilities.md): Per-model capability flags. Anthropic doesn't currently expose these on
`GET /v1/models`, so the table is hard-coded here. Update this module
when models change.

  - [ReqAnthropic.Models](ReqAnthropic.Models.md): The Models API: list available Claude models, retrieve a specific model,
and look up per-model capabilities.

- Files &amp; Batches
  - [ReqAnthropic.Batches](ReqAnthropic.Batches.md): The Message Batches API: submit large volumes of Messages requests for
asynchronous processing at a 50% discount.
  - [ReqAnthropic.Files](ReqAnthropic.Files.md): The Files API: upload files for use across multiple requests.

- Tools
  - [ReqAnthropic.Tools](ReqAnthropic.Tools.md): Builders for Anthropic tool definitions, so callers don't need to
memorize tool type strings or beta header names.

- Managed Agents
  - [ReqAnthropic.Agents](ReqAnthropic.Agents.md): The Managed Agents Agents API: define reusable, versioned agent
configurations (model, system prompt, tools, MCP servers, skills).
  - [ReqAnthropic.Environments](ReqAnthropic.Environments.md): The Managed Agents Environments API: configure container templates
(packages, network policy) that sessions run inside.
  - [ReqAnthropic.Sessions](ReqAnthropic.Sessions.md): The Managed Agents Sessions API: run stateful agent sessions against an
environment. Covers session lifecycle, event submission, event history,
and the SSE event stream.
  - [ReqAnthropic.Vaults](ReqAnthropic.Vaults.md): The Managed Agents Vaults API: store third-party credentials that
sessions can use to authenticate with MCP servers at runtime. Credentials
themselves are managed by `ReqAnthropic.Vaults.Credentials`.
  - [ReqAnthropic.Vaults.Credentials](ReqAnthropic.Vaults.Credentials.md): Credentials nested under a vault. Each credential binds to a single
`mcp_server_url` and provides auth material (static bearer token or
OAuth refresh config) that the session runtime injects when the agent
connects to the MCP server.

