import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export declare const AllowedCaller: { readonly Direct: "direct"; readonly Programmatic: "programmatic"; }; export type AllowedCaller = OpenEnum; /** * A function tool grouped inside a namespace tool */ export type NamespaceFunctionTool = { allowedCallers?: Array | null | undefined; /** * Lets the model keep working after calling this tool instead of waiting for its output. The tool is still executed by the client; return the result in a later request as a `function_call_output` with the original `call_id`. Only honored by providers whose Responses API supports async tools; ignored elsewhere. */ async?: boolean | undefined; deferLoading?: boolean | undefined; description?: string | null | undefined; name: string; outputSchema?: { [k: string]: any; } | null | undefined; parameters?: { [k: string]: any; } | null | undefined; strict?: boolean | null | undefined; type: "function"; }; /** @internal */ export declare const AllowedCaller$inboundSchema: z.ZodType; /** @internal */ export declare const AllowedCaller$outboundSchema: z.ZodType; /** @internal */ export declare const NamespaceFunctionTool$inboundSchema: z.ZodType; /** @internal */ export type NamespaceFunctionTool$Outbound = { allowed_callers?: Array | null | undefined; async?: boolean | undefined; defer_loading?: boolean | undefined; description?: string | null | undefined; name: string; output_schema?: { [k: string]: any; } | null | undefined; parameters?: { [k: string]: any; } | null | undefined; strict?: boolean | null | undefined; type: "function"; }; /** @internal */ export declare const NamespaceFunctionTool$outboundSchema: z.ZodType; export declare function namespaceFunctionToolToJSON(namespaceFunctionTool: NamespaceFunctionTool): string; export declare function namespaceFunctionToolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=namespacefunctiontool.d.ts.map