Files
gemini-cli/packages/core/src/context/sidecar/profiles.ts
T
2026-04-06 15:45:56 +00:00

52 lines
1.1 KiB
TypeScript

/**
* @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 }
}
]
}
};