> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# praisonai • Rust AI Agent SDK

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

# praisonai

<Badge color="orange">Rust AI Agent SDK</Badge>

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

```rust,ignore theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
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

## Import

```rust theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
use praisonai::*;
```
