import { a as TObject, s as TString } from "../../helpers-DutyHbVD.mjs"; import { t as TUnsafe } from "../../unsafe-C_mX8nG4.mjs"; import { t as TOptional } from "../../optional-Bis1WTKK.mjs"; import { ToolDispatcher } from "../services/sandbox-runtime.mjs"; //#region extensions/crypto/src/tools/agent-delegate.d.ts /** * Factory: creates the agent_delegate tool. * * Requires a dispatcher (for sub-agents to call tools) and a function * to get the list of registered tools (for building sub-agent tool schemas). */ declare function createAgentDelegateTool(getDispatcher: () => ToolDispatcher, getRegisteredTools: () => Array<{ name: string; description: string; parameters: any; }>): { name: string; label: string; ownerOnly: boolean; description: string; parameters: TObject<{ action: TUnsafe<"list" | "delegate" | "status">; agent: TOptional; task: TOptional; }>; execute: (_toolCallId: string, args: unknown) => Promise<{ content: Array<{ type: "text"; text: string; }>; details: unknown; }>; }; //#endregion export { createAgentDelegateTool }; //# sourceMappingURL=agent-delegate.d.mts.map