mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-19 15:56:48 -07:00
52 lines
1.1 KiB
TypeScript
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 }
|
|
}
|
|
]
|
|
}
|
|
};
|