Skip to content

Latest commit

Β 

History

History
45 lines (30 loc) Β· 1.01 KB

File metadata and controls

45 lines (30 loc) Β· 1.01 KB

Claude Agent SDK Examples

This directory contains 22 comprehensive examples demonstrating all features of the Claude Agent SDK for Rust. Each example is fully documented and runnable.

Quick Start

# Run any example
cargo run --example <name>

# For example
cargo run --example 01_hello_world

Example Categories

πŸ“š Basics (Examples 01-03)

Basic SDK usage and fundamentals.

πŸš€ Advanced (Examples 04-07)

Permissions, hooks, and dynamic control.

πŸ› οΈ MCP Integration (Example 08)

Custom in-process tools.

βš™οΈ Configuration (Examples 09-13)

Configuration options and customization.

🎯 Patterns (Examples 14-16)

Comprehensive patterns for common use cases.

πŸ’Ό Production Features (Examples 17-20)

Production-ready features.

πŸ”Œ Plugin System (Examples 21-22)

Custom plugin loading and integration.

Learning Path

Beginner: 01, 02, 06 Intermediate: 04, 05, 08 Advanced: 14, 15, 16 Production: 17, 18, 21

For full details, see individual example files.