pub mod catalog;
pub mod condition;
pub mod doc_schema;
pub mod dsl;
pub mod engine;
pub mod event;
pub mod file;
pub mod graph;
pub mod node;
pub mod nodes;
pub mod pool;
pub mod redact;
pub mod response;
pub mod snapshot;
pub mod source_map;
pub mod store;
pub mod template;
pub mod tool;
pub mod tool_node;
pub mod validate;
pub mod value;
pub mod variables;
pub use dsl::Workflow;
pub use engine::{Engine, RunHandle, RunInput, RunStream};
pub use event::{Event, Usage};
pub use graph::Graph;
pub use node::{Node, NodeContext, NodeError, NodeOutcome, NodeOutput, NodeRole, Registry, Services};
pub use pool::{Selector, VariablePool};
pub use snapshot::Snapshot;
pub use value::{Value, ValueType};
pub use variables::{VarName, Variables};
pub use indexmap;
pub use indexmap::IndexMap;
pub use serde_json;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
#[error(transparent)]
Document(#[from] dsl::DocumentError),
#[error(transparent)]
Graph(#[from] graph::GraphError),
#[error("invalid run input: {0}")]
Input(String),
#[error("snapshot does not match this graph (expected fingerprint {expected}, got {actual})")]
SnapshotMismatch { expected: String, actual: String },
#[error("unsupported snapshot format {0}")]
SnapshotFormat(u32),
}