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: src/oss/deepagents/async-subagents.mdx
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,15 @@ Async subagents let a supervisor agent launch background tasks that return immed
7
7
8
8
This builds on [subagents](/oss/deepagents/subagents), which run synchronously and block the supervisor until completion. Use async subagents when tasks are long-running, parallelizable, or need mid-flight steering.
9
9
10
-
<Warning>
10
+
<Note>
11
11
:::python
12
-
Async subagents are a preview feature targeted for `deepagents` 0.5.0. You can try them now by installing a prerelease version. Preview features are under active development and are not recommended for production use.
13
-
14
-
For Python, install the `0.5.0a1` prerelease with `--pre` or `--allow-prereleases`.
12
+
Async subagents are a preview feature available in `deepagents` 0.5.0. Preview features are under active development and APIs may change.
15
13
:::
16
14
17
15
:::js
18
-
Async subagents are a preview feature targeted for `deepagents` 1.9.0. You can try them now by installing a prerelease version. Preview features are under active development and are not recommended for production use.
19
-
20
-
For JavaScript, install the prerelease version explicitly, for example `deepagents@1.9.0-alpha.0`.
16
+
Async subagents are a preview feature available in `deepagents` 1.9.0. Preview features are under active development and APIs may change.
-`ctx.runtime.context` — User-supplied context passed via LangGraph's [context schema](https://langchain-ai.github.io/langgraph/concepts/runtime/) (for example, `user_id`)
223
+
:::python
224
+
-`ctx.runtime.server_info` — Server-specific metadata when running on LangGraph Server (assistant ID, graph ID, authenticated user)
225
+
-`ctx.runtime.execution_info` — Execution identity information (thread ID, run ID, checkpoint ID)
226
+
:::
227
+
:::js
228
+
-`ctx.runtime.serverInfo` — Server-specific metadata when running on LangGraph Server (assistant ID, graph ID, authenticated user)
229
+
-`ctx.runtime.executionInfo` — Execution identity information (thread ID, run ID, checkpoint ID)
230
+
:::
223
231
-`ctx.state` — Current agent state
224
232
225
-
For `assistant_id` and `thread_id`, use `langgraph.config.get_config()` inside the factory — these are available in LangGraph config metadata but not on the context schema.
233
+
:::python
234
+
<Note>
235
+
`ctx.runtime.server_info` and `ctx.runtime.execution_info` require `deepagents>=0.5.0`.
236
+
</Note>
237
+
:::
238
+
239
+
:::js
240
+
<Note>
241
+
`ctx.runtime.serverInfo` and `ctx.runtime.executionInfo` require `deepagents>=1.9.0`.
242
+
</Note>
243
+
:::
226
244
227
245
**Common namespace patterns:**
228
246
229
247
:::python
230
248
```python
231
-
from langgraph.config import get_config
232
249
from deepagents.backends import StoreBackend
233
250
234
251
# Per-user: each user gets their own isolated storage
0 commit comments