everruns 0.18.1

Build and run durable AI agents in Rust — the application-facing entrypoint to the Everruns agentic framework
Documentation
use everruns::{Agent, Engine, Model};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let engine = Engine::new();
    let agent = Agent::builder()
        .instructions("Be concise.")
        .model(Model::simulated("Hello."))
        .build()?;

    let session = engine.create(agent);
    let session_id = session.session_id();
    println!("{}", session.send_and_wait("hello").await?.response);

    drop(session);
    let resumed = engine.resume(session_id).await?;
    println!(
        "{} messages",
        resumed.history().page().await?.messages.len()
    );
    Ok(())
}