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

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。