Strands Agents
A Rust implementation of the Strands Agents SDK for building AI agents with model-driven orchestration.
Features
- Model-Driven Orchestration — Agents use LLM reasoning to plan, execute tools, and iterate
- Multi-Provider Support — AWS Bedrock, OpenAI, Anthropic, Ollama, and more
- Type-Safe Tools — Define tools with the
#[tool]macro - Multi-Agent Patterns — Graph and Swarm orchestration
- Async-First — Built on Tokio with streaming support
- OpenTelemetry Integration — Built-in tracing and metrics
Installation
[]
= "0.1"
= { = "1", = ["full"] }
Quick Start
use *;
use BedrockModel;
async
Tools
use ;
use BedrockModel;
/// Get current weather for a location.
async
async
Cargo Features
| Feature | Description |
|---|---|
macros |
#[tool] procedural macro (default) |
s3-session |
S3-based session persistence |
otel-stdout |
OpenTelemetry stdout exporter |
otel-otlp |
OpenTelemetry OTLP exporter |
otel |
All OpenTelemetry exporters |
full |
All features |
Modules
| Module | Description |
|---|---|
agent |
Core Agent interface |
models |
Model providers (Bedrock, OpenAI, Anthropic, Ollama, etc.) |
tools |
Tool definition, execution, and MCP support |
multiagent |
Graph and Swarm patterns |
hooks |
Lifecycle hooks |
session |
Session persistence |
conversation |
Context window management |
telemetry |
Metrics and tracing |
Testing
License
Licensed under the MIT License.
Credits
Rust port of Strands Agents SDK by AWS.