Interface RunInspection

Complete inspection record for an in-progress or finished graph run. Returned by the runtime's run-management API.

interface RunInspection {
    runId: string;
    graphId: string;
    status: "completed" | "running" | "interrupted" | "errored";
    currentNodeId?: string;
    visitedNodes: string[];
    events: unknown[];
    checkpoints: CheckpointMetadata[];
    diagnostics: DiagnosticsView;
    finalOutput?: unknown;
    error?: {
        message: string;
        code: string;
        nodeId?: string;
    };
}

Properties

runId: string

Unique run id (UUIDv4 assigned when the run was started).

graphId: string

Id of the CompiledExecutionGraph being executed.

status: "completed" | "running" | "interrupted" | "errored"

Current lifecycle phase of the run.

currentNodeId?: string

Id of the node currently executing; absent when status is terminal.

visitedNodes: string[]

Ordered list of node ids that have completed execution.

events: unknown[]

Ordered stream of runtime events emitted during the run (type: GraphEvent[]).

checkpoints: CheckpointMetadata[]

All checkpoint snapshots persisted during the run.

diagnostics: DiagnosticsView

Accumulated diagnostic telemetry.

finalOutput?: unknown

Final output value; only present when status is 'completed'.

error?: {
    message: string;
    code: string;
    nodeId?: string;
}

Structured error detail; only present when status is 'errored'.

Type declaration

  • message: string
  • code: string
  • Optional nodeId?: string