RunReplay

fun interface RunReplay(source)

Plays a reply's run back from its recorded events, at their original pace, when a recording exists — e.g. AG-UI's event log (AgUiEventLog.replayOf in ai-elements-core). The flow's events are folded into a fresh reply as they arrive, exactly as a live run is.

Functions

Link copied to clipboard
abstract fun replay(message: Message): Flow<ChatEvent>?

The recorded run of message, or null when it has none. Called on the main thread; the flow is collected later.