feat(prompts): implement Topic-Action-Summary model for verbosity reduction (#21503)

This commit is contained in:
Abhijit Balaji
2026-03-13 22:10:30 -07:00
committed by GitHub
parent 3682842a5d
commit 9f7691fd88
11 changed files with 146 additions and 45 deletions
+7
View File
@@ -622,6 +622,7 @@ export interface ConfigParameters {
disabledSkills?: string[];
adminSkillsEnabled?: boolean;
experimentalJitContext?: boolean;
topicUpdateNarration?: boolean;
toolOutputMasking?: Partial<ToolOutputMaskingConfig>;
disableLLMCorrection?: boolean;
plan?: boolean;
@@ -842,6 +843,7 @@ export class Config implements McpContext, AgentLoopContext {
private readonly adminSkillsEnabled: boolean;
private readonly experimentalJitContext: boolean;
private readonly topicUpdateNarration: boolean;
private readonly disableLLMCorrection: boolean;
private readonly planEnabled: boolean;
private readonly trackerEnabled: boolean;
@@ -956,6 +958,7 @@ export class Config implements McpContext, AgentLoopContext {
this.adminSkillsEnabled = params.adminSkillsEnabled ?? true;
this.modelAvailabilityService = new ModelAvailabilityService();
this.experimentalJitContext = params.experimentalJitContext ?? false;
this.topicUpdateNarration = params.topicUpdateNarration ?? false;
this.modelSteering = params.modelSteering ?? false;
this.userHintService = new UserHintService(() =>
this.isModelSteeringEnabled(),
@@ -2045,6 +2048,10 @@ export class Config implements McpContext, AgentLoopContext {
return this.experimentalJitContext;
}
isTopicUpdateNarrationEnabled(): boolean {
return this.topicUpdateNarration;
}
isModelSteeringEnabled(): boolean {
return this.modelSteering;
}