mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 08:27:00 -07:00
30 lines
864 B
TypeScript
30 lines
864 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
import type { ContextProfile } from '../config/profiles.js';
|
|
import type { PipelineDef } from '../config/types.js';
|
|
import type { ContextEnvironment } from '../pipeline/environment.js';
|
|
import { createHistoryTruncationProcessor } from '../processors/historyTruncationProcessor.js';
|
|
|
|
export const testTruncateProfile: ContextProfile = {
|
|
name: 'Test Truncate',
|
|
config: {
|
|
budget: {
|
|
retainedTokens: 65000,
|
|
maxTokens: 150000,
|
|
},
|
|
},
|
|
buildPipelines: (env: ContextEnvironment): PipelineDef[] => [
|
|
{
|
|
name: 'Emergency Backstop (Truncate Only)',
|
|
triggers: ['gc_backstop', 'retained_exceeded'],
|
|
processors: [
|
|
createHistoryTruncationProcessor('HistoryTruncation', env, {}),
|
|
],
|
|
},
|
|
],
|
|
buildAsyncPipelines: () => [],
|
|
};
|