Companion

Functions

Link copied to clipboard
fun parseChunk(chunk: JsonObject): ChatEvent?

Map one chunk; null for chunks that produce nothing (kept for callers of the v5 API).

Link copied to clipboard
fun parseChunks(chunk: JsonObject): List<ChatEvent>

Map one UI Message Stream chunk to ChatEvents.