For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/genui/a2ui/functions/serializeCatalog.md.
Lynx
  • 简体中文
  • 函数: serializeCatalog()

    serializeCatalog(catalog: Catalog): SerializedCatalog

    生成客户端在通道握手时向 agent 声明的 JSON manifest。没有附带 schema 的组件条目只序列化为 { name },这样至少能让 agent 知道哪些组件可以渲染。函数条目在有参数 schema 时会一并序列化。

    参数

    参数类型
    catalogCatalog

    返回

    SerializedCatalog

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