mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-17 15:23:08 -07:00
feat: add experimental useAgentProtocol flag
This commit is contained in:
@@ -681,6 +681,7 @@ export interface ConfigParameters {
|
||||
adminSkillsEnabled?: boolean;
|
||||
experimentalJitContext?: boolean;
|
||||
experimentalMemoryManager?: boolean;
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
useAgentProtocol?: boolean;
|
||||
=======
|
||||
@@ -689,6 +690,9 @@ export interface ConfigParameters {
|
||||
experimentalAgentHistoryRetainedMessages?: number;
|
||||
experimentalAgentHistorySummarization?: boolean;
|
||||
>>>>>>> 320c8aba4 (feat(core): Land `AgentHistoryProvider`. (#23978))
|
||||
=======
|
||||
useAgentProtocol?: boolean;
|
||||
>>>>>>> 792d1c88d (feat: add experimental useAgentProtocol flag)
|
||||
topicUpdateNarration?: boolean;
|
||||
toolOutputMasking?: Partial<ToolOutputMaskingConfig>;
|
||||
disableLLMCorrection?: boolean;
|
||||
@@ -917,14 +921,11 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
|
||||
private readonly experimentalJitContext: boolean;
|
||||
private readonly experimentalMemoryManager: boolean;
|
||||
<<<<<<< HEAD
|
||||
private readonly useAgentProtocol: boolean;
|
||||
=======
|
||||
private readonly experimentalAgentHistoryTruncation: boolean;
|
||||
private readonly experimentalAgentHistoryTruncationThreshold: number;
|
||||
private readonly experimentalAgentHistoryRetainedMessages: number;
|
||||
private readonly experimentalAgentHistorySummarization: boolean;
|
||||
>>>>>>> 320c8aba4 (feat(core): Land `AgentHistoryProvider`. (#23978))
|
||||
private readonly topicUpdateNarration: boolean;
|
||||
private readonly disableLLMCorrection: boolean;
|
||||
private readonly planEnabled: boolean;
|
||||
@@ -1134,6 +1135,7 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
|
||||
this.experimentalJitContext = params.experimentalJitContext ?? true;
|
||||
this.experimentalMemoryManager = params.experimentalMemoryManager ?? false;
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
this.useAgentProtocol = params.useAgentProtocol ?? false;
|
||||
=======
|
||||
@@ -1146,6 +1148,9 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
this.experimentalAgentHistorySummarization =
|
||||
params.experimentalAgentHistorySummarization ?? false;
|
||||
>>>>>>> 320c8aba4 (feat(core): Land `AgentHistoryProvider`. (#23978))
|
||||
=======
|
||||
this.useAgentProtocol = params.useAgentProtocol ?? false;
|
||||
>>>>>>> 792d1c88d (feat: add experimental useAgentProtocol flag)
|
||||
this.topicUpdateNarration = params.topicUpdateNarration ?? false;
|
||||
this.modelSteering = params.modelSteering ?? false;
|
||||
this.injectionService = new InjectionService(() =>
|
||||
@@ -2327,6 +2332,7 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
}
|
||||
|
||||
getExperimentalUseAgentProtocol(): boolean {
|
||||
<<<<<<< HEAD
|
||||
return (
|
||||
this.useAgentProtocol ||
|
||||
process.env['GEMINI_CLI_USE_AGENT_PROTOCOL'] === 'true'
|
||||
@@ -2347,6 +2353,9 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
|
||||
isExperimentalAgentHistorySummarizationEnabled(): boolean {
|
||||
return this.experimentalAgentHistorySummarization;
|
||||
=======
|
||||
return this.useAgentProtocol;
|
||||
>>>>>>> 792d1c88d (feat: add experimental useAgentProtocol flag)
|
||||
}
|
||||
|
||||
isTopicUpdateNarrationEnabled(): boolean {
|
||||
@@ -3636,3 +3645,9 @@ export class Config implements McpContext, AgentLoopContext {
|
||||
}
|
||||
// Export model constants for use in CLI
|
||||
export { DEFAULT_GEMINI_FLASH_MODEL };
|
||||
er.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Export model constants for use in CLI
|
||||
export { DEFAULT_GEMINI_FLASH_MODEL };
|
||||
|
||||
Reference in New Issue
Block a user