1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Graph construction, compilation, and iteration for workflow execution.
//!
//! The main entry point is [`GraphBuilder`], which assembles nodes, edges, and
//! conditional routes into a workflow that compiles into an executable
//! [`App`](crate::app::App).
//!
//! ```
//! use weavegraph::graphs::GraphBuilder;
//! use weavegraph::types::NodeKind;
//!
//! # struct MyNode;
//! # #[async_trait::async_trait]
//! # impl weavegraph::node::Node for MyNode {
//! # async fn run(&self, _: weavegraph::state::StateSnapshot, _: weavegraph::node::NodeContext) -> Result<weavegraph::node::NodePartial, weavegraph::node::NodeError> {
//! # Ok(weavegraph::node::NodePartial::default())
//! # }
//! # }
//! let app = GraphBuilder::new()
//! .add_node(NodeKind::Custom("process".into()), MyNode)
//! .add_edge(NodeKind::Start, NodeKind::Custom("process".into()))
//! .add_edge(NodeKind::Custom("process".into()), NodeKind::End)
//! .compile();
//! ```
pub use GraphBuilder;
pub use GraphCompileError;
pub use ;
pub use ;
pub use ;