Repository navigation
[Agents] Fix Think samples and split memory into Sessions and Context concepts - #34718
Draft
mattzcarey wants to merge 3 commits into
Draft
mattzcarey wants to merge 3 commits into
mattzcarey wants to merge 3 commits into
Conversation
Contributor
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://claude-agents-sdk-docs-framing-4ywlcx.previews.developers.cloudflare.com (commit d5c9956)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
irvinebroque
approved these changes
Oct 29, 2026
Think pages: replace the removed defineScheduledTasks and defineMessengers helpers with plain object returns, move memory examples from the deprecated configureSession().withContext() chain to configureContext(), import useAgentChat from @cloudflare/think/react, and rename onStepFinish to onStepEnd. Conversation state and memory: remove samples that import agents/experimental/memory/*, which agents no longer exports. Keep the concepts and point to AIChatAgent, the Pi harness, and Think. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017x2hF1BzfPSifknGZh4YNJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017x2hF1BzfPSifknGZh4YNJ
…t concepts Replace the conversation-state-and-memory page with two concept pages: Sessions (the transcript, branches, compaction, prompt caching) and Context and memory (blocks the agent reads and writes, skills, and how changes reach the model without breaking the prompt cache). Point the Think pages at them.
mattzcarey
force-pushed
the
claude/agents-sdk-docs-framing-4ywlcx
branch
from
October 29, 2026 17:51
d5c9956 to
8071b16
Compare
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.
Fixes Think code samples that no longer compile, and replaces "Conversation state and memory" with two concept pages: Sessions and Context and memory.
The old memory page mixed two different things and documented
agents/experimental/memory/*, whichagentsno longer exports:Think pages:
configureSession().withContext()chain toconfigureContext(), and "Session integration" becomes "Session and context", linking to the new conceptsdefineScheduledTasksanddefineMessengershelpers become plain object returnsuseAgentChatimports from@cloudflare/think/react,onStepFinishbecomesonStepEnd, and the comparison withAIChatAgentno longer says Think has anonChatMessageTypeScriptExample/agents/concepts/conversation-state-and-memory/redirects to the memory page; the old/agents/concepts/memory/redirect is removed so it does not loop.Ship with the
agentsrelease that includes cloudflare/agents#2773: the memory page describes context changes being sent once and kept where they were delivered, which that PR adds.Documentation checklist