2 unstable releases

0.2.0 Feb 5, 2026
0.1.0 Feb 4, 2026

#2387 in Asynchronous


Used in 2 crates

MIT license

1MB
22K SLoC

PraisonAI Core - High-performance, agentic AI framework for Rust

This crate provides the core functionality for building AI agents and multi-agent workflows.

Quick Start

use praisonai::{Agent, tool};

#[tool(description = "Search the web")]
async fn search(query: String) -> String {
    format!("Results for: {}", query)
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let agent = Agent::new()
        .instructions("You are a helpful assistant")
        .build();
    
    let response = agent.chat("Hello!").await?;
    println!("{}", response);
    Ok(())
}

Architecture

PraisonAI follows an agent-centric design with these core components:

  • Agent: The core execution unit that processes prompts and uses tools
  • Tool: Functions that agents can call to perform actions
  • AgentTeam: Coordinates multiple agents for complex workflows
  • AgentFlow: Defines workflow patterns (sequential, parallel, etc.)
  • Memory: Persists conversation history and context

Design Principles

  • Agent-Centric: Every design decision centers on Agents
  • Protocol-Driven: Traits define contracts, implementations are pluggable
  • Minimal API: Fewer parameters, sensible defaults
  • Performance-First: Lazy loading, optional dependencies
  • Async-Safe: All I/O operations are async

Dependencies

~19–42MB
~572K SLoC