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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! Graph-based Workflow Orchestration
//!
//! 提供基于有向图的工作流编排系统,支持:
//! - 多种节点类型(任务、条件、并行、聚合、循环)
//! - DAG 拓扑排序执行
//! - 并行执行与同步
//! - 状态管理与数据传递
//! - 错误处理与重试
//! - 检查点与恢复
//! - DSL (YAML/TOML) 配置支持
//!
//! # StateGraph API (LangGraph-inspired)
//!
//! 新的 StateGraph API 提供了更直观的工作流构建方式:
//!
//! ```rust,ignore
//! use mofa_foundation::workflow::{StateGraphImpl, AppendReducer, OverwriteReducer};
//! use mofa_kernel::workflow::{StateGraph, START, END};
//!
//! let graph = StateGraphImpl::<MyState>::new("my_workflow")
//! .add_reducer("messages", Box::new(AppendReducer))
//! .add_node("process", Box::new(ProcessNode))
//! .add_edge(START, "process")
//! .add_edge("process", END)
//! .compile()?;
//!
//! let result = graph.invoke(initial_state, None).await?;
//! ```
// Re-export kernel workflow types for convenience
pub use ;
// Re-export kernel StateGraph trait
pub use StateGraph;
// Foundation-specific exports
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use ;