For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/genui/openui/core/interfaces/StreamParser.md.
Lynx
  • English
  • Interface: StreamParser

    Methods

    getResult()

    getResult(): ParseResult

    Get the latest ParseResult without consuming new data.

    Returns

    ParseResult


    push()

    push(chunk: string): ParseResult

    Feed the next SSE/stream chunk and get the latest ParseResult.

    Parameters

    ParameterType
    chunkstring

    Returns

    ParseResult


    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).

    Parameters

    ParameterType
    fullTextstring

    Returns

    ParseResult

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.