import type { Tool, ToolConfig, ToolExecutionContext } from "./types.js"; import type { JsonSchema } from "../extensions/schema/index.js"; /** Create a typed tool definition. */ export declare function tool(config: ToolConfig): Tool; /** Configuration used by dynamic tool. */ export interface DynamicToolConfig { id?: string; description: string; inputSchema: unknown; inputSchemaJson?: JsonSchema; execute: (input: unknown, context?: ToolExecutionContext) => Promise | unknown; toModelOutput?: (output: unknown) => unknown; mcp?: ToolConfig["mcp"]; } /** Create a dynamic tool definition. */ export declare function dynamicTool(config: DynamicToolConfig): Tool; //# sourceMappingURL=factory.d.ts.map