RunContext
Interface: RunContext
Defined in: src/bridge/eventMeta.ts:35
Properties
compositionPath
readonlycompositionPath: readonlystring[]
Defined in: src/bridge/eventMeta.ts:45
Composition ancestry path (e.g. ['Sequence:bot', 'Agent:classify']).
correlationId?
readonlyoptionalcorrelationId?:string
Defined in: src/bridge/eventMeta.ts:43
Optional correlation id for cross-event tying (retrieval→injection→LLM).
iterIndex?
readonlyoptionaliterIndex?:number
Defined in: src/bridge/eventMeta.ts:48
principal?
readonlyoptionalprincipal?:string
Defined in: src/bridge/eventMeta.ts:55
WHO the caller NAMED for this run (9.11.0) — from an explicit
run({ identity }) only, never from the synthesized runIdentity and
never derived from a session. Absent for an anonymous run.
runId
readonlyrunId:string
Defined in: src/bridge/eventMeta.ts:39
Unique run id (demultiplex concurrent runs sharing one dispatcher).
runStartMs
readonlyrunStartMs:number
Defined in: src/bridge/eventMeta.ts:37
Millisecond wall-clock timestamp when the run started.
sessionId?
readonlyoptionalsessionId?:string
Defined in: src/bridge/eventMeta.ts:51
The hosting conversation this run belongs to, when it belongs to one (9.4.0). Absent for an unhosted or anonymous run — never fabricated.
tenant?
readonlyoptionaltenant?:string
Defined in: src/bridge/eventMeta.ts:58
The tenant the caller NAMED for this run (9.11.0). Same rule as RunContext.principal.
traceId?
readonlyoptionaltraceId?:string
Defined in: src/bridge/eventMeta.ts:41
Optional OTEL trace id forwarded from executor.run({ env: { traceId } }).
turnIndex?
readonlyoptionalturnIndex?:number
Defined in: src/bridge/eventMeta.ts:47
Optional turn/iter indices from agent runtime.
