Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit d43923f

Browse files
committed
docs: clarify summary_ratio behavior
1 parent ccbeede commit d43923f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/src/content/docs/user-guide/concepts/agents/conversation-management.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The [`SummarizingConversationManager`](@api/python/strands.agent.conversation_ma
153153

154154
Configuration parameters:
155155

156-
- **`summary_ratio`** (float, default: 0.3): Percentage of messages to summarize when reducing context (clamped between 0.1 and 0.8)
156+
- **`summary_ratio`** (float, default: 0.3): Percentage of the oldest messages to summarize and replace when reducing context (clamped between 0.1 and 0.8)
157157
- **`preserve_recent_messages`** (int, default: 10): Minimum number of recent messages to always keep
158158
- **`summarization_agent`** (Agent, optional): Custom agent for generating summaries. If not provided, uses the main agent instance. Cannot be used together with `summarization_system_prompt`.
159159
- **`summarization_system_prompt`** (str, optional): Custom system prompt for summarization. If not provided, uses a default prompt that creates structured bullet-point summaries focusing on key topics, tools used, and technical information in third-person format. Cannot be used together with `summarization_agent`.
@@ -211,7 +211,7 @@ from strands.agent.conversation_manager import SummarizingConversationManager
211211

212212
# Create the summarizing conversation manager with default settings
213213
conversation_manager = SummarizingConversationManager(
214-
summary_ratio=0.3, # Summarize 30% of messages when context reduction is needed
214+
summary_ratio=0.3, # Summarize and replace the oldest 30% of messages when context reduction is needed
215215
preserve_recent_messages=10, # Always keep 10 most recent messages
216216
)
217217

0 commit comments

Comments
 (0)