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 redact;
26pub mod response;
27pub mod snapshot;
28pub mod store;
29pub mod template;
30pub mod tool;
31pub mod tool_node;
32pub mod value;
33
34pub use dsl::Workflow;
35pub use engine::{Engine, RunHandle, RunInput, RunStream};
36pub use event::{Event, Usage};
37pub use graph::Graph;
38pub use node::{Node, NodeContext, NodeError, NodeOutcome, NodeOutput, NodeRole, Registry, Services};
39pub use pool::{Selector, VariablePool};
40pub use snapshot::Snapshot;
41pub use value::{Value, ValueType};
42
43pub use indexmap;
45pub use indexmap::IndexMap;
47pub use serde_json;
49
50#[derive(Debug, thiserror::Error)]
52#[non_exhaustive]
53pub enum Error {
54 #[error(transparent)]
55 Document(#[from] dsl::DocumentError),
56 #[error(transparent)]
57 Graph(#[from] graph::GraphError),
58 #[error("invalid run input: {0}")]
59 Input(String),
60 #[error("snapshot does not match this graph (expected fingerprint {expected}, got {actual})")]
61 SnapshotMismatch { expected: String, actual: String },
62 #[error("unsupported snapshot format {0}")]
63 SnapshotFormat(u32),
64}