Skip to content

appendMessage

const appendMessage: (message, files, session?) => Promise<number> = sqliteRepo.appendMessage

Defined in: lib/repositories/chat-history.ts:33

Atomically append a message, its files, and the session’s active-leaf pointer. A live session snapshot may be supplied to repair a session row lost by a stale or competing sql.js context.

Omit<StoredMessage, "id">

FileAttachment & object[] = []

ChatSession

Promise<number>