docs(agent): clarify ContextOverflowStrategy (context condensation, not history replacement) - #1061
Open
nurhamdan1987 wants to merge 1 commit into
Open
docs(agent): clarify ContextOverflowStrategy (context condensation, not history replacement)#1061nurhamdan1987 wants to merge 1 commit into
nurhamdan1987 wants to merge 1 commit into
Conversation
…ext, not stored history The enum docstring inaccurately said SUMMARIZE 'replaces the full chat history'. Corrected to explain context condensation manages the working context sent to the model on a run (not Shared Memory or stored session history, which is always retained); TRUNCATE is the default (removes oldest unprotected turns); SUMMARIZE adds latency and model cost; available 0.2.46+; precedence per-run > saved > engine default. Regenerated the API-reference block to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
ContextOverflowStrategydocstring (source of the generated API reference) inaccurately saidSUMMARIZE"replaces the full chat history". Rewritten to be accurate and practical; the generatedagent.mdblock is updated to match.What it now says
TRUNCATE— default; removes the oldest unprotected turns until the context fits.SUMMARIZE— summarizes older context into a shorter form; retains more meaning than truncation but adds latency and model cost.execution_params) → saved agent setting (agent.context_overflow_strategy) → Agent Engine default (truncate).Verified against 0.2.47: enum values
truncate/summarize, field defaultNone, andexecution_paramsmapscontext_overflow_strategy→contextOverflowStrategy(per-run override).Companion narrative guide + examples: aixplain/sdk-documentation#264.
🤖 Generated with Claude Code