Use token-based maxTokens instead of fraction-based reserveFraction

- BranchSummarySettings.maxTokens (default 100000) instead of reserveFraction
- More intuitive and consistent with CompactionSettings.keepRecentTokens
This commit is contained in:
Mario Zechner 2025-12-29 21:34:50 +01:00
parent 839a46e6fe
commit f5f39f08f1
3 changed files with 8 additions and 12 deletions

View file

@ -1656,7 +1656,7 @@ export class AgentSession {
apiKey,
signal: this._branchSummaryAbortController.signal,
customInstructions: options.customInstructions,
reserveFraction: branchSummarySettings.reserveFraction,
maxTokens: branchSummarySettings.maxTokens,
});
this._branchSummaryAbortController = undefined;
if (result.aborted) {