🦀
🍲
🦀 Rust-NativeOpen Source

Stockpot

A Heavy-Bottomed Pot for High-Heat Code

Brewing autonomous agents in an iron-clad Rust environment. High-performance AI orchestration with the safety guarantees only Rust can provide.

🍲
🦀
⚙️

The Problem

AI agents are powerful, but they can be messy. They hallucinate, they loop, they consume resources without warning. Memory leaks. Infinite retries. Cascading failures.

You need a vessel strong enough to contain them.

💥

"Why is my agent using 32GB of RAM?"

The Solution

Stockpot is a high-performance Rust crate designed to orchestrate agentic workflows with strict memory safety and concurrency control.

Throw in your ingredients (LLMs, Tools, Data), turn up the heat, and let Stockpot handle the pressure.

main.rs
use stockpot::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    let pot = Stockpot::builder()
        .model("gpt-4")
        .memory_limit(512.megabytes())
        .timeout(Duration::from_secs(30))
        .build()?;

    let agent = Agent::new("sous-chef")
        .with_tools([search, calculate, summarize])
        .with_system_prompt("You are a helpful assistant.");

    pot.simmer(agent).await?;
    
    Ok(())
}

Key Features

Everything you need to run AI agents in production.

Rust-Native Safety

Zero-cost abstractions and memory safety without garbage collection. Your agents can't corrupt what they can't access.

Agent Orchestration

First-class primitives for managing multi-agent conversations, tool calls, and state machines.

High-Temp Performance

Blazing fast execution for latency-sensitive AI applications. Microsecond overhead, not milliseconds.

Memory Containment

Prevents runaway agents from consuming resources. Set limits, enforce them, sleep soundly.

Type-Safe Configs

Compile-time guarantees for your agent configurations. Catch misconfigurations before they hit production.

No Boil-Over

Automatic circuit breakers and timeout handling. When things get too hot, Stockpot knows when to turn down the heat.

Get Started

Add Stockpot to your Cargo.toml and start brewing.

Cargo.toml
[dependencies]
stockpot = "0.1"