CodeGuides.io
|
React
React Native
Node.js
Python
Rust
PostgreSQL
Solana
Claude
Claude SME Cookbook
FAQs
Search docs...
⌘K
EN
ES
/
/
Search docs...
⌘K
Search Documentation
Search across all documentation pages
Claude SME
/
Tags
/
Python
#Python
127 pages
Pages tagged
Python
across 22 sections.
Agentic Orchestration
Agentic Orchestration & Multi-Agent Best Practices
Agentic Orchestration Basics
Building Subagents for Parallel Research and Delegation
Error Recovery and Retry Strategies in Agent Loops
Evaluating Agent Quality: A Checklist for Production Readiness
Orchestrator/Worker Patterns with the Claude Agent SDK
Single-Agent Loops vs Multi-Agent Systems: A Mental Model
Building MCP Servers
Building a Custom MCP Client with the Agent SDK
Building an MCP Server with the Python SDK
MCP Server Basics
Claude Agent SDK
Claude Agent SDK Basics
Claude Agent SDK Best Practices
Claude Agent SDK Configuration Options Reference
Connecting the Claude Agent SDK to MCP Servers
Delegating Work to Subagents in the Claude Agent SDK
Enabling File Edit, Bash, and Web Tools in the Agent SDK
The Claude Agent SDK Mental Model
API Fundamentals
Authenticating Claude API Calls with the x-api-key Header
Claude API Fundamentals Basics
Claude API Fundamentals Best Practices
Claude API Request Parameters Cheatsheet
Installing and Configuring the Anthropic Python SDK
Selecting a Model: Claude Fable 5, Opus 4.8, Sonnet 5, and Haiku 4.5
Understanding the Claude API Request Lifecycle
Context & Tokens
Context, Tokens & Conversations Basics
Context, Tokens & Conversations Best Practices
How a Claude Conversation Actually Works
How Claude Remembers (and Forgets) Within a Chat Session
System Prompts vs User and Assistant Turns
What Counts as a Token? Tokenization Explained
Enterprise Deployment
Choosing Between Direct API, Bedrock, and Vertex AI for Claude
Comparing Bedrock, Vertex AI, and Direct Anthropic API Access
Deploying Claude on Amazon Bedrock: IAM, Provisioning, and Cross-Region Inference
Enterprise Deployment Basics
Enterprise Deployment Best Practices
Running Claude on Google Cloud Vertex AI: Quotas and Service Accounts
Extended Thinking & Multimodal
Effort Levels and Thinking Display Options Reference
Enabling Adaptive Thinking with thinking: {type: 'adaptive'}
Extended Thinking and the Effort Parameter Explained
Extended Thinking, Effort & Multimodal Basics
Extended Thinking, Effort & Multimodal Best Practices
Tuning the effort Parameter for Cost and Speed
MCP Concepts
Defining Callable Tools in an MCP Server
Exposing Readable Data as MCP Resources
MCP Core Concepts Basics
MCP Core Concepts Best Practices
MCP Tools vs Resources vs Prompts Comparison
Understanding MCP: Tools, Resources, and Prompts
Messages API
Building Multi-Turn Conversations with the Messages Array
Formatting System Prompts for Consistent Claude Behavior
Messages API Basics
Messages API Best Practices
Messages API Roles and Content Block Types Reference
Observability
Instrumenting Agent Loops with OpenTelemetry Tracing
Structured Logging of Prompts, Responses, and Token Counts
Other SDKs
Calling Claude from Go with the Official SDK
Idiomatic Tool Use Across Go, Java, C#, PHP, and Ruby
Other Official SDKs Basics
Other SDKs and OpenAI Compatibility Best Practices
Streaming Responses in Java and C# with the Official SDKs
Prompt Caching
Cache TTL Options and Pricing Reference
How Prompt Caching's Prefix Match Actually Works
Placing cache_control Breakpoints on System Prompts and Tools
Prompt Caching Basics
Prompt Caching Best Practices
Verifying Cache Hits with cache_read_input_tokens
Context Engineering
Context Rot: Why More Tokens Doesn't Mean Better Answers
How Context Engineering Reduces Token Spend
Model Tiering Checklist: Matching Task Complexity to Model Cost
Prompt & Context Engineering Best Practices
Prompt and Context Engineering Basics
Summarization Before the Call: Condensing Long Documents for Claude
Trimming Context: Dependency Graphs Instead of Full Repos
Prompting Claude
Common Prompt Ambiguities and How to Avoid Them
How Claude Interprets Your Instructions
Prompting Claude Basics
Prompting Claude Best Practices
Role and Context Framing: Telling Claude Who to Be
Why Specificity Beats Cleverness in Prompts
Writing a Prompt for a Multi-Step Task in Claude.ai
Python SDK
Choosing Between Anthropic() and AsyncAnthropic() in Production Code
Python SDK Basics
Python SDK Best Practices
Python SDK Exception Types at a Glance
Python SDK Retry and Timeout Configuration Reference
Streaming Responses with the Python SDK
The Anthropic Python SDK Mental Model
Security & RAG
Citation and Grounding Checklist to Reduce RAG Hallucinations
Defending Against Indirect Prompt Injection in RAG-Retrieved Tool Results
Least-Privilege Tool-Scoping Checklist for Production Claude Agents
Security & RAG Pipelines Basics
Security, Compliance & RAG Best Practices
SOC2 and GDPR Considerations for PII in Prompts and Logs
Understanding the Claude Security and RAG Threat Model
Streaming
Building a Chat UI with Incremental Token Deltas
Handling Partial JSON During Streamed Tool Calls
Streaming Best Practices
Streaming Event Types Reference
Streaming Responses Basics
Token Economics
Building a Pre-Request Cost Calculator with the Token Counting API
How Claude Token Pricing Actually Works
Model Tiering: Routing Simple Tasks to Haiku, Hard Tasks to Opus
Sonnet 5 vs Opus 4.8 vs Fable 5: A Cost-Per-Task Comparison
Token Economics Basics
Token Economics Best Practices
Tool Use
Building a Multi-Turn Tool Use Loop
Defining Tool Schemas with name, description, and input_schema
Handling tool_use Requests and Returning tool_result Blocks
How Claude Decides When to Call a Tool
Tool Choice Options Reference
Tool Search Tool defer_loading Parameters Cheatsheet
Tool Use Basics
Tool Use Best Practices
Reliability
Context Overflow and Streaming Disconnects: A Prevention Checklist
Diagnosing 429 Rate-Limit Errors and Quota Exhaustion Under Load
Handling Malformed Tool-Use JSON and Schema Validation Failures
Troubleshooting & Reliability Basics
Troubleshooting & Reliability Best Practices
TypeScript SDK
Async Iterators for Streaming in the TypeScript SDK
TypeScript/JavaScript SDK Basics
TypeScript/JavaScript SDK Best Practices
Usage & Cost Tracking
Comparison: Admin API vs Console Usage and Cost Pages
Filtering Usage by Model, Service Tier, and Data Residency
How the Usage & Cost Admin API Models Your Spend
Querying Usage by API Key and Workspace with the Admin API
Usage & Cost Tracking Basics
Usage & Cost Tracking Best Practices
Related tags
List
Basics
Best Practices
Claude
Streaming
API
Checklist
Context
Back to Top