Class SequentialNode
- Namespace
- LMKit.Agents.Orchestration.Nodes
- Assembly
- LM-Kit.NET.dll
Composite node that runs its children in order, piping each child's output into the next child's input. Equivalent in semantics to PipelineOrchestrator but composable inside any larger graph.
Honors StopOnFailure: if a child fails (returns a non-success NodeResult) and stop-on-failure is enabled, subsequent children are skipped. If ShouldStop is set during execution (e.g., by an AgentNode via the shared context), the loop also exits.
public sealed class SequentialNode : IOrchestrationNode
- Inheritance
-
SequentialNode
- Implements
- Inherited Members
Constructors
- SequentialNode(string, params IOrchestrationNode[])
Initializes a new SequentialNode.
- SequentialNode(string, IEnumerable<IOrchestrationNode>)
Initializes a new SequentialNode.
Properties
- Children
Gets the children executed in order.
- Name
Stable name for tracing / observability. Two nodes in the same graph should not share a name.
Methods
- InvokeAsync(NodeContext, CancellationToken)
Executes this node with the supplied context and returns its result. Implementations must:
- Honor
cancellationToken— surface cancellation rather than spinning silently. - Record results into Orchestration via
AddResult/AddTracefor observability. - Avoid mutating the input context's scalar properties beyond what is documented.
- Honor