Function: compactRunEvents()¶
compactRunEvents(
events):BaseEvent[]
Defined in: src/store.ts:96
Compact one finished run's events with AG-UI's compactEvents: text and
tool-argument deltas joined, state changes folded into one snapshot.
Returns the input when compaction would not shrink it.
Parameters¶
events¶
BaseEvent[]
Returns¶
BaseEvent[]