Skip to content

Commit 3c80935

Browse files
authored
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.
1 parent a1b8af6 commit 3c80935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/agents_sdk/session_memory.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@
11461146
"await session.add_items([{\"role\": \"assistant\", \"content\": \"Can you please provide me with the error code?\"}])\n",
11471147
"await session.add_items([{\"role\": \"user\", \"content\": \"It says 404 not found when I try to access the page.\"}])\n",
11481148
"await session.add_items([{\"role\": \"assistant\", \"content\": \"Are you connected to the internet?\"}])\n",
1149-
"# At this point, with context_limit=4, everything *before* the earliest of the last 4 turns\n",
1149+
"# At this point, with context_limit=4, everything *before* the earliest of the last 2 turns\n",
11501150
"# is summarized into a synthetic pair, and the last 2 turns remain verbatim.\n"
11511151
]
11521152
},

0 commit comments

Comments
 (0)