diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 8b083ae294..9091b601f3 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -2067,6 +2067,10 @@ export class Config implements McpContext, AgentLoopContext { return this.showContextCompression; } + getContextWindowCompressionThreshold(): number { + return this.compressionThreshold ?? 0.5; + } + getMcpEnablementCallbacks(): McpEnablementCallbacks | undefined { return this.mcpEnablementCallbacks; }