Skip to content

LLMCallNode

Defined in: core/execution-tree.ts:57

LLM call execution node.

  • BaseExecutionNode

children: string[]

Defined in: core/execution-tree.ts:74

Child node IDs (gadgets spawned by this LLM call)


completedAt: number | null

Defined in: core/execution-tree.ts:51

Completion timestamp (null if in progress)

BaseExecutionNode.completedAt


optional cost: number

Defined in: core/execution-tree.ts:72

Cost in USD


createdAt: number

Defined in: core/execution-tree.ts:49

Creation timestamp

BaseExecutionNode.createdAt


depth: number

Defined in: core/execution-tree.ts:45

Nesting depth (0 = root, 1 = child of gadget, etc.)

BaseExecutionNode.depth


optional finishReason: string | null

Defined in: core/execution-tree.ts:70

Finish reason from LLM


id: string

Defined in: core/execution-tree.ts:39

Unique identifier for this node

BaseExecutionNode.id


iteration: number

Defined in: core/execution-tree.ts:60

Iteration number within the agent loop (1-indexed for display)


model: string

Defined in: core/execution-tree.ts:62

Model identifier


parentId: string | null

Defined in: core/execution-tree.ts:43

Parent node ID (null for root nodes)

BaseExecutionNode.parentId


path: string[]

Defined in: core/execution-tree.ts:47

Path from root to this node: [“llm_1”, “gadget_abc”, “llm_1_1”]

BaseExecutionNode.path


optional request: LLMMessage[]

Defined in: core/execution-tree.ts:64

Request messages (set when call starts)


response: string

Defined in: core/execution-tree.ts:66

Accumulated response text


type: "llm_call"

Defined in: core/execution-tree.ts:58

Node type discriminator

BaseExecutionNode.type


optional usage: TokenUsage

Defined in: core/execution-tree.ts:68

Token usage (set on completion)