Expand description
The subagent tool: delegates a self-contained task to a child agent built at call time, and
returns the child’s final report.
The model’s arguments are resolved through the authority-mode axes of
multiagent (Axis); a ChildAgentBuilder turns the result into
the child. The child’s events stream as the tool’s progress events, and its interrupts
surface on the parent with ids scoped to the call, so resuming the parent resumes the child.
Structs§
- Make
Subagent Options - Options for
make_subagent(MakeSubagentOptions). - Make
Subagent Options Builder - Use builder syntax to set the inputs and finish with
build(). - Subagent
Tool - The
subagenttool: builds a fresh child per call and streams it (SubagentTool).
Constants§
- DEFAULT_
SUBAGENT_ DESCRIPTION - The description of the default
subagenttool (DEFAULT_SUBAGENT_DESCRIPTION). - DEFAULT_
SUBAGENT_ MAX_ DEPTH - The default bound on nested delegation levels (
DEFAULT_SUBAGENT_MAX_DEPTH).
Functions§
- generalist
- The built-in generalist preset (
GENERALIST). - make_
subagent - Creates a subagent tool whose input schema follows the axis policies and presets.
- subagent
- The default
subagenttool: the generalist preset and every axis at its default (subagent).