Use Agents SDK for durable agents guide#28060
Merged
threepointone merged 3 commits intoproductionfrom Feb 4, 2026
Merged
Conversation
Revamp the durable-agents guide to use the Agents SDK and demonstrate real-time, bidirectional Workflows. Changes include: reformatted imports and npm install command to include `agents`; replace the previous Workflow example with a ResearchWorkflow implementing AgentWorkflow; add a ResearchAgent sample (src/agent.ts) to manage WebSocket/HTTP lifecycle and receive progress callbacks; update src/index.ts to route agent requests, expose /research and /status endpoints, and export agent/workflow classes; update wrangler config examples to register the ResearchAgent and ResearchWorkflow and migrations; modify .env, dev, and deploy instructions; add real-time client integration and a React useAgent example; and various wording/formatting improvements throughout the doc to explain Agents + Workflows integration.
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
mia303
approved these changes
Feb 3, 2026
Co-authored-by: mia303 <mmalden@cloudflare.com>
Remove custom <Steps> wrapper tags around example sections and replace step lists with plain headings (e.g., "Create src/workflow.ts", "Create src/agent.ts", "Replace src/index.ts"). Normalize fenced code block indentation and clean up surrounding whitespace for more consistent MDX rendering.
Contributor
|
Preview URL: https://08a73b30.preview.developers.cloudflare.com Files with changes (up to 15) |
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
Revamp the durable-agents guide to use the Agents SDK and demonstrate real-time, bidirectional Workflows. Changes include: reformatted imports and npm install command to include
agents; replace the previous Workflow example with a ResearchWorkflow implementing AgentWorkflow; add a ResearchAgent sample (src/agent.ts) to manage WebSocket/HTTP lifecycle and receive progress callbacks; update src/index.ts to route agent requests, expose /research and /status endpoints, and export agent/workflow classes; update wrangler config examples to register the ResearchAgent and ResearchWorkflow and migrations; modify .env, dev, and deploy instructions; add real-time client integration and a React useAgent example; and various wording/formatting improvements throughout the doc to explain Agents + Workflows integration.Documentation checklist