@uservane/copilotkit: latestAssistantMessageId
Function: latestAssistantMessageId()
Section titled “Function: latestAssistantMessageId()”latestAssistantMessageId(
messages):string
Defined in: @[email protected]_@[email protected]_@[email protected]_@types+react-dom@_hgmx5lydu7o7hgar5vfp6a6qlm/node_modules/@uservane/copilotkit/dist/index.d.ts:124
Latest assistant message id from a chat transcript (newest last).
Supports AG-UI { role, id } and best-effort legacy shapes.
Parameters
Section titled “Parameters”messages
Section titled “messages”readonly ChatMessageLike[]
Returns
Section titled “Returns”string