From 3c809356c548b0d17ac4ef600ea45c6ebc72243a Mon Sep 17 00:00:00 2001 From: Shivam Sharma <183207850+Yuyutsu01@users.noreply.github.com> Date: Tue, 2 Dec 2025 00:49:19 +0530 Subject: [PATCH] Fix misleading summary description in session_memory.ipynb This PR updates the explanation of how conversation history is summarized in session_memory.ipynb. The previous wording suggested the earliest of the last 4 turns is summarized, but the implementation actually keeps the last 2 turns verbatim and summarizes earlier messages. This corrects the text to match the code behavior. --- examples/agents_sdk/session_memory.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/agents_sdk/session_memory.ipynb b/examples/agents_sdk/session_memory.ipynb index 85eccf6a90..18e34de7c0 100644 --- a/examples/agents_sdk/session_memory.ipynb +++ b/examples/agents_sdk/session_memory.ipynb @@ -1146,7 +1146,7 @@ "await session.add_items([{\"role\": \"assistant\", \"content\": \"Can you please provide me with the error code?\"}])\n", "await session.add_items([{\"role\": \"user\", \"content\": \"It says 404 not found when I try to access the page.\"}])\n", "await session.add_items([{\"role\": \"assistant\", \"content\": \"Are you connected to the internet?\"}])\n", - "# At this point, with context_limit=4, everything *before* the earliest of the last 4 turns\n", + "# At this point, with context_limit=4, everything *before* the earliest of the last 2 turns\n", "# is summarized into a synthetic pair, and the last 2 turns remain verbatim.\n" ] },