Commit eeaa2a2
committed
feat(dojo): add the deepagents subagent-attribution demo
A demo page that renders each subagent's output as its own collapsible,
reasoning-style group: name and description from useSubagent, tool-call cards
inside the owning group, a checkmark when the subagent finishes, and an interrupt
handled inside a subagent.
Grouping is driven by `subagentRunId` on the messages via renderCustomMessages,
which is the consumer-side proof that attribution survives the whole path --
LangGraph's derived namespaces, the protocol events, the client's apply step, and
CopilotKit's rendering. Scoped to the Python-backed integrations, since the agent
is a LangGraph graph.
`useSubagent({ subagentRunId })` is plain shorthand: CopilotKit adopted the same
field name (CopilotKit/CopilotKit#5873), so no mapping is needed at the boundary.
If it ever needs an explicit mapping again, the two names have diverged.1 parent ad90070 commit eeaa2a2
8 files changed
Lines changed: 561 additions & 0 deletions
File tree
- apps/dojo/src
- app/[integrationId]/feature/(v2)/deepagents_subagents
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments