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
//! `Command<S>` — caller's instruction for `CompiledGraph::resume_with`.
//!
//! After an interrupt the caller has four reasonable next moves:
//! - `Resume` as-is from the saved next-node and saved state.
//! - `Update(s)` the state (e.g. inject the human's reply) and continue
//! from the saved next-node.
//! - `GoTo(node)` skip ahead to a different node, keeping the saved state.
//! - `ApproveTool { tool_use_id, decision }` thread an out-of-band
//! approval decision back into the graph for an `AwaitExternal`
//! pause raised by an approval layer (`entelix-agents::ApprovalLayer`).
//! The resume path attaches the decision to `ExecutionContext` via
//! the typed `entelix_core::PendingApprovalDecisions` extension so
//! the layer's override-lookup short-circuits the approver on
//! re-entry.
use ApprovalDecision;
/// Resume directive supplied to `CompiledGraph::resume_with`.