Skip to content

applySessionHistoryMutations

function applySessionHistoryMutations(items, mutations): AgentInputItem[];

Applies persisted-history mutations and returns a new canonical item list.

Parameter Type

items

AgentInputItem[]

mutations

SessionHistoryReplaceFunctionCallMutation[]

AgentInputItem[]