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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.