You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-export DurableAgent at top level of @workflow/ai
Users can now import DurableAgent directly from @workflow/ai instead of requiring @workflow/ai/agent.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/content/docs/api-reference/workflow-ai/durable-agent.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The `DurableAgent` class enables you to create AI-powered agents that can mainta
14
14
Tool calls can be implemented as workflow steps for automatic retries, or as regular workflow-level logic utilizing core library features such as [`sleep()`](/docs/api-reference/workflow/sleep) and [Hooks](/docs/foundations/hooks).
15
15
16
16
```typescript lineNumbers
17
-
import { DurableAgent } from'@workflow/ai/agent';
17
+
import { DurableAgent } from'@workflow/ai';
18
18
import { z } from'zod';
19
19
20
20
asyncfunction getWeather({ city }: { city:string }) {
@@ -51,7 +51,7 @@ async function myAgent() {
51
51
<TSDoc
52
52
definition={generateDefinition({
53
53
code: `
54
-
import { DurableAgent } from "@workflow/ai/agent";
54
+
import { DurableAgent } from "@workflow/ai";
55
55
export default DurableAgent;`
56
56
})}
57
57
/>
@@ -61,7 +61,7 @@ export default DurableAgent;`
61
61
<TSDoc
62
62
definition={generateDefinition({
63
63
code: `
64
-
import type { DurableAgentOptions } from "@workflow/ai/agent";
64
+
import type { DurableAgentOptions } from "@workflow/ai";
0 commit comments