Uh oh!
There was an error while loading. Please reload this page.
Deprecate DurableAgent and update it with WorkflowAgent in v5 docs - #2285
Conversation
|
Uh oh!
There was an error while loading. Please reload this page.
pranaygp
left a comment
There was a problem hiding this comment.
Left one docs clarity note.
| Use this pattern to make any AI SDK agent durable. The agent becomes a workflow, tools become steps, and the framework handles retries, streaming, and state persistence automatically. | ||
| <Callout type="warn"> | ||
| `DurableAgent` is deprecated. For new durable agents, use AI SDK's [`WorkflowAgent`](https://ai-sdk.dev/v7/docs/agents/workflow-agent#workflowagent), which replaces `DurableAgent` with the maintained `@ai-sdk/workflow` API. |
There was a problem hiding this comment.
The new deprecation callout points people at WorkflowAgent, but the page still immediately continues with Use this pattern..., a When to use this section, and a full DurableAgent implementation guide. That gives mixed guidance to someone landing here fresh from search. Consider rewriting the intro/When to use this framing to make it explicit that this page is for existing DurableAgent users only, or linking straight to a WorkflowAgent version of the pattern.
There was a problem hiding this comment.
Thanks, addressed in 286c7a9. I reduced this cookbook to a short legacy/deprecation page for existing DurableAgent users only, removed the flight-agent implementation plus the How it works and adaptation guidance, and linked new implementations to the AI SDK WorkflowAgent docs plus the local legacy DurableAgent API reference.
gr2m
left a comment
There was a problem hiding this comment.
Should we reduce docs here to a minimal and link to the WorkflowAgent docs on the AI SDK website for details to avoid drift
No backport to All changes are confined to paths that don't exist on To override, re-run the Backport to stable workflow manually via |
Summary
Validation
Note: full docs lint currently fails on existing unrelated Biome issues; docs smoke timed out waiting for the local docs server.