Lynx

Home > @lynx-js/genui-a2ui > serializeCatalog

serializeCatalog() function

Produce the JSON manifest the client should announce to the agent during channel handshake. Component entries without an attached schema serialize to { name } only — useful for letting the agent at least know what's renderable. Function entries serialize with their parameter schema when available.

Signature:

export declare function serializeCatalog(catalog: Catalog): SerializedCatalog;

Parameters

Parameter

Type

Description

catalog

Catalog

Returns:

SerializedCatalog

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.