Overview

PraisonAI Rust SDK – Build high-performance AI agents

Build high-performance AI agents in Rust with minimal code.

Diagram

PraisonAI Rust

🤖 Agents

🔧 Tools

🧠 Memory

📚 Knowledge

Why Rust?

BenefitDescription
PerformanceNative speed, no GC pauses
SafetyMemory-safe by design
ConcurrencyAsync-first architecture
Small footprintDeploy anywhere

Quick Example

rust
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


Get Started

  1. Install
    bash
    cargo add praisonai tokio
  2. Set API Key
    bash
    export OPENAI_API_KEY="your-key"
  3. Create Agent

    Follow the Quick Start guide.


What’s Next?