We're thrilled to announce AgentSDK, a new Rust SDK designed from the ground up for building production-grade AI agents.
Why Rust?
When we started building AI agents at Recursive Labs, we quickly hit the limitations of existing Python-based solutions. Cold start times of 100ms+, memory usage in the hundreds of megabytes, and the constant fear of runtime type errors made it clear we needed a better foundation.
Rust offered us everything we needed:
- Zero-cost abstractions that compile down to highly optimized code
- Memory safety without garbage collection overhead
- Fearless concurrency with async/await and the tokio runtime
- Compile-time guarantees that catch errors before they reach production
Key Features
AgentSDK v0.4 includes:
- Type-safe tool definitions with derive macros
- Multi-model routing with automatic fallbacks
- Built-in observability via the tracing ecosystem
- Streaming responses with backpressure handling
Getting Started
Add AgentSDK to your Cargo.toml:
Then define your first agent:
What's Next
We're actively working on v0.5 which will include multi-agent orchestration, enabling agents to communicate and delegate tasks to each other.
Stay tuned for more updates, and check out our documentation to get started today!