> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: createStreamingParser()

> **createStreamingParser**(`schema`: [`LibraryJSONSchema`](/next/api/genui/openui/core/interfaces/LibraryJSONSchema.md), `rootName?`: `string`): [`StreamParser`](/next/api/genui/openui/core/interfaces/StreamParser.md)

Create a streaming parser from a library JSON Schema document.
Pass `library.toJSONSchema()` to get the schema.

## Parameters

| Parameter   | Type                                                                               |
| ----------- | ---------------------------------------------------------------------------------- |
| `schema`    | [`LibraryJSONSchema`](/next/api/genui/openui/core/interfaces/LibraryJSONSchema.md) |
| `rootName?` | `string`                                                                           |

## Returns

[`StreamParser`](/next/api/genui/openui/core/interfaces/StreamParser.md)
