Skip to main content

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?

optional completionTokens: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:60


costUSD?

optional costUSD: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:62


iterations?

optional iterations: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:45

Number of internal LLM iterations the node ran (GMI/ReAct loop).


iterationsExhausted?

optional iterationsExhausted: boolean

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:51

True when the loop hit maxIterations without a natural termination.


promptTokens?

optional promptTokens: 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?

optional toolCalls: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:47

Successful tool result events observed during execution.


toolErrors?

optional toolErrors: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:49

Failed tool calls observed during execution.


totalTokens?

optional totalTokens: number

Defined in: packages/agentos/src/orchestration/events/GraphEvent.ts:61