ToolList
type ToolList = ( | Tool | McpClient | Agent | ToolList)[];Defined in: src/agent/agent.ts:133
Recursive type definition for nested tool arrays. Allows tools to be organized in nested arrays of any depth.
Agent instances in the array are automatically wrapped via
Agent.asTool, so they can be passed directly without calling
.asTool() explicitly.