Skip to content

Interface: AgentNode<TIn, TOut, THandle> ​

Defined in: ast/agent-node.ts:43

Passive AST node representing the universal LLM actor primitive (P.agent(id)).

Contains zero execution methods and is dispatched at runtime via executeStepNode (switch (node.type)).

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownValidated actor input payload type.
TOutunknownValidated actor output payload type.
THandleunknownRuntime handle type of the active isolation scope.

Properties ​

PropertyModifierTypeDescriptionDefined in
beforeStopChecksreadonlyreadonly BuiltInCheckASTNode<THandle>[]Deterministic beforeStop checks verified whenever the agent emits a completion turn.ast/agent-node.ts:75
canRaiseInterruptsreadonlyreadonly InterruptNode<unknown>[]Voluntary interrupts the agent may raise via synthetic interrupt tool calls.ast/agent-node.ts:83
capabilities?readonlyAgentCapabilitiesNode<TIn, THandle>Optional hierarchical capabilities (.fork(), .speculate(), .mutatePlan(), .escalate()).ast/agent-node.ts:85
extractPartitions?readonlyBivariantCallback<[input: TIn], readonly string[]>Optional synchronous extractor mapping TIn to ResolutionContext.activePartitions.ast/agent-node.ts:81
groundingreadonlyreadonly SourceValue<string>[]Grounding sources resolved and injected into the agent's context.ast/agent-node.ts:69
idreadonlystringUnique identifier of the base agent definition.ast/agent-node.ts:47
inputSchemareadonlyZodType<TIn>Zod schema validating the agent's input payload.ast/agent-node.ts:77
instructionsreadonlyreadonly SourceValue<string>[]Role instruction sources resolved and injected into the agent's context.ast/agent-node.ts:71
lessons?readonlyAgentLessonsMountOptional empirical lessons mount descriptor.ast/agent-node.ts:59
modelreadonly| ModelASTNode | PoolNode<ModelASTNode>Model or model pool powering this agent's turns.ast/agent-node.ts:53
onChildInterruptHandlersreadonlyreadonly ChildInterruptHandlerNode<unknown>[]Upward child interrupt handlers (.onChildInterrupt(...)).ast/agent-node.ts:87
onInterruptHandlersreadonlyreadonly InterruptHandlerNode<TIn, unknown, THandle>[]Actor-level default interrupt handlers (.onInterrupt(...)).ast/agent-node.ts:89
outputSchemareadonlyZodType<TOut>Zod schema validating the agent's structured output payload.ast/agent-node.ts:79
policy?readonlyPolicyNode<THandle>Optional capability and sandbox policy governing tool execution and quantitative limits.ast/agent-node.ts:65
prefixGroup?readonlyPrefixGroupNodeOptional shared PrefixGroupNode for byte-identical wire system prompts.ast/agent-node.ts:51
roleKeyreadonlystringCanonical role key (id or "${id}+tools:${sortedExtraToolNames.join(',')}") indexing CompiledWirePrefix.wireToolSchemasByRoleKey.ast/agent-node.ts:49
rules?readonlyRulesNodeOptional rules registry mounted on this agent.ast/agent-node.ts:57
skillsreadonlyreadonly ( | SkillNode<THandle> | SourceASTNode<readonly SkillNode<THandle>[]>)[]Mounted inline skills or source-backed skill bundles.ast/agent-node.ts:61
timeoutMinutes?readonlynumberOptional wall-clock timeout in minutes for the agent step.ast/agent-node.ts:73
toolsreadonlyreadonly BuiltInToolASTNode<THandle>[]Always-unlocked tools mounted directly on this agent.ast/agent-node.ts:67
topology?readonlyTopologyNode<string>Optional relational topology whose live partition contracts are injected into the Turn-0 context frame.ast/agent-node.ts:55
typereadonly"harness:agent"Discriminant identifying an LLM agent step AST node.ast/agent-node.ts:45

Released under the MIT License.