import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The type of the tool. Currently, only `function` is supported. */ export declare const ChatCompletionNamedToolChoiceType: { readonly Function: "function"; }; /** * The type of the tool. Currently, only `function` is supported. */ export type ChatCompletionNamedToolChoiceType = ClosedEnum; export type FunctionT = { /** * The name of the function to call. */ name: string; }; /** * Specifies a tool the model should use. Use to force the model to call a specific function. */ export type ChatCompletionNamedToolChoice = { /** * The type of the tool. Currently, only `function` is supported. */ type: ChatCompletionNamedToolChoiceType; function: FunctionT; }; /** @internal */ export declare const ChatCompletionNamedToolChoiceType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionNamedToolChoiceType$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 ChatCompletionNamedToolChoiceType$ { /** @deprecated use `ChatCompletionNamedToolChoiceType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; /** @deprecated use `ChatCompletionNamedToolChoiceType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; } /** @internal */ export declare const FunctionT$inboundSchema: z.ZodType; /** @internal */ export type FunctionT$Outbound = { name: string; }; /** @internal */ export declare const FunctionT$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 FunctionT$ { /** @deprecated use `FunctionT$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `FunctionT$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `FunctionT$Outbound` instead. */ type Outbound = FunctionT$Outbound; } export declare function functionToJSON(functionT: FunctionT): string; export declare function functionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatCompletionNamedToolChoice$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionNamedToolChoice$Outbound = { type: string; function: FunctionT$Outbound; }; /** @internal */ export declare const ChatCompletionNamedToolChoice$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 ChatCompletionNamedToolChoice$ { /** @deprecated use `ChatCompletionNamedToolChoice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionNamedToolChoice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionNamedToolChoice$Outbound` instead. */ type Outbound = ChatCompletionNamedToolChoice$Outbound; } export declare function chatCompletionNamedToolChoiceToJSON(chatCompletionNamedToolChoice: ChatCompletionNamedToolChoice): string; export declare function chatCompletionNamedToolChoiceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionnamedtoolchoice.d.ts.map