Skip to content

Commit 2be4ad0

Browse files
bloveclaude
andcommitted
docs(deep-agents): customEvents is per run on the skills page; info callout; the orchestrator docstring matches the page
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 36ce6a0 commit 2be4ad0

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/website/content/docs/deep-agents/capabilities/skills.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ A custom event is a live signal and is not replayed when a thread is reopened. T
112112

113113
<ExampleCode file="skills.component.ts" region="skills-sources" title="skills.component.ts — the two readers" />
114114

115-
`agent.customEvents()` is a Signal of every custom event received in this session, so the live reader walks it newest first and takes the most recent payload under the event name the graph emits, while `agent.value()` is the agent state the adapter projects from the latest checkpoint, which carries the key even though the run stream does not.
115+
`agent.customEvents()` holds the custom events of the current run, cleared when a new run starts, so the live reader walks it newest first and takes the most recent payload under the event name the graph emits, while `agent.value()` is the agent state the adapter projects from the latest checkpoint, which carries the key even though the run stream does not.
116116

117117
### What the agent actually opened
118118

apps/website/content/docs/deep-agents/capabilities/subagents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Omitting `tools` would inherit the main agent's tools instead, which is the oppo
3535

3636
<ExampleCode file="graph.py" region="orchestrator" title="graph.py — the orchestrator" />
3737

38-
<Callout type="note" title="A third specialist you did not declare">
38+
<Callout type="info" title="A third specialist you did not declare">
3939
Unless it is explicitly disabled, `create_deep_agent` inserts a `general-purpose` subagent ahead of the specs you pass, with the main agent's model and tools. The `task` tool description therefore lists three agent types rather than two. The demo does not disable it; the system prompt simply names the two specialists it wants, which is enough to keep the orchestrator on them.
4040
</Callout>
4141

cockpit/deep-agents/subagents/python/src/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ def lookup_weather(airport: str) -> str:
111111
def build_subagents_agent():
112112
"""Build the orchestrator.
113113
114-
Passing `subagents` is what installs `SubAgentMiddleware` and, with it, the
115-
`task` tool. The orchestrator gets no lookup tools of its own so it has no
114+
`SubAgentMiddleware` and the `task` tool ship by default through the
115+
`general-purpose` subagent; passing `subagents` puts these specialists on
116+
that tool. The orchestrator gets no lookup tools of its own so it has no
116117
way to answer without delegating.
117118
"""
118119
return create_deep_agent(

0 commit comments

Comments
 (0)