import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ChatCompletionNamedToolChoice, ChatCompletionNamedToolChoice$Outbound } from "./chatcompletionnamedtoolchoice.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` or `any` means the model must call one or more tools. * * @remarks */ export declare const ChatCompletionToolChoiceOption1: { readonly None: "none"; readonly Auto: "auto"; readonly Any: "any"; readonly Required: "required"; }; /** * `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` or `any` means the model must call one or more tools. * * @remarks */ export type ChatCompletionToolChoiceOption1 = ClosedEnum; /** * Controls which (if any) tool is called by the model. * * @remarks * `none` means the model will not call any tool and instead generates a message. * `auto` means the model can pick between generating a message or calling one or more tools. * `required` or "any" means the model must call one or more tools. * Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool. * * `none` is the default when no tools are present. `auto` is the default if tools are present. */ export type ChatCompletionToolChoiceOption = ChatCompletionNamedToolChoice | ChatCompletionToolChoiceOption1; /** @internal */ export declare const ChatCompletionToolChoiceOption1$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionToolChoiceOption1$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 ChatCompletionToolChoiceOption1$ { /** @deprecated use `ChatCompletionToolChoiceOption1$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly None: "none"; readonly Auto: "auto"; readonly Any: "any"; readonly Required: "required"; }>; /** @deprecated use `ChatCompletionToolChoiceOption1$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly None: "none"; readonly Auto: "auto"; readonly Any: "any"; readonly Required: "required"; }>; } /** @internal */ export declare const ChatCompletionToolChoiceOption$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionToolChoiceOption$Outbound = ChatCompletionNamedToolChoice$Outbound | string; /** @internal */ export declare const ChatCompletionToolChoiceOption$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 ChatCompletionToolChoiceOption$ { /** @deprecated use `ChatCompletionToolChoiceOption$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionToolChoiceOption$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionToolChoiceOption$Outbound` instead. */ type Outbound = ChatCompletionToolChoiceOption$Outbound; } export declare function chatCompletionToolChoiceOptionToJSON(chatCompletionToolChoiceOption: ChatCompletionToolChoiceOption): string; export declare function chatCompletionToolChoiceOptionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletiontoolchoiceoption.d.ts.map