Overview
PraisonAI Rust SDK – Build high-performance AI agents
Build high-performance AI agents in Rust with minimal code.
Why Rust?
| Benefit | Description |
|---|---|
| Performance | Native speed, no GC pauses |
| Safety | Memory-safe by design |
| Concurrency | Async-first architecture |
| Small footprint | Deploy anywhere |
Quick Example
use praisonai::Agent;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let agent = Agent::new()
.name("Assistant")
.instructions("You are helpful")
.build()?;
agent.chat("Hello!").await?;
Ok(())
}Core Concepts
Agent
The core AI building block
ToolsGive agents abilities
MemoryConversation history
Agent TeamsMulti-agent collaboration
Get Started
- Install
bash cargo add praisonai tokio - Set API Key
bash export OPENAI_API_KEY="your-key" - Create Agent
Follow the Quick Start guide.