import type { z } from "zod"; import { type Tool, type ToolCall, type ToolCallWithCall } from "../schemas/tools"; type ZodObjectType = z.ZodObject; export type ToolHandler = (args: Record) => Promise; export type ToolInput = { name: string; description: string; parameters: T; handler?: ToolHandler; }; export declare function convertToolInput(input: ToolInput): Tool; export declare function convertTools(inputs: ToolInput[]): Tool[]; /** * Validates and converts tools from either ToolInput (with Zod schemas) or full Tool format. * Returns validated Tool[] array. */ export type ToolHandlerMap = Map; export type ValidateToolsResult = { tools: Tool[]; handlers: ToolHandlerMap; }; export declare function validateTools(tools: Tool[] | ToolInput[]): ValidateToolsResult; export declare function attachHandlersToToolCalls(toolCalls: ToolCall[], handlers: ToolHandlerMap): ToolCallWithCall[]; export {}; //# sourceMappingURL=tool-helpers.d.ts.map