Open Agent Loops
API Reference

AgentEvent

@open-agent-loops/core


type AgentEvent = AgentEventBody & {
  timestamp: number;
};

Defined in: types/events.ts:164

An event emitted by the loop for observability / streaming to a UI.

Type Declaration

NameTypeDescriptionDefined in
timestampnumberEmit time in ms since the epoch, stamped centrally as the event goes out.types/events.ts:166

Remarks

Every event carries a timestamp (ms since epoch) stamped at emit time, so a consumer can measure latency between turns, tokens, and tool calls. The intersection still discriminates on type exactly like the body union does.

See

On this page