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
Copy file name to clipboardExpand all lines: sdk/src/agents-guide.ts
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ Plot agents are TypeScript classes that extend the \`Agent\` base class. Agents
20
20
**Critical**: All agent and tool functions are executed in a sandboxed, ephemeral environment with limited resources:
21
21
22
22
- **Memory is temporary**: Anything stored in memory (e.g. as a variable in the agent/tool object) is lost after the function completes. Use the Store tool instead. Only use memory for temporary caching.
23
-
- **Limited CPU time**: Each execution has limited CPU time (typically 10 seconds) and memory (128MB)
24
-
- **Use the Run tool**: Queue separate chunks of work with \`run.now(functionName, context)\`
25
-
- **Break long operations**: Split large operations into smaller batches that can be processed independently
23
+
- **Limited resources**: Each execution has limited CPU time and memory
24
+
- **Limited runtime**: Agents execute in a Cloudflare Worker environment with the \`nodejs_compat\` flag. This means many but not all Node.js APIs are available.
25
+
- **Use the Run tool**: Split large operations into smaller batches with \`run.now(functionName, context)\`
26
26
- **Store intermediate state**: Use the Store tool to persist state between batches
27
27
- **Examples**: Syncing large datasets, processing many API calls, or performing batch operations
0 commit comments