@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
7 lines (6 loc) • 325 B
TypeScript
import type { AgentInputItem } from '../types';
import type { SessionHistoryMutation } from './session';
/**
* Applies persisted-history mutations and returns a new canonical item list.
*/
export declare function applySessionHistoryMutations(items: AgentInputItem[], mutations: SessionHistoryMutation[]): AgentInputItem[];