1pub mod budget;
17pub mod catalog;
18pub mod child_env;
19pub mod condition;
20pub mod coordination;
21#[cfg(feature = "cron")]
22pub mod cron;
23pub mod doc_schema;
24pub mod dsl;
25pub mod engine;
26pub mod event;
27pub mod file;
28pub mod graph;
29pub mod learning;
30#[cfg(feature = "memory")]
31pub mod memory;
32pub mod node;
33pub mod nodes;
34pub mod pool;
35pub mod private_fs;
36pub mod redact;
37pub mod response;
38pub mod skill;
39pub mod snapshot;
40pub mod source_map;
41pub mod store;
42#[cfg(feature = "store-conformance")]
43pub mod store_conformance;
44#[cfg(feature = "tokio")]
45pub mod task;
46pub mod template;
47pub mod text_model;
48pub mod tool;
49pub mod tool_node;
50pub mod ui;
51pub mod urls;
52pub mod validate;
53pub mod value;
54pub mod value_path;
55pub mod variables;
56#[cfg(feature = "yaml")]
57pub mod yaml;
58
59pub use dsl::Workflow;
60pub use engine::{Engine, RunHandle, RunInput, RunStream};
61pub use event::{Event, Usage};
62pub use graph::Graph;
63pub use node::{Node, NodeContext, NodeError, NodeOutcome, NodeOutput, NodeRole, Registry, Services};
64pub use pool::{Selector, VariablePool};
65pub use snapshot::Snapshot;
66pub use value::{Value, ValueType};
67pub use variables::{VarName, Variables};
68
69pub use indexmap;
71pub use indexmap::IndexMap;
73pub use serde_json;
75
76#[derive(Debug, thiserror::Error)]
78#[non_exhaustive]
79pub enum Error {
80 #[error(transparent)]
81 Document(#[from] dsl::DocumentError),
82 #[error(transparent)]
83 Graph(#[from] graph::GraphError),
84 #[error("invalid run input: {0}")]
85 Input(String),
86 #[error("snapshot does not match this graph (expected fingerprint {expected}, got {actual})")]
87 SnapshotMismatch { expected: String, actual: String },
88 #[error("unsupported snapshot format {0}")]
89 SnapshotFormat(u32),
90}