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: docs/advanced/patterns.mdx
+64-2Lines changed: 64 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,53 @@
1
1
---
2
2
title: "Advanced Patterns"
3
-
description: "Mock mode, scenario internals, and troubleshooting"
3
+
description: "Sandboxing, mocking, scenario internals, and troubleshooting"
4
4
icon: "wrench"
5
5
---
6
6
7
-
## Mock Mode
7
+
## Sandboxing
8
+
9
+
Agents need isolated state. You can't point an agent at production — it'll make real changes, hit real APIs, affect real users. These patterns keep things safe.
await db.executemany("INSERT INTO users ...", fixtures["users"])
48
+
```
49
+
50
+
### Mocking External Services
8
51
9
52
`env.mock()` intercepts at the tool layer. Agents only see tools, so this is usually all you need for testing agent logic without hitting real services:
0 commit comments