Prerequisites
Before you begin, make sure you have:- Rust 1.70 or higher installed
- An Anthropic API key or Google AI API key
- Basic familiarity with async Rust
Installation
Add Shadow Agent SDK to your project’sCargo.toml:
Your First Agent
Create a new filemain.rs and add the following code:
Run Your Agent
Execute your agent:Using Tools
Agents can use tools to interact with the file system, run commands, and more:MCP Integration
Use Model Context Protocol servers for extended functionality:Configuration
Set up environment variables for easier configuration:.env