Skip to main content
Version: latest (master)

Interface: CallStackNode

Defined in: src/types/audit.ts:21

One node in the hierarchical call stack attached to an AuditEvent. Renders inline beneath an expanded Live Ops row in the dashboard.

Field names are camelCase per the SDK's TypeScript convention; the wire JSON uses snake_case (latency_ms) and the gateway-side mapper translates between the two.

Properties

children?

optional children?: CallStackNode[]

Defined in: src/types/audit.ts:37

Recursive descent — nested calls produced by this step. Omitted (or empty array) when the node has no children.


id

id: string

Defined in: src/types/audit.ts:23

Stable identifier for this node within the call stack.


kind

kind: CallStackNodeKind

Defined in: src/types/audit.ts:25

Node category — one of "llm", "tool", or "result".


label

label: string

Defined in: src/types/audit.ts:27

Human-readable label rendered by downstream UI.


latencyMs?

optional latencyMs?: number

Defined in: src/types/audit.ts:32

Step-local latency in milliseconds, or undefined when the producer did not record a duration. The wire field is latency_ms.