Options for creating subagent middleware
interface SubAgentMiddlewareOptionsDefault middleware to apply to custom subagents (WITHOUT skills from main agent)
The model to use for subagents
The tools to use for the default general-purpose subagent
Whether to include the general-purpose agent
Middleware specifically for the general-purpose subagent (includes skills from main agent). If not provided, falls back to defaultMiddleware.
A list of additional subagents to provide to the agent
System prompt override. Set to null to disable. Defaults to ASYNC_TASK_SYSTEM_PROMPT.
Custom description for the task tool