import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { ChatCompletionMessageToolCallFunction, ChatCompletionMessageToolCallFunction$Outbound } from "./chatcompletionmessagetoolcallfunction.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The type of the tool. Currently, only `function` is supported. */ export declare const ChatCompletionMessageToolCallType: { readonly Function: "function"; }; /** * The type of the tool. Currently, only `function` is supported. */ export type ChatCompletionMessageToolCallType = ClosedEnum; export type ChatCompletionMessageToolCall = { /** * openai requires an index here, will default to zero since we can only return 1 call right now */ index?: number | undefined; /** * The ID of the tool call. */ id: string; /** * The type of the tool. Currently, only `function` is supported. */ type: ChatCompletionMessageToolCallType; function: ChatCompletionMessageToolCallFunction; }; /** @internal */ export declare const ChatCompletionMessageToolCallType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionMessageToolCallType$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 ChatCompletionMessageToolCallType$ { /** @deprecated use `ChatCompletionMessageToolCallType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; /** @deprecated use `ChatCompletionMessageToolCallType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; } /** @internal */ export declare const ChatCompletionMessageToolCall$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionMessageToolCall$Outbound = { index?: number | undefined; id: string; type: string; function: ChatCompletionMessageToolCallFunction$Outbound; }; /** @internal */ export declare const ChatCompletionMessageToolCall$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 ChatCompletionMessageToolCall$ { /** @deprecated use `ChatCompletionMessageToolCall$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCall$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCall$Outbound` instead. */ type Outbound = ChatCompletionMessageToolCall$Outbound; } export declare function chatCompletionMessageToolCallToJSON(chatCompletionMessageToolCall: ChatCompletionMessageToolCall): string; export declare function chatCompletionMessageToolCallFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionmessagetoolcall.d.ts.map