Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

interleaveActivityRecords.md

28 lines728 Bytes

function interleaveActivityRecords(modelUI, records): UIMessage<unknown>[];

Defined in: packages/ai/src/activities/chat/activity-records.ts:46

Insert activity rows into a model-derived UI transcript at each record's stored index. Earlier records are inserted first so later indexes stay aligned with the growing list.

Parameters

modelUI

UIMessage<unknown>[]

records

ActivityRecord[]

Returns

UIMessage<unknown>[]