UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

21 lines (20 loc) • 998 B
import type { Api, Model } from "@mariozechner/pi-ai"; import type { AgentCompactionIdentifierPolicy } from "../../config/types.agent-defaults.js"; export type CompactionSafeguardRuntimeValue = { maxHistoryShare?: number; contextWindowTokens?: number; identifierPolicy?: AgentCompactionIdentifierPolicy; identifierInstructions?: string; customInstructions?: string; /** * Model to use for compaction summarization. * Passed through runtime because `ctx.model` is undefined in the compact.ts workflow * (extensionRunner.initialize() is never called in that path). */ model?: Model<Api>; recentTurnsPreserve?: number; qualityGuardEnabled?: boolean; qualityGuardMaxRetries?: number; }; export declare const setCompactionSafeguardRuntime: (sessionManager: unknown, value: CompactionSafeguardRuntimeValue | null) => void; export declare const getCompactionSafeguardRuntime: (sessionManager: unknown) => CompactionSafeguardRuntimeValue | null;