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/src/content/docs/guides/sandbox-agents/concepts.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ The main SDK pieces map onto those layers like this:
117
117
118
118
A practical design order is:
119
119
120
-
1. Define the fresh-session workspace contract with `Manifest`.
120
+
1. Define the fresh-session workspace contract with a `Manifest` or manifest init object.
121
121
2. Define the agent with `SandboxAgent`.
122
122
3. Add built-in or custom capabilities.
123
123
4. Decide how each run should obtain its sandbox session in `run(agent, input, { sandbox: ... })` or `new Runner({ sandbox: ... })`.
@@ -150,7 +150,7 @@ Sandbox client choice, sandbox-session reuse, manifest override, and snapshot se
150
150
151
151
### `defaultManifest`
152
152
153
-
`defaultManifest` is the default `Manifest` used when the runner creates a fresh sandbox session for this agent. Use it for the files, repos, helper material, output directories, and mounts the agent should usually start with.
153
+
`defaultManifest` is the default workspace used when the runner creates a fresh sandbox session for this agent. Pass either a `Manifest` instance or the same init object you would pass to `new Manifest(...)`. Use it for the files, repos, helper material, output directories, and mounts the agent should usually start with.
154
154
155
155
This is only the default. A run can override it with `sandbox.manifest`, and a reused or resumed sandbox session keeps its existing workspace state.
156
156
@@ -332,7 +332,7 @@ These options only matter when the runner is creating a fresh sandbox session:
332
332
333
333
| Option | Use it when | Notes |
334
334
| --- | --- | --- |
335
-
|`manifest`| You want a one-off fresh-session workspace override. | Falls back to `agent.defaultManifest` when omitted. |
335
+
|`manifest`| You want a one-off fresh-session workspace override. |Accepts a `Manifest` or manifest init object. Falls back to `agent.defaultManifest` when omitted. |
336
336
|`snapshot`| A fresh sandbox session should be seeded from a snapshot. | Useful for resume-like flows or remote snapshot clients. |
337
337
|`options`| The sandbox client needs creation-time options. | Common for Docker images, provider timeouts, and similar client-specific settings. |
0 commit comments