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).
Parameters
Section titled “Parameters”events
Section titled “events”readonly EpisodeTimingSourceEvent[]
options?
Section titled “options?”agentCallId?
Section titled “agentCallId?”string
nowMs?
Section titled “nowMs?”number
Returns
Section titled “Returns”EpisodeTiming | null