Back to Blog
·Recursive Labs

Introducing AgentSDK: A New Standard for AI Agents in Rust

We're excited to announce AgentSDK, a type-safe, async-first SDK for building production AI agents in Rust.

announcementrelease

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:

  1. Type-safe tool definitions with derive macros
  2. Multi-model routing with automatic fallbacks
  3. Built-in observability via the tracing ecosystem
  4. Streaming responses with backpressure handling

Getting Started

Add AgentSDK to your Cargo.toml:

toml

Then define your first agent:

rust

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!

Related Posts