pub struct Command {
pub goto: Vec<String>,
pub resume: Option<Value>,
}Expand description
Dynamic routing + resume directive, unifying state transition and control
flow (the LangGraph Command).
Fields§
§goto: Vec<String>Nodes to activate in the next super-step, overriding the static edge set. Names must resolve to graph nodes (validated by the executor).
An empty goto with no other information means “no routing override”.
resume: Option<Value>A resume value. As input (RunConfig::resume) this is the only
valid Command pattern: it supplies the value an interrupted node’s
interrupt() logically returns.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more