[Agents] Add Sub-agents, Sessions, and Think reference docs#29882
Merged
threepointone merged 1 commit intoproductionfrom Apr 15, 2026
Merged
[Agents] Add Sub-agents, Sessions, and Think reference docs#29882threepointone merged 1 commit intoproductionfrom
threepointone merged 1 commit intoproductionfrom
Conversation
Add new API reference pages for Sessions, Sub-agents, and Think (persistent session storage, child Durable Object agents with RPC, and the Think opinionated chat framework). Update the Agents API index to include Sub-agents, Sessions, and Think. Clarify subagent delegation in chat-agents (note about in-process ToolLoopAgent vs Durable Object sub-agents). Rename/standardize chat recovery flag in durable-execution (unstable_chatRecovery → chatRecovery) and update related links/reference text. Also include minor related adjustments in long-running agents documentation.
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
whoiskatrin
approved these changes
Apr 15, 2026
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.
Summary
Adds three new API reference pages for the Agents SDK, covering experimental features that were previously undocumented in cloudflare-docs:
Agent.subAgent(),abortSubAgent(),deleteSubAgent(),SubAgentStub<T>typing, storage isolation, naming, patterns (parallel, nested, callback streaming), and limitations.SessionAPI: builder pattern, tree-structured messages, branching, context blocks (4 provider types), AI tools, compaction,SessionManager, forking, cross-session search, storage tables, and custom providers.@cloudflare/think: quick start, Think vs AIChatAgent comparison, configuration, session integration, tools (7-layer merge order, workspace, code execution, browser/CDP, extensions), all 8 lifecycle hooks, client tools, message concurrency, sub-agent RPC viachat(), programmatic turns, chat recovery, and stability detection.Also updates three existing pages with cross-links:
agents-api.mdx— added Sub-agents, Sessions, Think rows to the API reference tablelong-running-agents.mdx— added link from "Delegating to sub-agents" to the new API referencechat-agents.mdx— added note in "Subagent delegation" distinguishing in-process AI SDK subagents from Durable Object sub-agentsSource material adapted from the agents-repo internal docs (
docs/think/,docs/sessions.md).Documentation checklist
Made with Cursor