Sruim-CrewAI
A high-performance multi-agent orchestration engine written in Rust.
Features
- Actor Model: Agents run as isolated Tokio tasks, communicating via channels
- Type Safety: Compile-time guarantees, no runtime "AttributeError"
- Zero-Cost Abstractions: Compiles to single binary, no interpreter needed
- LLM Integration: Built-in Anthropic Claude support, extensible provider trait
- Tool System: JSON Schema auto-generation via schemars
- DAG Scheduling: Task dependencies with topological execution
Quick Start
[]
= "0.1"
= { = "1.43", = ["full"] }
= "0.15" # Optional: for .env loading
use LlmAgent;
use AnthropicProvider;
use ToolRegistry;
use ;
use Arc;
use mpsc;
async
Environment Variables
LLM_API_KEY=your-api-key
LLM_BASE_URL=https://api.anthropic.com/v1/messages
LLM_MODEL=claude-3-5-sonnet-20241022
Architecture
┌─────────────────────────────────────────┐
│ Crew │
│ ┌────────┐ ┌────────┐ ┌────────┐ │
│ │Agent A │ │Agent B │ │Agent C │ │
│ │(Tokio) │ │(Tokio) │ │(Tokio) │ │
│ └───┬────┘ └───┬────┘ └───┬────┘ │
│ └───────────┼───────────┘ │
│ mpsc::channel │
└─────────────────────────────────────────┘
Testing
# Unit tests
# E2E tests (requires API key)
Documentation
See docs/getting-started.md for full documentation.
License
MIT