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

    prepareMessagesForProcessing()

    function prepareMessagesForProcessing(
       rawMessages: any[], 
       messageId: string, 
       activeSurfaceIds: Set<string>): object

    Tag messages with the given messageId and report whether any of them carries a non-empty updateComponents. Also dedupes createSurface messages against the set of currently-active surfaces.

    参数

    范围类型
    rawMessagesany[]
    messageIdstring
    activeSurfaceIdsSet<string>

    返回

    object

    hasComponentUpdate

    hasComponentUpdate: boolean;

    messages

    messages: ServerToClientMessage[];

    定义于

    @lynx-js/genui/a2ui/src/store/payloadNormalizer.ts:179

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