/** * Tool definitions and safe execution boundary. * runToolSafely must never throw — tool failures become tool messages in the loop. */ import { z } from "zod"; import type { ToolContext, ToolDefinition, ToolResult } from "../types"; /** Identity helper for typed tool definitions at the call site. */ export declare function defineTool>(def: ToolDefinition): ToolDefinition; /** * Validates input and executes the tool without ever throwing. * Keeps a single misbehaving tool from crashing the agent loop. */ export declare function runToolSafely>(tool: ToolDefinition, rawInput: unknown, ctx: ToolContext): Promise>; export { z }; //# sourceMappingURL=index.d.ts.map