mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-10 00:47:16 -07:00
29 lines
839 B
TypeScript
29 lines
839 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 = {
|
||
|
|
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: () => [],
|
||
|
|
};
|