Skip to content

feat: allow overriding the context window for compaction - #266

Draft
hallerite wants to merge 1 commit into
mainfrom
feat/max-model-len
Draft

hallerite wants to merge 1 commit into
mainfrom
feat/max-model-len

Conversation

@hallerite

Copy link
Copy Markdown
Member

Adds an optional policy.max_model_len to the ACP runtime configuration. For example, send {"max_model_len": 65536} in the runtime policy to use a 65,536-token context window for compaction.

The configured window skips the provider’s /models lookup and drives the default compaction threshold, summary sizing, and handling of length-limited replies. With no configured window, nano-rlm still uses provider discovery. summarize_at_tokens can still set the threshold explicitly.

The setting applies to every agent in the session tree and is reported in the session snapshot when supplied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant