replay

fun replay(events: List<JsonObject>, speed: Float = 1.0f, maxGapMs: Long): Flow<ChatEvent>(source)

Plays events (one reply's runs, see eventsOf) back through the AG-UI event parser, pausing between events as long as the run did (speed 2 is twice as fast; gaps are capped at maxGapMs so waiting for a model does not stall the replay).