/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { SidecarConfig } from './types.js'; /** * The standard default context management profile. * Optimized for safety, precision, and reliable summarization. */ export const defaultSidecarProfile: SidecarConfig = { budget: { retainedTokens: 65000, maxTokens: 150000, }, gcBackstop: { strategy: 'truncate', target: 'incremental', freeTokensTarget: 10000, }, pipelines: { eagerBackground: [ { processorId: 'StateSnapshotWorker', options: { pollingIntervalMs: 5000 } } ], retainedProcessingGraph: [ { processorId: 'HistorySquashingProcessor', options: { maxTokensPerNode: 3000 } } ], normalProcessingGraph: [ { processorId: 'ToolMaskingProcessor', options: { stringLengthThresholdTokens: 8000 } }, { processorId: 'BlobDegradationProcessor', options: {} }, { processorId: 'SemanticCompressionProcessor', options: { nodeThresholdTokens: 5000, contextWindowPercentage: 0.2 } } ] } };