The subagent name type. When inferred from a
DeepAgent, this is a union of all subagent names (e.g. "researcher" | "writer"),
making args.subagent_type a typed discriminant.
The arguments passed to the tool
Additional custom arguments
Optionaldescription?: stringThe task description for the subagent
Optionalsubagent_type?: SubagentNameThe type of subagent to use
The tool call ID
The name of the tool (typically "task")
Represents a tool call that initiated a subagent.