import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { FunctionObject, FunctionObject$Outbound } from "./functionobject.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The type of the tool. Currently, only `function` is supported. */ export declare const Type: { readonly Function: "function"; }; /** * The type of the tool. Currently, only `function` is supported. */ export type Type = ClosedEnum; export type ChatCompletionTool = { /** * The type of the tool. Currently, only `function` is supported. */ type: Type; function: FunctionObject; }; /** @internal */ export declare const Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Type$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Type$ { /** @deprecated use `Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; /** @deprecated use `Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; } /** @internal */ export declare const ChatCompletionTool$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionTool$Outbound = { type: string; function: FunctionObject$Outbound; }; /** @internal */ export declare const ChatCompletionTool$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ChatCompletionTool$ { /** @deprecated use `ChatCompletionTool$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionTool$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionTool$Outbound` instead. */ type Outbound = ChatCompletionTool$Outbound; } export declare function chatCompletionToolToJSON(chatCompletionTool: ChatCompletionTool): string; export declare function chatCompletionToolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletiontool.d.ts.map