Skip to main content

ExecutionGraph

Defined in: types.ts:100

The complete execution graph for one agent run.

Properties

agentId

readonly agentId: string

Defined in: types.ts:111


edges

readonly edges: readonly ExecutionEdge[]

Defined in: types.ts:105


endTime

readonly endTime: number | null

Defined in: types.ts:108

null if the graph is still running.


events

readonly events: readonly TraceEvent[]

Defined in: types.ts:113

Full ordered event log for auditability.


id

readonly id: string

Defined in: types.ts:101


metadata?

readonly optional metadata?: Record<string, unknown>

Defined in: types.ts:121

Arbitrary metadata preserved from the trace file.


nodes

readonly nodes: ReadonlyMap<string, ExecutionNode>

Defined in: types.ts:104

All nodes indexed by ID.


parentSpanId?

readonly optional parentSpanId?: string | null

Defined in: types.ts:119

Parent span ID, or null if this is the root span.


rootNodeId

readonly rootNodeId: string

Defined in: types.ts:102


spanId?

readonly optional spanId?: string

Defined in: types.ts:117

Unique span ID for this graph within the trace.


startTime

readonly startTime: number

Defined in: types.ts:106


status

readonly status: GraphStatus

Defined in: types.ts:109


traceId?

readonly optional traceId?: string

Defined in: types.ts:115

Distributed trace ID linking graphs across services.


trigger

readonly trigger: string

Defined in: types.ts:110