AguiEventParser

class AguiEventParser(json: Json = AguiJson)

Parse a stream of JSON strings (one AG-UI event per element) into typed AguiEvents.

Failures are materialised as AguiStreamEvent.ParseError so a malformed or unknown-type event does not tear down the run.

Constructors

Link copied to clipboard
constructor(json: Json = AguiJson)

Functions

Link copied to clipboard
fun parse(frames: Flow<String>): Flow<AguiStreamEvent>
Link copied to clipboard