Skip to main content

agentd/engine/
mod.rs

1// SPDX-License-Identifier: AGPL-3.0-only
2//! The **workflow engine**: the workflow model and its validation ([`model`]),
3//! templates ([`template`]), the data steps ([`data`]) and the durable run
4//! record with its pure scheduler ([`run`]).
5//!
6//! The split that matters: everything here is pure. Step *execution* — turn
7//! workers, MCP calls, internal tools, timers — belongs to `crate::runtime`.
8//! The engine only says what is ready to run and records what happened, which
9//! is what lets a run be scheduled deterministically from its checkpoint after
10//! a restart.
11
12pub mod data;
13pub mod model;
14pub mod run;
15pub mod template;
16
17pub use model::{Workflow, parse_workflow, workflow_schema};
18pub use run::{Next, RunState, RunStatus, StepStatus};