Interface: NodeTelemetry
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:43
Optional per-node telemetry attached to node_end events. Populated by
executors that have meaningful internal activity worth surfacing — today
the GMI executor reports the ReAct-loop iteration count, the number of
tool calls and errors observed, whether the iteration cap was hit, and
cumulative token usage / cost for the node's LLM calls. Other executors
omit telemetry entirely.
Properties
completionTokens?
optionalcompletionTokens:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:60
costUSD?
optionalcostUSD:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:62
iterations?
optionaliterations:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:45
Number of internal LLM iterations the node ran (GMI/ReAct loop).
iterationsExhausted?
optionaliterationsExhausted:boolean
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:51
True when the loop hit maxIterations without a natural termination.
promptTokens?
optionalpromptTokens:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:59
Cumulative LLM token usage and cost across every round of the node's
ReAct loop. Populated by executors that route through a usage-aware
provider call (runToolCallingTurn in wunderland); omitted when the
provider didn't return usage data. Token counts are integers, cost
is in USD, all summed across rounds.
toolCalls?
optionaltoolCalls:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:47
Successful tool result events observed during execution.
toolErrors?
optionaltoolErrors:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:49
Failed tool calls observed during execution.
totalTokens?
optionaltotalTokens:number
Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:61