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
//! Flow - Execution semantics and control flow
//!
//! Flow primitives define HOW execution happens:
//! - Sequential: one after another
//! - Parallel: fan-out, fan-in
//! - Conditional: if/then/else branching
//! - Loop: iteration with exit condition
//!
//! These are NOT agents. They are execution patterns that can compose
//! any Callable (agent, tool, graph node).
//!
//! ## Key Distinction
//!
//! - **Callable**: WHAT runs (agent, tool, function)
//! - **Flow**: HOW it runs (sequential, parallel, conditional)
//!
//! ```text
//! ┌─────────────────────────────────────────────┐
//! │ Flow │
//! │ ┌─────────┐ ┌─────────┐ ┌─────────────┐ │
//! │ │Sequential│ │Parallel │ │Conditional │ │
//! │ └────┬────┘ └────┬────┘ └─────┬───────┘ │
//! │ │ │ │ │
//! │ ▼ ▼ ▼ │
//! │ ┌─────────────────────────────────────┐ │
//! │ │ Callable │ │
//! │ │ (Agent, Tool, Function, Graph) │ │
//! │ └─────────────────────────────────────┘ │
//! └─────────────────────────────────────────────┘
//! ```
pub use ;
pub use ;
pub use ; // Renamed from loop.rs to avoid Rust keyword
pub use SequentialFlow;