Skip to main content

REFERENCE

SDK Demos

How to use @asgard-js/core and @asgard-js/react, with demos you can try on the page.

Subagent List

When the main agent spawns subagents via the Agent tool, the SDK accumulates each into a docked panel showing its status (running / completed / failed / cancelled) and the child tools it ran.

  1. How It Works​

    • A subagent's status is driven by the asgard.subagent.start / .complete events, not by the Agent tool's own completion — async subagents often complete the Agent tool early while they are still running.
    • The correlation key is parentToolUseId (the toolUseId of the spawning Agent tool call).
    • The Agent tool and every child tool (carrying parentToolUseId) are routed out of the main tool-call group into the docked <SubagentList> panel; panel labels follow the locale prop.
  2. Headless Usage​

    Without <Chatbot>, use the useSubagents(channel) hook to get Subagent[] and render it yourself; the framework-agnostic building block is deriveSubagents(conversation) from @asgard-js/core. See Headless.

  3. See Also​

Ready to get started?

Want to see how Asgard fits your team? Talk to us.

Contact us