pub struct NodeConfig {
pub thread_id: String,
pub step: usize,
pub resume: Option<Value>,
pub extra: HashMap<String, Value>,
}Expand description
Per-run, per-node configuration handed to every node invocation.
This is a deliberately small, cloneable value (the LangGraph analog is
RunnableConfig + Runtime). It is constructed fresh by the executor at
each super-step and embedded in the NodeContext.
Fields§
§thread_id: StringThe thread (session) this run belongs to. Stable across interrupts and resumes; namespacing for checkpoints.
step: usizeZero-based index of the current super-step. Useful for logging,
remaining_steps-style degradation, and idempotency keys.
resume: Option<Value>The resume value supplied by the caller when resuming from an
interrupt (RunConfig::resume / Command::resume).
Protocol (mirrors LangGraph): a node that previously called
interrupt(payload) is re-executed from its start; on the resume
run, this field carries the caller’s value and
NodeContext::resume_value returns Some. Nodes must therefore be
idempotent with respect to side effects performed before the
interrupt() call.
extra: HashMap<String, Value>Free-form extension point (tags, tracing metadata, user config).