Open History to see the last commit
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#
Returns#
UIMessage<unknown>[]