WarpraRead the docs

Agent logic that can pause, and never forgets.

Write your agent as a graph in Rust. Every step is saved, so a run can wait for a person, pick up exactly where it stopped, or rewind to any earlier step.

$ cargo add --git https://github.com/Liceron/warpra warpra
refund.rsdemo
let mut g = StateGraph::new()    .last_value("order").last_value("decision");g.add_node_fn("check order", |s, _| async move {    Ok(json!({"order": lookup(&s).await?}))})?;g.add_node_fn("approve", |_, ctx| async move {    let ok = ctx.interrupt(json!("refund?"))?;    Ok(json!({"decision": ok}))})?;g.add_node_fn("refund", |s, _| async move {    Ok(json!({"refunded": pay_back(&s).await?}))})?;let app = g.compile(opts.checkpointer(sqlite))?;
STARTcheck orderapproverefundEND
Paused and saved. Refund $129 for order 4471?

How you use it

Five short steps from an empty project to a graph you can serve.

[dependencies]
warpra = { git = "https://github.com/Liceron/warpra" }
serde_json = "1"
tokio = { version = "1", features = ["full"] }
Until the first release, use a git or path dependency.

Built for runs that take their time.

Every step saved

State is written after each step, per thread, so nothing is lost when a run stops or the process restarts.

Pause and resume

Any node can hand a question to a person. The run continues from that exact point.

Rewind and fork

Read the full history of a thread, go back to any step, change the state and try again.

Write your first graph in a few minutes.

Read the quickstart