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
/// A Send instruction for dynamic fan-out to multiple nodes.
///
/// In LangGraph, `Send` allows conditional edges to dispatch work to
/// multiple nodes in parallel, each receiving a different state payload.
/// This is useful for map-reduce patterns where a single node's output
/// needs to be processed by multiple downstream nodes concurrently.
///
/// This is currently a placeholder type for future fan-out support.
/// The type is defined and exported so that user code can start
/// referencing it, but the actual parallel dispatch is not yet
/// implemented in `CompiledGraph`.
///
/// # Example (future API)
///
/// ```ignore
/// use synaptic_graph::Send;
///
/// // In a conditional edge router, return multiple Send instructions
/// // to fan out to different nodes with different state payloads:
/// let sends = vec![
/// Send::new("process_chunk", serde_json::json!({"chunk": "part1"})),
/// Send::new("process_chunk", serde_json::json!({"chunk": "part2"})),
/// ];
/// ```