Skip to content

Use Agents SDK for durable agents guide#28060

Merged
threepointone merged 3 commits intoproductionfrom
durable-agent-workflow
Feb 4, 2026
Merged

Use Agents SDK for durable agents guide#28060
threepointone merged 3 commits intoproductionfrom
durable-agent-workflow

Conversation

@threepointone
Copy link
Contributor

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

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.
@github-actions github-actions bot added product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/l labels Feb 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workflows/ @elithrar, @celso, @mia303, @jonesphillip, @cloudflare/pcx-technical-writing

threepointone and others added 2 commits February 3, 2026 16:54
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.
@threepointone threepointone enabled auto-merge (squash) February 4, 2026 02:26
@threepointone threepointone merged commit 00c73e3 into production Feb 4, 2026
9 checks passed
@threepointone threepointone deleted the durable-agent-workflow branch February 4, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workflows Workflows: https://developers.cloudflare.com/workflows/ size/l

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants