Table of Contents

Class NodeResult

Namespace
LMKit.Agents.Orchestration.Nodes
Assembly
LM-Kit.NET.dll

Outcome of an IOrchestrationNode invocation.

Captures the textual output that downstream nodes consume as input, the underlying AgentExecutionResult when the node wrapped an agent (so callers can inspect tool calls, inference counts, etc.), an early-stop signal, and any error that aborted the node's execution.

public sealed class NodeResult
Inheritance
NodeResult
Inherited Members

Properties

AgentResult

The underlying agent result if this node wrapped an agent execution; null for composite nodes (Sequential, Parallel, Conditional).

Error

Exception that aborted this node, or null on success.

IsSuccess

Convenience flag: true when no Error is set.

Output

Output piped to the next node in a sequential composition, or aggregated by a parallel/router node. null when the node failed.

ShouldStop

Whether the graph should terminate early (and skip subsequent nodes).

StopReason

Optional reason describing why the graph requested early termination.

Methods

Failed(Exception, AgentExecutionResult)

Creates a failed node result.

Stopped(string, string)

Creates a result that signals early termination of the graph.

Success(string, AgentExecutionResult)

Creates a successful node result.

Share