Skip to main content

Module subagent

Module subagent 

Source
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§

MakeSubagentOptions
Options for make_subagent (MakeSubagentOptions).
MakeSubagentOptionsBuilder
Use builder syntax to set the inputs and finish with build().
SubagentTool
The subagent tool: builds a fresh child per call and streams it (SubagentTool).

Constants§

DEFAULT_SUBAGENT_DESCRIPTION
The description of the default subagent tool (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 subagent tool: the generalist preset and every axis at its default (subagent).