Interface: GraphNode
Defined in: packages/agentos/src/orchestration/ir/types.ts:437
A single vertex in the compiled execution graph.
Nodes are immutable once compiled; all runtime state lives in GraphState.
Properties
checkpoint
checkpoint:
"both"|"none"|"before"|"after"
Defined in: packages/agentos/src/orchestration/ir/types.ts:459
When the runtime should persist a checkpoint snapshot.
before— snapshot taken before executor runs (enables re-entry on crash).after— snapshot taken after executor succeeds.both— snapshot taken at both points.none— no snapshot for this node.
complexity?
optionalcomplexity:number
Defined in: packages/agentos/src/orchestration/ir/types.ts:465
Optional planner-estimated node complexity (0-1).
discoveryPolicy?
optionaldiscoveryPolicy:DiscoveryPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:471
Dynamic capability discovery configuration applied before execution.
effectClass
effectClass:
EffectClass
Defined in: packages/agentos/src/orchestration/ir/types.ts:447
Classifies the side-effects this node may produce.
executionMode
executionMode:
NodeExecutionMode
Defined in: packages/agentos/src/orchestration/ir/types.ts:445
Controls the LLM turn budget for this node.
executorConfig
executorConfig:
NodeExecutorConfig
Defined in: packages/agentos/src/orchestration/ir/types.ts:443
Full executor configuration; discriminated union determines runtime strategy.
guardrailPolicy?
optionalguardrailPolicy:GuardrailPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:475
Declarative guardrails evaluated on input and/or output payloads.
id
id:
string
Defined in: packages/agentos/src/orchestration/ir/types.ts:439
Unique identifier within the parent CompiledExecutionGraph. Must not equal START or END.
inputSchema?
optionalinputSchema:Record<string,unknown>
Defined in: packages/agentos/src/orchestration/ir/types.ts:461
JSON-Schema-compatible description of the expected input shape.
llm?
optionalllm:NodeLlmConfig
Defined in: packages/agentos/src/orchestration/ir/types.ts:467
Optional per-node LLM provider/model override.
memoryPolicy?
optionalmemoryPolicy:MemoryPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:469
Memory read/write configuration applied by the runtime around execution.
metadata?
optionalmetadata:Record<string,unknown>
Defined in: packages/agentos/src/orchestration/ir/types.ts:488
Optional builder-supplied metadata.
The runtime currently consumes one well-known key:
outputAs: string— when present, the node's successfuloutputis promoted intostate.artifacts[outputAs]after execution. When absent, the node's output is promoted intostate.artifacts[id]by default. Any executor that explicitly setsresult.artifactsUpdatetakes precedence over either default.
Builders are free to attach additional opaque keys for tooling.
outputSchema?
optionaloutputSchema:Record<string,unknown>
Defined in: packages/agentos/src/orchestration/ir/types.ts:463
JSON-Schema-compatible description of the expected output shape.
personaPolicy?
optionalpersonaPolicy:PersonaPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:473
Persona layer configuration injected into the prompt context.
retryPolicy?
optionalretryPolicy:RetryPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:451
Automatic retry configuration for transient failures.
timeout?
optionaltimeout:number
Defined in: packages/agentos/src/orchestration/ir/types.ts:449
Maximum wall-clock execution time in milliseconds before the node is aborted.
type
type:
"tool"|"extension"|"voice"|"gmi"|"human"|"guardrail"|"router"|"subgraph"
Defined in: packages/agentos/src/orchestration/ir/types.ts:441
Coarse type label kept in sync with executorConfig.type for fast switching.