freshcrate
Skin:/
Home > Frameworks > AutoAgents

AutoAgents

A multi-agent framework written in Rust that enables you to build, deploy, and coordinate multiple intelligent agents

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

A multi-agent framework written in Rust that enables you to build, deploy, and coordinate multiple intelligent agents

README

AutoAgents Logo

AutoAgents

A production-grade multi-agent framework in Rust

Crates.io Documentation License Build Status codecov Ask DeepWiki Crates.io Downloads (recent) PyPI - Downloads

English | ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž | Espaรฑol | Franรงais | Deutsch | ํ•œ๊ตญ์–ด | Portuguรชs (Brasil)
Translations may lag behind the English README.

Documentation | Examples | Contributing


Like this project? Star us on GitHub

Overview

AutoAgents is a modular, multi-agent framework for building intelligent systems in Rust. It combines a type-safe agent model with structured tool calling, configurable memory, and pluggable LLM backends. The architecture is designed for performance, safety, and composability across server and edge, and serves as the foundation for higher-level systems like Odyssey.


Key Features

  • Agent execution: ReAct and basic executors, streaming responses, and structured outputs
  • Tooling: Derive macros for tools and outputs, plus a sandboxed WASM runtime for tool execution
  • Memory: Sliding window memory with extensible backends
  • LLM providers: Cloud and local backends behind a unified interface
  • LLM Guardrails: Guardrail implementation for safeguarding LLM inference
  • LLM Optimization: Build LLM pipelines with optimization passes like cache and retry for faster, more reliable inference
  • Multi-agent orchestration: Typed pub/sub communication and environment management
  • Speech-Processing: Local TTS and STT support
  • Observability: OpenTelemetry tracing and metrics with pluggable exporters

Supported LLM Providers

Cloud Providers

Provider Status
OpenAI โœ…
OpenRouter โœ…
Anthropic โœ…
DeepSeek โœ…
xAI โœ…
Phind โœ…
Groq โœ…
Google โœ…
Azure OpenAI โœ…
MiniMax โœ…

Local Providers

Provider Status
Ollama โœ…
Mistral-rs โœ…
Llama-Cpp โœ…

Experimental Providers

See https://github.com/liquidos-ai/AutoAgents-Experimental-Backends

Provider Status
Burn โš ๏ธ Experimental
Onnx โš ๏ธ Experimental

Provider support is actively expanding based on community needs.


Installation

Prerequisites

  • Rust (latest stable recommended)
  • Cargo package manager
  • LeftHook for Git hooks management
  • Python 3.9+ (required for Python bindings)
  • uv for Python environment and package management
  • maturin (required to build/install local Python bindings from source)

Prerequisite

sudo apt update
sudo apt install build-essential libasound2-dev alsa-utils pkg-config libssl-dev -y

Install LeftHook

macOS (Homebrew):

brew install lefthook

Linux/Windows (npm):

npm install -g lefthook

Clone and Build

git clone https://github.com/liquidos-ai/AutoAgents.git
cd AutoAgents
lefthook install
cargo build --workspace --all-features

Python Bindings

AutoAgents ships Python bindings to PyPI. Install the base package and add backends via extras:

pip install autoagents-py                            # core + cloud LLM providers
pip install "autoagents-py[llamacpp]"               # + llama.cpp CPU
pip install "autoagents-py[llamacpp-cuda]"          # + llama.cpp CUDA
pip install "autoagents-py[llamacpp-metal]"         # + llama.cpp Metal (macOS)
pip install "autoagents-py[llamacpp-vulkan]"        # + llama.cpp Vulkan
pip install "autoagents-py[mistralrs]"              # + mistral-rs CPU
pip install "autoagents-py[mistralrs-cuda]"         # + mistral-rs CUDA
pip install "autoagents-py[mistralrs-metal]"        # + mistral-rs Metal (macOS)
pip install "autoagents-py[guardrails]"             # + Guardrails
pip install "autoagents-py[llamacpp-cuda,guardrails]"  # combine extras

Development install from this repo:

uv venv --python=3.12
source .venv/bin/activate          # Windows: .venv\Scripts\activate
uv pip install -U pip maturin pytest pytest-asyncio pytest-cov

# Clean, build, and install all CPU bindings into the active venv
make python-bindings-build

# Clean, build, and install CPU + CUDA bindings
make python-bindings-build-cuda

The Make targets remove stale editable-install extension artifacts before rebuilding, which avoids loading out-of-date .abi3.so files from the source tree.

Example scripts:

  • Core cloud example: bindings/python/autoagents/examples/openai_agent.py
  • llama.cpp example: bindings/python/autoagents-llamacpp/examples/llamacpp_agent.py
  • mistral-rs example: bindings/python/autoagents-mistralrs/examples/mistral_rs_agent.py

Run Tests

cargo test --features "full" --workspace

Quick Start

use autoagents::core::agent::memory::SlidingWindowMemory;
use autoagents::core::agent::prebuilt::executor::{ReActAgent, ReActAgentOutput};
use autoagents::core::agent::task::Task;
use autoagents::core::agent::{AgentBuilder, AgentDeriveT, AgentOutputT, DirectAgent};
use autoagents::core::error::Error;
use autoagents::core::tool::{ToolCallError, ToolInputT, ToolRuntime, ToolT};
use autoagents::llm::LLMProvider;
use autoagents::llm::backends::openai::OpenAI;
use autoagents::llm::builder::LLMBuilder;
use autoagents_derive::{agent, tool, AgentHooks, AgentOutput, ToolInput};
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::sync::Arc;

#[derive(Serialize, Deserialize, ToolInput, Debug)]
pub struct AdditionArgs {
    #[input(description = "Left Operand for addition")]
    left: i64,
    #[input(description = "Right Operand for addition")]
    right: i64,
}

#[tool(
    name = "Addition",
    description = "Use this tool to Add two numbers",
    input = AdditionArgs,
)]
struct Addition {}

#[async_trait]
impl ToolRuntime for Addition {
    async fn execute(&self, args: Value) -> Result<Value, ToolCallError> {
        println!("execute tool: {:?}", args);
        let typed_args: AdditionArgs = serde_json::from_value(args)?;
        let result = typed_args.left + typed_args.right;
        Ok(result.into())
    }
}

#[derive(Debug, Serialize, Deserialize, AgentOutput)]
pub struct MathAgentOutput {
    #[output(description = "The addition result")]
    value: i64,
    #[output(description = "Explanation of the logic")]
    explanation: String,
    #[output(description = "If user asks other than math questions, use this to answer them.")]
    generic: Option<String>,
}

#[agent(
    name = "math_agent",
    description = "You are a Math agent",
    tools = [Addition],
    output = MathAgentOutput,
)]
#[derive(Default, Clone, AgentHooks)]
pub struct MathAgent {}

impl From<ReActAgentOutput> for MathAgentOutput {
    fn from(output: ReActAgentOutput) -> Self {
        let resp = output.response;
        if output.done && !resp.trim().is_empty() {
            if let Ok(value) = serde_json::from_str::<MathAgentOutput>(&resp) {
                return value;
            }
        }
        MathAgentOutput {
            value: 0,
            explanation: resp,
            generic: None,
        }
    }
}

pub async fn simple_agent(llm: Arc<dyn LLMProvider>) -> Result<(), Error> {
    let sliding_window_memory = Box::new(SlidingWindowMemory::new(10));

    let agent_handle = AgentBuilder::<_, DirectAgent>::new(ReActAgent::new(MathAgent {}))
        .llm(llm)
        .memory(sliding_window_memory)
        .build()
        .await?;

    let result = agent_handle.agent.run(Task::new("What is 1 + 1?")).await?;
    println!("Result: {:?}", result);
    Ok(())
}

#[tokio::main]
async fn main() -> Result<(), Error> {
    let api_key = std::env::var("OPENAI_API_KEY").unwrap_or("".into());

    let llm: Arc<OpenAI> = LLMBuilder::<OpenAI>::new()
        .api_key(api_key)
        .model("gpt-4o")
        .max_tokens(512)
        .temperature(0.2)
        .build()
        .expect("Failed to build LLM");

    let _ = simple_agent(llm).await?;
    Ok(())
}

AutoAgents CLI

AutoAgents CLI helps in running Agentic Workflows from YAML configurations and serves them over HTTP. You can check it out at https://github.com/liquidos-ai/AutoAgents-CLI.


Examples

Explore the examples to get started quickly:

Demonstrates various examples like Simple Agent with Tools, Very Basic Agent, Edge Agent, Chaining, Actor Based Model, Streaming and Adding Agent Hooks.

Demonstrates LLM pipelines with optimization passes such as cache and retry to improve performance and reliability.

Demonstrates configurable input and output guardrails with Block, Sanitize, and Audit policies using an LLMLayer in the pipeline.

Demonstrates how to integrate AutoAgents with the Model Context Protocol (MCP).

Demonstrates how to integrate AutoAgents with the Mistral-rs for Local Models.

Demonstrates various design patterns like Chaining, Planning, Routing, Parallel and Reflection.

Contains examples demonstrating how to use different LLM providers with AutoAgents.

A simple agent which can run tools in WASM runtime.

A sophisticated ReAct-based coding agent with file manipulation capabilities.

Run AutoAgents Speech Example with realtime TTS and STT.

Example App that runs AutoAgents with Local models in Android using AutoAgents-llamacpp backend


Components

AutoAgents is built with a modular architecture:

AutoAgents/
โ”œโ”€โ”€ crates/
โ”‚   โ”œโ”€โ”€ autoagents/                # Main library entry point
โ”‚   โ”œโ”€โ”€ autoagents-core/           # Core agent framework
โ”‚   โ”œโ”€โ”€ autoagents-protocol/       # Shared protocol/event types
โ”‚   โ”œโ”€โ”€ autoagents-llm/            # LLM provider implementations
โ”‚   โ”œโ”€โ”€ autoagents-telemetry/      # OpenTelemetry integration
โ”‚   โ”œโ”€โ”€ autoagents-toolkit/        # Collection of ready-to-use tools
โ”‚   โ”œโ”€โ”€ autoagents-mistral-rs/     # LLM provider implementations using Mistral-rs
โ”‚   โ”œโ”€โ”€ autoagents-llamacpp/       # LLM provider implementation using LlamaCpp
โ”‚   โ”œโ”€โ”€ autoagents-speech/         # Speech model support for TTS and STT
โ”‚   โ”œโ”€โ”€ autoagents-guardrails/     # LLM Guardrails implementation
โ”‚   โ”œโ”€โ”€ autoagents-qdrant/         # Qdrant vector store
โ”‚   โ””โ”€โ”€ autoagents-derive/         # Procedural macros
โ”œโ”€โ”€ examples/                      # Example implementations
โ”œโ”€โ”€ bindings/                      # Bindings for different languages

Core Components

  • Agent: The fundamental unit of intelligence
  • Environment: Manages agent lifecycle and communication
  • Memory: Configurable memory systems
  • Tools: External capability integration
  • Executors: Different reasoning patterns (ReAct, Chain-of-Thought)

Development

Prerequisite

sudo apt update
sudo apt install build-essential libasound2-dev alsa-utils pkg-config libssl-dev -y

Running Tests

cargo test --workspace --features default --exclude autoagents-burn --exclude autoagents-mistral-rs --exclude wasm_agent

# Coverage (requires cargo-tarpaulin)
cargo install cargo-tarpaulin
cargo tarpaulin --all-features --out html

Running Benchmarks

cargo bench -p autoagents-core --bench agent_runtime

Git Hooks

This project uses LeftHook for Git hooks management. The hooks will automatically:

  • Format code with cargo fmt --check
  • Run linting with cargo clippy -- -D warnings
  • Execute tests with cargo test --all-features --workspace --exclude autoagents-burn

Contributing

We welcome contributions. Please see our Contributing Guidelines and Code of Conduct for details.


Documentation


Community

  • GitHub Issues: Bug reports and feature requests
  • Discussions: Community Q&A and ideas
  • Discord: Join our Discord Community using https://discord.gg/zfAF9MkEtK

Performance

AutoAgents is designed for high performance:

  • Memory Efficient: Optimized memory usage with configurable backends
  • Concurrent: Full async/await support with tokio
  • Scalable: Horizontal scaling with multi-agent coordination
  • Type Safe: Compile-time guarantees with Rust's type system

License

AutoAgents is dual-licensed under:

You may choose either license for your use case.


Acknowledgments

Built by the Liquidos AI team and wonderful community of researchers and engineers.

Special thanks to:

  • The Rust community for the excellent ecosystem
  • LLM providers for enabling high-quality model APIs
  • All contributors who help improve AutoAgents

Star History

Star History Chart

Release History

VersionChangesUrgencyDate
v0.3.7## What's Changed * [MAINT]: Remove non manylinux for pypi publish by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/192 * [MAINT]: Update Python Bindings Descriptions by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/195 * [MAINT]: Update Python Bindings Descriptions by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/196 * Feat/add chunking streaming in tts#174 by @AshhKetchup in https://github.com/liquidos-ai/AutoAgents/pull/187 * fix: buffer SSMedium3/25/2026
v0.3.6## What's Changed * [MAINT]: Bump version v0.3.5 by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/181 * [FEATURE]: Add LLM Pipeliens with optim passes by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/184 * [FEATURE]: Add LLM Guardrails V1 by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/185 * [REFACTOR]: Add Safe Local Agent Exmaple with Multi-Turn by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/186 * [FEATURE]: Add reasoning Low3/11/2026
v0.3.5## What's Changed * [MAINT]: Bump V0.3.4 by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/165 * fix(anthropic): filter ChatRole::System from messages array by @randomm in https://github.com/liquidos-ai/AutoAgents/pull/166 * [MAINT]: Update quick start docs for dependencies and env setup by @jollidah in https://github.com/liquidos-ai/AutoAgents/pull/167 * Add named collection recreate API for qdrant store by @SergioArrighi in https://github.com/liquidos-ai/AutoAgents/pull/170 Low3/3/2026
v0.3.4## What's Changed * [MAINT]: Bump V0.3.3 by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/131 * refactor: replace fs::create_dir with fs::create_dir_all by @deepsource-autofix[bot] in https://github.com/liquidos-ai/AutoAgents/pull/135 * refactor: collapse match statements into if-let by @deepsource-autofix[bot] in https://github.com/liquidos-ai/AutoAgents/pull/136 * refactor: remove unneeded field patterns by @deepsource-autofix[bot] in https://github.com/liquidos-ai/AutoAgenLow2/20/2026
v0.3.3## What's Changed * [MAINT]: Bump to V0.3.2 by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/122 * [BUG]: Fix repeated tool calling in ollama by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/123 * [FEATURE]: Add Telemetry support by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/124 * [FEATURE]: Add TurnEngine for better executor abstraction by @saivishwak in https://github.com/liquidos-ai/AutoAgents/pull/127 * [FEATURE]: Refactored the DeepSeeLow2/10/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

outputThe open-source TypeScript framework for building AI workflows and agents. Designed for Claude Code describe what you want, Claude builds it, with all the best practices already in place.main@2026-06-05
PraisonAIPraisonAI ๐Ÿฆž โ€” Hire a 24/7 AI Workforce. Stop writing boilerplate and start shipping autonomous agents that research, plan, code, and execute tasks. Deployed in 5 lines of code with built-in memory, Rv4.6.52
AgentPinAgentPin agent pinning protocol, part of the Symbiont Agent Trust Stackv0.3.0
graphbitGraphBit is the worldโ€™s first enterprise-grade Agentic AI framework, built on a Rust core with a Python wrapper for unmatched speed, security, and scalability. It enables reliable multi-agent workflowGraphbit_Python_v0.6.7
langchainThe agent engineering platformlangchain-core==1.4.1

More from liquidos-ai

OdysseyRust SDK for packaging, securing, and operating portable AI agents.

More in Frameworks

deer-flowAn open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of ta
simBuild, deploy, and orchestrate AI agents. Sim is the central intelligence layer for your AI workforce.
ctranslate2Fast inference engine for Transformer models
schemathesisProperty-based testing framework for Open API and GraphQL based apps