1pub mod catalog;
16pub mod condition;
17pub mod dsl;
18pub mod engine;
19pub mod event;
20pub mod file;
21pub mod graph;
22pub mod node;
23pub mod nodes;
24pub mod pool;
25pub mod response;
26pub mod snapshot;
27pub mod store;
28pub mod template;
29pub mod tool;
30pub mod tool_node;
31pub mod value;
32
33pub use dsl::Workflow;
34pub use engine::{Engine, RunHandle, RunInput, RunStream};
35pub use event::{Event, Usage};
36pub use graph::Graph;
37pub use node::{Node, NodeContext, NodeError, NodeOutcome, NodeOutput, NodeRole, Registry, Services};
38pub use pool::{Selector, VariablePool};
39pub use snapshot::Snapshot;
40pub use value::{Value, ValueType};
41
42pub use indexmap;
44pub use indexmap::IndexMap;
46pub use serde_json;
48
49#[derive(Debug, thiserror::Error)]
51#[non_exhaustive]
52pub enum Error {
53 #[error(transparent)]
54 Document(#[from] dsl::DocumentError),
55 #[error(transparent)]
56 Graph(#[from] graph::GraphError),
57 #[error("invalid run input: {0}")]
58 Input(String),
59 #[error("snapshot does not match this graph (expected fingerprint {expected}, got {actual})")]
60 SnapshotMismatch { expected: String, actual: String },
61 #[error("unsupported snapshot format {0}")]
62 SnapshotFormat(u32),
63}