@@ -237,6 +237,7 @@ export interface GemmaModelRouterSettings {
237237export interface ADKSettings {
238238 agentSessionNoninteractiveEnabled ?: boolean ;
239239 agentSessionInteractiveEnabled ?: boolean ;
240+ agentSessionSubagentEnabled ?: boolean ;
240241}
241242
242243export interface ExtensionSetting {
@@ -913,6 +914,7 @@ export class Config implements McpContext, AgentLoopContext {
913914 private readonly gemmaModelRouter : GemmaModelRouterSettings ;
914915 private readonly agentSessionNoninteractiveEnabled : boolean ;
915916 private readonly agentSessionInteractiveEnabled : boolean ;
917+ private readonly agentSessionSubagentEnabled : boolean ;
916918
917919 private readonly retryFetchErrors : boolean ;
918920 private readonly maxAttempts : number ;
@@ -1359,6 +1361,8 @@ export class Config implements McpContext, AgentLoopContext {
13591361 params . adk ?. agentSessionNoninteractiveEnabled ?? false ;
13601362 this . agentSessionInteractiveEnabled =
13611363 params . adk ?. agentSessionInteractiveEnabled ?? false ;
1364+ this . agentSessionSubagentEnabled =
1365+ params . adk ?. agentSessionSubagentEnabled ?? false ;
13621366 this . retryFetchErrors = params . retryFetchErrors ?? true ;
13631367 this . maxAttempts = Math . min (
13641368 params . maxAttempts ?? DEFAULT_MAX_ATTEMPTS ,
@@ -2573,6 +2577,10 @@ export class Config implements McpContext, AgentLoopContext {
25732577 return this . contextManagement . enabled ;
25742578 }
25752579
2580+ isAgentSessionSubagentEnabled ( ) : boolean {
2581+ return this . agentSessionSubagentEnabled ;
2582+ }
2583+
25762584 getMemoryBoundaryMarkers ( ) : readonly string [ ] {
25772585 return this . memoryBoundaryMarkers ;
25782586 }
0 commit comments