Lynx

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

createTextCardMessages() function

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

Signature:

export declare function createTextCardMessages(
  text: string,
): ServerToClientMessage[];

Parameters

Parameter

Type

Description

text

string

Returns:

ServerToClientMessage[]

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.