For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/genui/a2ui/functions/createTextCardMessages.md.
Lynx
  • English
  • genui / a2ui / createTextCardMessages

    createTextCardMessages()

    function createTextCardMessages(text: string): ServerToClientMessage[]

    Build a Card-wrapped Text fallback message stream from a plain string. Used when the agent emits text payloads with kind: 'text'.

    Parameters

    ParameterType
    textstring

    Returns

    ServerToClientMessage[]

    Defined in

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

    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.