Skip to content

computeEpisodeTiming

computeEpisodeTiming(events, options?): EpisodeTiming | null

Defined in: packages/core/src/observability/episode-timing.ts:153

Compute tool-wait vs LLM-active for a single episode from its (or a mixed) event list. Returns null when agent_started is missing or the wall end cannot be determined (no finish/fail and no nowMs).

readonly EpisodeTimingSourceEvent[]

string

number

EpisodeTiming | null