Create subagent middleware with task tool
createSubAgentMiddleware(
options: SubAgentMiddlewareOptions
): AgentMiddleware<undefined, undefined, unknown, readonly [DynamicStructuredTool<ZodObject<__type, strip>, __type, __type, string | Command<unknown, Record<string, unknown>, string>, "task">]>| Name | Type | Description |
|---|---|---|
options* | SubAgentMiddlewareOptions |