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 ChatCompletionMessageToolCallChunkType: { readonly Function: "function"; }; /** * The type of the tool. Currently, only `function` is supported. */ export type ChatCompletionMessageToolCallChunkType = ClosedEnum; export type ChatCompletionMessageToolCallChunkFunction = ChatCompletionMessageToolCallFunction | string; export type ChatCompletionMessageToolCallChunk = { index: number; /** * The ID of the tool call. */ id?: string | undefined; /** * The type of the tool. Currently, only `function` is supported. */ type?: ChatCompletionMessageToolCallChunkType | undefined; function?: ChatCompletionMessageToolCallFunction | string | undefined; }; /** @internal */ export declare const ChatCompletionMessageToolCallChunkType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ChatCompletionMessageToolCallChunkType$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 ChatCompletionMessageToolCallChunkType$ { /** @deprecated use `ChatCompletionMessageToolCallChunkType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; /** @deprecated use `ChatCompletionMessageToolCallChunkType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Function: "function"; }>; } /** @internal */ export declare const ChatCompletionMessageToolCallChunkFunction$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionMessageToolCallChunkFunction$Outbound = ChatCompletionMessageToolCallFunction$Outbound | string; /** @internal */ export declare const ChatCompletionMessageToolCallChunkFunction$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 ChatCompletionMessageToolCallChunkFunction$ { /** @deprecated use `ChatCompletionMessageToolCallChunkFunction$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCallChunkFunction$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCallChunkFunction$Outbound` instead. */ type Outbound = ChatCompletionMessageToolCallChunkFunction$Outbound; } export declare function chatCompletionMessageToolCallChunkFunctionToJSON(chatCompletionMessageToolCallChunkFunction: ChatCompletionMessageToolCallChunkFunction): string; export declare function chatCompletionMessageToolCallChunkFunctionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ChatCompletionMessageToolCallChunk$inboundSchema: z.ZodType; /** @internal */ export type ChatCompletionMessageToolCallChunk$Outbound = { index: number; id?: string | undefined; type?: string | undefined; function?: ChatCompletionMessageToolCallFunction$Outbound | string | undefined; }; /** @internal */ export declare const ChatCompletionMessageToolCallChunk$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 ChatCompletionMessageToolCallChunk$ { /** @deprecated use `ChatCompletionMessageToolCallChunk$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCallChunk$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ChatCompletionMessageToolCallChunk$Outbound` instead. */ type Outbound = ChatCompletionMessageToolCallChunk$Outbound; } export declare function chatCompletionMessageToolCallChunkToJSON(chatCompletionMessageToolCallChunk: ChatCompletionMessageToolCallChunk): string; export declare function chatCompletionMessageToolCallChunkFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chatcompletionmessagetoolcallchunk.d.ts.map