mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-22 07:41:23 -07:00
Fix bulk of remaining issues with generalist profile (#26073)
This commit is contained in:
@@ -47,6 +47,7 @@ function resolveProcessorOptions<T>(
|
||||
}
|
||||
|
||||
export interface ContextProfile {
|
||||
name: string;
|
||||
config: ContextManagementConfig;
|
||||
buildPipelines: (
|
||||
env: ContextEnvironment,
|
||||
@@ -56,6 +57,10 @@ export interface ContextProfile {
|
||||
env: ContextEnvironment,
|
||||
config?: ContextManagementConfig,
|
||||
) => AsyncPipelineDef[];
|
||||
sentinels?: {
|
||||
continuation?: string;
|
||||
lostToolResponse?: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,6 +68,12 @@ export interface ContextProfile {
|
||||
* Optimized for safety, precision, and reliable summarization.
|
||||
*/
|
||||
export const generalistProfile: ContextProfile = {
|
||||
name: 'Generalist (Default)',
|
||||
sentinels: {
|
||||
continuation: '[Continuing from previous AI thoughts...]',
|
||||
lostToolResponse:
|
||||
'The tool execution result was lost due to context management truncation.',
|
||||
},
|
||||
config: {
|
||||
budget: {
|
||||
retainedTokens: 65000,
|
||||
@@ -106,14 +117,14 @@ export const generalistProfile: ContextProfile = {
|
||||
'NodeDistillation',
|
||||
env,
|
||||
resolveProcessorOptions(config, 'NodeDistillation', {
|
||||
nodeThresholdTokens: 3000,
|
||||
nodeThresholdTokens: 1000,
|
||||
}),
|
||||
),
|
||||
createNodeTruncationProcessor(
|
||||
'NodeTruncation',
|
||||
env,
|
||||
resolveProcessorOptions(config, 'NodeTruncation', {
|
||||
maxTokensPerNode: 2000,
|
||||
maxTokensPerNode: 1200,
|
||||
}),
|
||||
),
|
||||
],
|
||||
@@ -158,6 +169,7 @@ export const generalistProfile: ContextProfile = {
|
||||
* within a few conversational turns.
|
||||
*/
|
||||
export const stressTestProfile: ContextProfile = {
|
||||
name: 'Stress Test',
|
||||
config: {
|
||||
budget: {
|
||||
retainedTokens: 4000,
|
||||
|
||||
Reference in New Issue
Block a user