Interface: StreamParser
Methods
getResult()
getResult():
ParseResult
Get the latest ParseResult without consuming new data.
Returns
push()
push(
chunk:string):ParseResult
Feed the next SSE/stream chunk and get the latest ParseResult.
Parameters
Returns
set()
set(
fullText:string):ParseResult
Set the full text — diffs against internal buffer, pushes only the delta. Resets automatically if the text was replaced (not appended).