Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9b746cb
docs: add a subagents tutorial with a blog-writing Start app
AlemTuzlak Sep 21, 2026
d3367d1
ci: apply automated fixes
autofix-ci[bot] Sep 21, 2026
52a736e
docs: teach createChatHook subagent parts and OpenRouter Jev routing
AlemTuzlak Sep 21, 2026
3bc1236
docs: use SubagentMessages and Subagents in the tutorial example
AlemTuzlak Sep 21, 2026
3462afa
docs: render subagents from LayoutProps
AlemTuzlak Sep 22, 2026
6740b8a
docs: let Jev choose parallel or sequence for the blog desk
AlemTuzlak Sep 22, 2026
11b257c
docs: pass the router agents into subagentRoute
AlemTuzlak Sep 22, 2026
1c167b5
docs: use agent descriptions as subagentRoute questions
AlemTuzlak Sep 22, 2026
3a798f2
docs: render subagent messages with Parts
AlemTuzlak Sep 22, 2026
e4b335f
docs: add a parallel SEO agent to the blog desk
AlemTuzlak Sep 22, 2026
b157c79
docs: name the SEO agent in the tutorial intro
AlemTuzlak Sep 22, 2026
6e7aabd
docs: route research and SEO together, and keep the writer for articles
AlemTuzlak Sep 22, 2026
e0639a6
docs: start research and SEO together, then send both to the writer
AlemTuzlak Sep 22, 2026
677477e
docs: show a later message can write from the earlier notes
AlemTuzlak Sep 22, 2026
25da4d7
fix: guard empty router state and cancel the child request
AlemTuzlak Sep 22, 2026
28f50dd
docs(subagents): describe three agents, pass resume ids, fix abort an…
AlemTuzlak Sep 23, 2026
1086c0d
docs(subagents): name the three tutorial agents
AlemTuzlak Sep 23, 2026
c93ff01
docs(subagents): declare the blog agents once and pass them to the UI…
AlemTuzlak Sep 23, 2026
fea3be5
chore(examples): forward server devtools events in the subagents example
AlemTuzlak Sep 23, 2026
1dc4070
docs(subagents): pass subagentRunId into each child chat
tombeckenham Sep 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/chat/subagents.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ keywords:

You want a specialist to handle some turns (research, writing, a sandbox harness) while the parent chat stays one conversation. `chat({ subagents })` lets the parent start a child. A router can still keep the turn on the parent, and without a router the model can skip the child tool. When a child starts, the stream tags its events with `subagentRunId`, and the client stores the work in a `type: 'subagent'` part.

Want a Start app with a researcher, an SEO agent, and a writer, routed by Jev? Open the [Subagents tutorial](../tutorials/subagents).

## Define a child

`run` is a `chat()` call. The child can use tools, MCP, interrupts, and its own nested `subagents`.
Expand Down
10 changes: 10 additions & 0 deletions docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
"label": "Evaluate a ticket",
"to": "tutorials/evaluate",
"addedAt": "2026-09-18"
},
{
"label": "Subagents",
"to": "tutorials/subagents",
"addedAt": "2026-09-21"
}
]
},
Expand All @@ -95,6 +100,11 @@
"label": "Evaluate",
"to": "framework/react/examples/evaluate",
"addedAt": "2026-09-18"
},
{
"label": "Subagents",
"to": "framework/react/examples/subagents",
"addedAt": "2026-09-21"
}
]
},
Expand Down
2 changes: 2 additions & 0 deletions docs/getting-started/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Generate an image from a prompt in [Generate Image](../tutorials/generate-image)

Stream a typed table from `chat({ outputSchema })` in [Streaming Structured Table](../tutorials/streaming-structured-table).

Add three named agents (researcher, SEO, and writer) to a blog-writing chat in [Subagents](../tutorials/subagents).

## Key Features

- ✅ **Type-Safe** - Full TypeScript support with Zod schema inference
Expand Down
2 changes: 2 additions & 0 deletions docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ For an image from a prompt, open [Generate Image](../tutorials/generate-image).

For a table that fills as JSON streams, open [Streaming Structured Table](../tutorials/streaming-structured-table).

For a blog desk where a researcher and an SEO agent run together and a writer uses their notes, open [Subagents](../tutorials/subagents).

> [!TIP]
> If you do not want a key per provider, [OpenRouter](../adapters/openrouter) gives you 300+ models with one API key.

Expand Down
Loading
Loading