Skip to content
providerkit
GitHub

EventMeta

Defined in: react/src/agents.ts:127

Where an agent event sits in the host’s log, and when the host recorded it.

optional at?: number;

Defined in: react/src/agents.ts:131

Epoch milliseconds, from the host’s log. A thinking row takes when it started and how long it ran from these times, so a replay of the log draws the same numbers the live stream did. Without them the row says only that the model thought.


optional segment?: string;

Defined in: react/src/protocol.ts:322

One numbering space for seq: a host run, or the continuation after an approval. A new segment starts the count again. It means nothing without a seq.

ChatEnvelope.segment


optional seq?: number;

Defined in: react/src/protocol.ts:319

The event’s position inside segment: a whole number, 0 or more, that only goes up. A client drops any number it has already reached and resumes after the last one.

Give every numbered event a number of its own. Two events with one number are one event sent twice, and the second is dropped. When one thing on the host becomes several events, number the last and leave the others without. An event without a number always applies, so leave it out only where applying twice is harmless: a settled part, a message, a run. A text delta is never that.

ChatEnvelope.seq