pub struct NodeState {
pub status: NodeStatus,
pub input: Option<Value>,
pub output: Option<Value>,
pub triggered_by: String,
pub branch: String,
pub interrupts: Vec<String>,
pub attempt: i32,
pub resumed_inputs: Option<Map<String, Value>>,
/* private fields */
}Expand description
The per-node lifecycle record. A RunState holds one of
these for every node the engine has touched.
Fields§
§status: NodeStatusThe current lifecycle position.
input: Option<Value>The value most recently handed to the node’s run. Set when the node is scheduled.
output: Option<Value>The value the node emitted via the event output. Set when status transitions to
Completed.
triggered_by: StringThe name of the upstream node that produced the current input. Empty for the initial START activation.
branch: StringThe composite branch string assigned to this activation at scheduling time. Empty for nodes that inherit the root branch (single-successor chains); populated for nodes scheduled after a fan-out and for JoinNodes resolving the common branch prefix of their predecessors. Persisted so resume can reconstruct the same branch tree on re-entry.
interrupts: Vec<String>The long-running tool call IDs the node is waiting on; lets resume match a human’s
FunctionResponse to the node. Non-empty for a node waiting on long-running interrupts, and
also while status is Pending for a partially resumed re-entry node. A node parked by
wait_for_output reaches Waiting with this field empty.
attempt: i32The number of times this node has failed.
resumed_inputs: Option<Map<String, Value>>Accumulated response payloads for re-entry-mode nodes that yield RequestInput more than
once during a single activation lifecycle, keyed by interrupt ID. Cleared when the node
transitions to Completed; None for handoff-mode nodes.