@hashbrownai/core
Version:
Runtime helpers for Hashbrown AI
9 lines • 430 B
TypeScript
import { Chat } from '../models';
/**
* Merge previously persisted thread messages with an incoming delta-only
* payload by finding the longest overlap and appending only the new tail.
* This is effectively the inverse of `_extractMessageDelta`.
* @public
*/
export declare function mergeMessagesForThread(saved?: Chat.Api.Message[], incoming?: Chat.Api.Message[]): Chat.Api.Message[];
//# sourceMappingURL=threading.d.ts.map