> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-codex-docs-audit-20260719-0149.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Anthropic

> Claude examples for multimodal input, context management, caching, knowledge, memory, thinking, structured output, server tools, and skills.

| Example                                                                                           | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Anthropic Basic](/examples/models/anthropic/basic)                                               | Run a minimal Claude agent in sync, async, and streaming modes.                                                                                             |
| [Anthropic Basic With Timeout](/examples/models/anthropic/basic-with-timeout)                     | Set a one-second request timeout on Claude with the timeout parameter.                                                                                      |
| [Betas](/examples/models/anthropic/betas)                                                         | Enable the 1M-token context beta on Claude via the betas parameter and print every beta available in the installed anthropic SDK.                           |
| [Anthropic Code Execution](/examples/models/anthropic/code-execution)                             | Compute statistics with Claude's server-side code execution tool via a beta flag.                                                                           |
| [Self-managed Context Management](/examples/models/anthropic/context-management)                  | Claude's context management feature for automatic tool result clearing.                                                                                     |
| [Anthropic CSV Input](/examples/models/anthropic/csv-input)                                       | Pass a downloaded IMDB CSV to Claude as a File attachment for box office analysis.                                                                          |
| [DB](/examples/models/anthropic/db)                                                               | Persist Claude chat history in Postgres so follow-up questions keep context.                                                                                |
| [Anthropic Financial Analyst Thinking](/examples/models/anthropic/financial-analyst-thinking)     | Analyze a stock portfolio with interleaved thinking, calculator, and YFinance tools.                                                                        |
| [Anthropic Image Input Bytes](/examples/models/anthropic/image-input-bytes)                       | Send an image to Claude as raw bytes and search the web for related news.                                                                                   |
| [Image Input File Upload](/examples/models/anthropic/image-input-file-upload)                     | Upload a PNG to the Anthropic Files API and pass the file handle to Claude as an image input.                                                               |
| [Image Input Local File](/examples/models/anthropic/image-input-local-file)                       | Download a PNG locally and pass it to Claude by filepath as an image input.                                                                                 |
| [Anthropic Image Input URL](/examples/models/anthropic/image-input-url)                           | Pass an image URL to Claude and combine vision with web search tools.                                                                                       |
| [Knowledge](/examples/models/anthropic/knowledge)                                                 | Give Claude a PgVector knowledge base built from a recipe PDF with Azure OpenAI embeddings.                                                                 |
| [Anthropic MCP Connector](/examples/models/anthropic/mcp-connector)                               | Connect Claude to the DeepWiki MCP server with the native MCP connector beta.                                                                               |
| [Memory](/examples/models/anthropic/memory)                                                       | Store Claude agent memories and session summaries in Postgres across multiple turns.                                                                        |
| [Anthropic PDF Input Bytes](/examples/models/anthropic/pdf-input-bytes)                           | Send a PDF to Claude as raw bytes and read citations from the run output.                                                                                   |
| [PDF Input File Upload](/examples/models/anthropic/pdf-input-file-upload)                         | Upload a PDF through the Anthropic Files API beta and pass the file handle to a Claude agent for summarization.                                             |
| [Anthropic PDF Input Local](/examples/models/anthropic/pdf-input-local)                           | Attach a local PDF file to a Claude prompt and print the response citations.                                                                                |
| [Anthropic PDF Input URL](/examples/models/anthropic/pdf-input-url)                               | Summarize a PDF fetched from a URL by passing it to Claude as a File.                                                                                       |
| [Prompt Caching](/examples/models/anthropic/prompt-caching)                                       | Enable Claude cache\_system\_prompt for a large system message and print cache write and read token counts across two runs.                                 |
| [Prompt Caching Extended](/examples/models/anthropic/prompt-caching-extended)                     | Set the extended-cache-ttl beta and extended\_cache\_time on Claude to hold the cached system prompt for one hour, and compare cache write and read tokens. |
| [Retry](/examples/models/anthropic/retry)                                                         | Review retry settings and why invalid model IDs cannot reliably exercise the retry path.                                                                    |
| [Anthropic Structured Output](/examples/models/anthropic/structured-output)                       | Generate a typed MovieScript from Claude with a Pydantic output schema.                                                                                     |
| [Structured Output Strict Tools](/examples/models/anthropic/structured-output-strict-tools)       | Combine a strict-mode Function schema with a Pydantic output\_schema so Claude validates both the tool input and the final response.                        |
| [Anthropic Thinking](/examples/models/anthropic/thinking)                                         | Enable Claude extended thinking with a token budget and stream the response.                                                                                |
| [Tool Use](/examples/models/anthropic/tool-use)                                                   | Call web search tools from Claude in sync, streaming, and async modes.                                                                                      |
| [Anthropic Web Fetch](/examples/models/anthropic/web-fetch)                                       | Fetch and summarize a web page with Anthropic's native web\_fetch tool.                                                                                     |
| [Anthropic Web Search](/examples/models/anthropic/web-search)                                     | Use Anthropic's native web\_search tool and inspect search metrics on the run output.                                                                       |
| [Skills](/examples/models/anthropic/skills/overview)                                              | Browse Claude Agent Skills examples for PowerPoint, Excel, Word, and multi-skill workflows.                                                                 |
| [Anthropic Adaptive Thinking](/examples/models/anthropic/adaptive-thinking)                       | Let Claude 4.6 decide its own thinking depth with `thinking={"type": "adaptive"}` and an effort level.                                                      |
| [Anthropic Append Trailing User Message](/examples/models/anthropic/append-trailing-user-message) | Append a trailing user turn with append\_trailing\_user\_message when a Claude 4.6 conversation ends on an assistant message.                               |
| [Anthropic Markdown Input](/examples/models/anthropic/markdown-input)                             | Demonstrates passing markdown files to Claude using the correct text/markdown MIME type.                                                                    |
| [Prompt Caching Multi Block](/examples/models/anthropic/prompt-caching-multi-block)               | Multi-block prompt caching with per-block TTL and tool caching.                                                                                             |
| [Prompt Caching with Dynamic Block](/examples/models/anthropic/prompt-caching-with-dynamic-block) | Augment the agent-built system prompt with a dynamic per-request block.                                                                                     |
| [Anthropic Pydantic Tool Input](/examples/models/anthropic/pydantic-tool-input)                   | Pass nested, Optional, Union, List, and deeply nested Pydantic models as tool inputs to Claude.                                                             |
| [Anthropic Server Tools: Multi-Turn](/examples/models/anthropic/server-tools-multi-turn)          | Combines web\_search, web\_fetch, and code\_execution in a multi-turn conversation.                                                                         |
