erio-workflow 0.1.0

DAG workflow engine for Erio
Documentation

erio-workflow

erio-workflow provides a DAG-based workflow engine for orchestrating async steps with dependencies, checkpointing support, and typed execution context.

It is useful for plan-then-execute style agents where each step may depend on prior outputs.

Quickstart

use erio_workflow::{Workflow, WorkflowEngine};

async fn run() -> Result<(), Box<dyn std::error::Error>> {
    let workflow = Workflow::builder().build()?;
    let engine = WorkflowEngine::new();
    let _ctx = engine.run(workflow).await?;
    Ok(())
}

API tour

  • Workflow construction/execution: Workflow, Dag, WorkflowEngine
  • Step contracts: Step, StepOutput, WorkflowContext
  • Control/state: Checkpoint
  • Error type: WorkflowError
  • Modules: builder, dag, engine, step, context, checkpoint, conditional, error

Related crates

Compatibility

  • MSRV: Rust 1.93
  • License: Apache-2.0