@openai/agents-core
Version:
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.
17 lines (16 loc) • 661 B
TypeScript
import type { z } from 'zod';
import type { SerializedRunState } from './runState';
type SerializedState = z.infer<typeof SerializedRunState>;
/**
* Older writers kept raw compaction output but dropped its RunItem wrapper. Restore the latest
* marker before resuming because it carries the context required for the next model window.
*/
type LegacyCompactionRehydration = {
stateJson: SerializedState;
sessionReconciliation?: {
generatedInsertionIndex: number;
previousPersistedItemCount: number;
};
};
export declare function rehydrateLegacyCompactionRunItems(stateJson: SerializedState): LegacyCompactionRehydration;
export {};