API Reference
AgentEvent
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
| Name | Type | Description | Defined in |
|---|---|---|---|
timestamp | number | Emit 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.