Skip to content

Interface: BaseToolASTNode<TType, TTracking, THandle> ​

Defined in: ast/base/base-tool-ast-node.ts:14

Domain-agnostic base AST node contract for agent-invocable tools (ToolASTNode).

Declares effectTracking ('declared' vs 'subprocess-post-flight') so P.flow can statically verify whether an active policy guard requires a CheckpointableScope for post-flight diffing.

Extended by ​

Type Parameters ​

Type ParameterDefault typeDescription
TType extends stringstringString-literal discriminant of the tool node.
TTracking extends "declared" | "subprocess-post-flight""declared" | "subprocess-post-flight"Effect tracking mode ('declared' | 'subprocess-post-flight').
THandleunknownIsolation scope handle type operated on by the tool.

Properties ​

PropertyModifierTypeDescriptionDefined in
__handleBrand?readonlyBivariantCallback<[handle: THandle], void>Phantom type brand binding the tool to its compatible scope handle type.ast/base/base-tool-ast-node.ts:30
descriptionreadonlystringHuman- and LLM-readable description of the tool's behavior.ast/base/base-tool-ast-node.ts:24
effectTrackingreadonlyTTrackingStatic indicator of whether effects are predicted pre-flight or diffed post-flight.ast/base/base-tool-ast-node.ts:28
inputSchemareadonlyZodTypeAnyZod schema validating tool call arguments before execution.ast/base/base-tool-ast-node.ts:26
namereadonlystringWire-level tool function name exposed to the LLM.ast/base/base-tool-ast-node.ts:22
typereadonlyTTypeUnique string-literal discriminant of the tool node.ast/base/base-tool-ast-node.ts:20

Released under the MIT License.