| Example | Description |
|---|---|
| Anthropic Basic | Run a minimal Claude agent in sync, async, and streaming modes. |
| Anthropic Basic With Timeout | Set a one-second request timeout on Claude with the timeout parameter. |
| 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 | Compute statistics with Claude’s server-side code execution tool via a beta flag. |
| Self-managed Context Management | Claude’s context management feature for automatic tool result clearing. |
| Anthropic CSV Input | Pass a downloaded IMDB CSV to Claude as a File attachment for box office analysis. |
| DB | Persist Claude chat history in Postgres so follow-up questions keep context. |
| Anthropic Financial Analyst Thinking | Analyze a stock portfolio with interleaved thinking, calculator, and YFinance tools. |
| Anthropic Image Input Bytes | Send an image to Claude as raw bytes and search the web for related news. |
| 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 | Download a PNG locally and pass it to Claude by filepath as an image input. |
| Anthropic Image Input URL | Pass an image URL to Claude and combine vision with web search tools. |
| Knowledge | Give Claude a PgVector knowledge base built from a recipe PDF with Azure OpenAI embeddings. |
| Anthropic MCP Connector | Connect Claude to the DeepWiki MCP server with the native MCP connector beta. |
| Memory | Store Claude agent memories and session summaries in Postgres across multiple turns. |
| Anthropic PDF Input Bytes | Send a PDF to Claude as raw bytes and read citations from the run output. |
| 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 | Attach a local PDF file to a Claude prompt and print the response citations. |
| Anthropic PDF Input URL | Summarize a PDF fetched from a URL by passing it to Claude as a File. |
| 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 | 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 | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| Anthropic Structured Output | Generate a typed MovieScript from Claude with a Pydantic output schema. |
| 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 | Enable Claude extended thinking with a token budget and stream the response. |
| Tool Use | Call web search tools from Claude in sync, streaming, and async modes. |
| Anthropic Web Fetch | Fetch and summarize a web page with Anthropic’s native web_fetch tool. |
| Anthropic Web Search | Use Anthropic’s native web_search tool and inspect search metrics on the run output. |
| Skills | Browse Claude Agent Skills examples for PowerPoint, Excel, Word, and multi-skill workflows. |
| 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 | Append a trailing user turn with append_trailing_user_message when a Claude 4.6 conversation ends on an assistant message. |
| Anthropic Markdown Input | Demonstrates passing markdown files to Claude using the correct text/markdown MIME type. |
| Prompt Caching Multi Block | Multi-block prompt caching with per-block TTL and tool caching. |
| Prompt Caching with Dynamic Block | Augment the agent-built system prompt with a dynamic per-request block. |
| Anthropic Pydantic Tool Input | Pass nested, Optional, Union, List, and deeply nested Pydantic models as tool inputs to Claude. |
| Anthropic Server Tools: Multi-Turn | Combines web_search, web_fetch, and code_execution in a multi-turn conversation. |
Anthropic
Anthropic
Claude examples for multimodal input, context management, caching, knowledge, memory, thinking, structured output, server tools, and skills.