pub struct NodeConfig {
pub parallel_worker: bool,
pub rerun_on_resume: Option<bool>,
pub wait_for_output: Option<bool>,
pub retry_config: Option<RetryConfig>,
pub timeout: Option<Duration>,
pub emits_own_span: bool,
}Expand description
The configuration for a node.
All fields are optional. The Option<bool> fields (rerun_on_resume, wait_for_output) are
tri-state so node implementations can distinguish “user explicitly opted out” (Some(false))
from “user did not configure” (None).
Fields§
§parallel_worker: boolWhen true, runs the node concurrently for each item of a list-typed input. The engine collects per-item outputs and emits a single aggregate output event.
rerun_on_resume: Option<bool>Controls human-in-the-loop resume behavior: Some(true) re-runs the interrupted node from
scratch on resume (re-entry mode), Some(false) routes the resume payload to the node’s
successor as input (handoff mode), and None defers to the engine. The engine currently
treats None as handoff.
wait_for_output: Option<bool>When true, parks the parent (NodeInterrupted) to re-run instead of completing it when a
child dispatched via RunNode finishes without setting an event output — letting a
multi-turn child be retried rather than falsely completed with the zero value. Only honored
on the RunNode (dynamic sub-scheduler) path today. None means “use the engine default” —
false for most node kinds.
retry_config: Option<RetryConfig>When set, makes the scheduler retry this node on failure per the policy. None means
“no retries”.
timeout: Option<Duration>When set and non-zero, bounds a single activation of the node. None (and
Some(Duration::ZERO)) means the node is bounded only by the parent invocation’s deadline.
emits_own_span: boolWhen true, tells the scheduler not to wrap the node in an “invoke_node” telemetry span because the node body already starts its own span (e.g. an LlmAgent node whose wrapped agent emits “invoke_agent”).