/** * Tool definition schemas */ import { z } from 'zod'; /** * Tool parameter types */ export declare const ToolParameterTypeSchema: z.ZodEnum<["string", "integer", "number", "boolean", "object", "array"]>; export type ToolParameterType = z.infer; /** * Tool parameter schema (recursive for nested objects) */ export declare const ToolParameterSchema: z.ZodType; export type ToolParameter = z.infer; /** * Bash implementation schema */ export declare const BashImplementationSchema: z.ZodObject<{ command: z.ZodString; sandbox: z.ZodOptional>; network_access: z.ZodOptional; max_execution_time: z.ZodOptional; env_vars: z.ZodOptional>; }, "strip", z.ZodTypeAny, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }>; export type BashImplementation = z.infer; /** * Python implementation schema */ export declare const PythonImplementationSchema: z.ZodObject<{ module: z.ZodString; function: z.ZodString; }, "strip", z.ZodTypeAny, { function: string; module: string; }, { function: string; module: string; }>; export type PythonImplementation = z.infer; /** * HTTP implementation schema */ export declare const HTTPImplementationSchema: z.ZodObject<{ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>; url: z.ZodString; headers: z.ZodOptional>; body_template: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }>; export type HTTPImplementation = z.infer; /** * Tool implementation schema (discriminated union) */ export declare const ToolImplementationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"bash">; bash: z.ZodObject<{ command: z.ZodString; sandbox: z.ZodOptional>; network_access: z.ZodOptional; max_execution_time: z.ZodOptional; env_vars: z.ZodOptional>; }, "strip", z.ZodTypeAny, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; }, { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"python">; python: z.ZodObject<{ module: z.ZodString; function: z.ZodString; }, "strip", z.ZodTypeAny, { function: string; module: string; }, { function: string; module: string; }>; }, "strip", z.ZodTypeAny, { type: "python"; python: { function: string; module: string; }; }, { type: "python"; python: { function: string; module: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"http">; http: z.ZodObject<{ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>; url: z.ZodString; headers: z.ZodOptional>; body_template: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }, { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }>]>; export type ToolImplementation = z.infer; /** * Tool definition schema */ export declare const ToolDefinitionSchema: z.ZodObject<{ name: z.ZodString; type: z.ZodLiteral<"tool">; description: z.ZodString; extends: z.ZodOptional; extended_description: z.ZodOptional; parameters: z.ZodRecord>; depends_on: z.ZodOptional>; implementation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"bash">; bash: z.ZodObject<{ command: z.ZodString; sandbox: z.ZodOptional>; network_access: z.ZodOptional; max_execution_time: z.ZodOptional; env_vars: z.ZodOptional>; }, "strip", z.ZodTypeAny, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }, { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }, { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; }, { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"python">; python: z.ZodObject<{ module: z.ZodString; function: z.ZodString; }, "strip", z.ZodTypeAny, { function: string; module: string; }, { function: string; module: string; }>; }, "strip", z.ZodTypeAny, { type: "python"; python: { function: string; module: string; }; }, { type: "python"; python: { function: string; module: string; }; }>, z.ZodObject<{ type: z.ZodLiteral<"http">; http: z.ZodObject<{ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>; url: z.ZodString; headers: z.ZodOptional>; body_template: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }, { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }, { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }>]>; output: z.ZodOptional>; version: z.ZodString; author: z.ZodOptional; tags: z.ZodArray; }, "strip", z.ZodTypeAny, { type: "tool"; name: string; version: string; description: string; tags: string[]; parameters: Record; implementation: { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; } | { type: "python"; python: { function: string; module: string; }; } | { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }; author?: string | undefined; extends?: string | undefined; extended_description?: string | undefined; depends_on?: string[] | undefined; output?: Record | undefined; }, { type: "tool"; name: string; version: string; description: string; tags: string[]; parameters: Record; implementation: { type: "bash"; bash: { command: string; sandbox?: { enabled: boolean; allowlisted_commands?: string[] | undefined; network_access?: boolean | undefined; max_execution_time?: number | undefined; env_vars?: string[] | undefined; } | undefined; }; } | { type: "python"; python: { function: string; module: string; }; } | { type: "http"; http: { url: string; method: "GET" | "POST" | "PUT" | "DELETE"; headers?: Record | undefined; body_template?: string | undefined; }; }; author?: string | undefined; extends?: string | undefined; extended_description?: string | undefined; depends_on?: string[] | undefined; output?: Record | undefined; }>; export type ToolDefinition = z.infer; //# sourceMappingURL=tool.d.ts.map