Skip to content

PURISTA API


PURISTA API / @purista/ai / appendMessage

Function: appendMessage()

appendMessage(history, frame): ConversationHistory

Defined in: packages/ai/src/memory/historyHelpers.ts:13

Append a new message to the history immutably.

Parameters

history

ConversationHistory

frame

ConversationFrame

Returns

ConversationHistory