Skip to main content

Requirements

  • Rust 1.88 or newer (edition 2024)
  • A supported agent installed and logged in
  • A Tokio runtime

Install

That adds these to Cargo.toml:
Cargo.toml

One turn

src/main.rs
What just happened:
Session is cheap to clone and every clone talks to the same engine task, so you can prompt from one task while another drains Events.

Run the examples

The repo’s examples/ folder has three small programs that run against the agents on your machine:

Next

Core API

The full public interface on one page.

Building an app

Threads, streaming, permissions, model picker, persistence.