UNPKG

@adaline/google

Version:
1,487 lines (1,477 loc) 196 kB
import * as zod from 'zod'; import { z } from 'zod'; import { ChatModelSchemaType, ChatModelV1, UrlType, HeadersType, ParamsType, EmbeddingModelSchemaType, EmbeddingModelV1, ProviderV1 } from '@adaline/provider'; import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, ChatModelPriceType, EmbeddingRequestsType, EmbeddingResponseType } from '@adaline/types'; declare const GoogleChatModelConfigs: { readonly base: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => { def: { readonly temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; readonly topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; readonly safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; readonly googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; schema: zod.ZodObject<{ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; safetySettings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }, "strip", zod.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; }>; }; readonly responseSchema: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => { def: { responseFormat: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseSchema: { type: "object-schema"; param: string; title: string; description: string; objectSchema?: any; }; temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; schema: zod.ZodObject<zod.objectUtil.extendShape<{ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; safetySettings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }, { responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>>; }>, "strip", zod.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; }>; }; readonly reasoning: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number, minReasoningToken: number, maxReasoningToken: number) => { def: { reasoningEnabled: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; maxReasoningTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; reasoningEffort: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseFormat: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseSchema: { type: "object-schema"; param: string; title: string; description: string; objectSchema?: any; }; temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; schema: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; safetySettings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }, { responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>>; }>, { reasoningEnabled: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; maxReasoningTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; }>, "strip", zod.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; reasoningEnabled?: boolean | null | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; maxReasoningTokens?: number | undefined; reasoningEffort?: string | null | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; reasoningEnabled?: boolean | null | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; maxReasoningTokens?: number | undefined; reasoningEffort?: string | null | undefined; }>; }; }; declare const GoogleEmbeddingModelConfigs: { readonly base: (maxDimensions: number) => { def: { readonly dimensions: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; }; schema: zod.ZodObject<{ dimensions: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }, "strip", zod.ZodTypeAny, { dimensions?: number | undefined; }, { dimensions?: number | undefined; }>; }; }; declare const ChatModelBaseConfigSchema: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => z.ZodObject<{ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; stop: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>; topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; toolChoice: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>; safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<z.ZodRawShape, "strip", z.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>; }, "strip", z.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; }>; declare const ChatModelBaseConfigDef: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => { readonly temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; readonly topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; readonly toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; readonly safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; readonly googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; declare const GOOGLE_SAFETY_CATEGORIES: readonly ["HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_CIVIC_INTEGRITY"]; declare const GOOGLE_SAFETY_THRESHOLDS: readonly ["HARM_BLOCK_THRESHOLD_UNSPECIFIED", "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE", "OFF"]; declare const GOOGLE_SAFETY_CATEGORY_OPTIONS: { value: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY"; label: string; }[]; declare const GOOGLE_SAFETY_THRESHOLD_OPTIONS: { value: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF"; label: string; }[]; declare const temperature: (max: number, _default: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const maxTokens: (maxOutputTokens: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const stop: (maxSequences: number) => { def: { type: "multi-string"; param: string; title: string; description: string; max: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; }; declare const topP: (_default: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const topK: (_default: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const frequencyPenalty: { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const presencePenalty: { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const seed: { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const toolChoice: { def: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; }; declare const safetySettings: { def: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; schema: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; }; declare const reasoningEnabled: { def: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }; declare const maxReasoningTokens: (minReasoningToken: number, maxReasoningToken: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const reasoningEffort: { def: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; }; declare const googleSearchTool: { def: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }; declare const ChatModelReasoningConfigSchema: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number, minReasoningToken: number, maxReasoningToken: number) => zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; safetySettings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }, { responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>>; }>, { reasoningEnabled: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; maxReasoningTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; }>, "strip", zod.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; reasoningEnabled?: boolean | null | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; maxReasoningTokens?: number | undefined; reasoningEffort?: string | null | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; reasoningEnabled?: boolean | null | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; maxReasoningTokens?: number | undefined; reasoningEffort?: string | null | undefined; }>; declare const ChatModelReasoningConfigDef: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number, minReasoningToken: number, maxReasoningToken: number) => { reasoningEnabled: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; maxReasoningTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; reasoningEffort: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseFormat: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseSchema: { type: "object-schema"; param: string; title: string; description: string; objectSchema?: any; }; temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; declare const GoogleChatModelResponseSchemaConfigDef: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => { responseFormat: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; responseSchema: { type: "object-schema"; param: string; title: string; description: string; objectSchema?: any; }; temperature: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; maxTokens: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; stop: { type: "multi-string"; param: string; title: string; description: string; max: number; }; topP: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; toolChoice: { type: "select-string"; param: string; title: string; description: string; default: string; choices: string[]; }; safetySettings: { type: "paired-select"; param: string; title: string; description: string; fields: [{ label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }, { label: string; key: string; choices: { value: string; label: string; }[]; description?: string | undefined; }]; uniqueByField?: string | undefined; }; googleSearchTool: { type: "select-boolean"; param: string; title: string; description: string; default: boolean | null; }; }; declare const GoogleChatModelResponseSchemaConfigSchema: (maxTemperature: number, defaultTemperature: number, maxOutputTokens: number, maxSequences: number, defaultTopP: number) => zod.ZodObject<zod.objectUtil.extendShape<{ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>; topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; safetySettings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<zod.ZodRawShape, "strip", zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>, "many">>; googleSearchTool: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>; }, { responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>; responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, { [x: string]: any; }, { [x: string]: any; }>>; }>, "strip", zod.ZodTypeAny, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; }, { toolChoice?: string | null | undefined; safetySettings?: { [x: string]: any; }[] | undefined; temperature?: number | undefined; topP?: number | undefined; maxTokens?: number | undefined; stop?: string[] | undefined; googleSearchTool?: boolean | null | undefined; responseFormat?: string | null | undefined; responseSchema?: { [x: string]: any; } | undefined; }>; declare const EmbeddingModelBaseConfigSchema: (maxDimensions: number) => z.ZodObject<{ dimensions: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { dimensions?: number | undefined; }, { dimensions?: number | undefined; }>; declare const EmbeddingModelBaseConfigDef: (maxDimensions: number) => { readonly dimensions: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; }; declare const dimensions: (maxDimensions: number) => { def: { type: "range"; param: string; title: string; description: string; max: number; default: number; min: number; step: number; }; schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>; }; declare const GoogleChatModelRoles: z.ZodEnum<["system", "user", "assistant", "tool"]>; declare const GoogleChatAssistantRoleLiteral = "model"; declare const GoogleChatToolRoleLiteral = "function"; declare const GoogleChatModelRolesMap: { readonly system: "user"; readonly user: "user"; readonly assistant: "model"; readonly tool: "function"; }; declare const GoogleChatModelModalities: ChatModelSchemaType["modalities"]; declare const GoogleChatModelModalitiesEnum: z.ZodEnum<["text", "image", "pdf", "tool-call", "tool-response", "reasoning", "search-result", "error"]>; declare const GoogleChatModelTextModalities: ChatModelSchemaType["modalities"]; declare const GoogleChatModelTextModalitiesEnum: z.ZodEnum<["text"]>; declare const GoogleChatModelTextVisionModalities: ChatModelSchemaType["modalities"]; declare const GoogleChatModelTextVisionModalitiesEnum: z.ZodEnum<["text", "image"]>; declare const GoogleChatModelTextToolModalities: ChatModelSchemaType["modalities"]; declare const GoogleChatModelTextToolModalitiesEnum: z.ZodEnum<["text", "tool-call", "tool-response"]>; declare const GoogleSearchEntryPoint: z.ZodObject<{ renderedContent: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { renderedContent?: string | undefined; }, { renderedContent?: string | undefined; }>; type GoogleSearchEntryPointType = z.infer<typeof GoogleSearchEntryPoint>; declare const GoogleGroundingChunkWeb: z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; uri?: string | undefined; }, { title?: string | undefined; uri?: string | undefined; }>; type GoogleGroundingChunkWebType = z.infer<typeof GoogleGroundingChunkWeb>; declare const GoogleGroundingChunk: z.ZodObject<{ web: z.ZodOptional<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; uri?: string | undefined; }, { title?: string | undefined; uri?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }>; type GoogleGroundingChunkType = z.infer<typeof GoogleGroundingChunk>; declare const GoogleSegment: z.ZodObject<{ startIndex: z.ZodOptional<z.ZodNumber>; endIndex: z.ZodOptional<z.ZodNumber>; text: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }>; type GoogleSegmentType = z.infer<typeof GoogleSegment>; declare const GoogleGroundingSupport: z.ZodObject<{ segment: z.ZodOptional<z.ZodObject<{ startIndex: z.ZodOptional<z.ZodNumber>; endIndex: z.ZodOptional<z.ZodNumber>; text: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }>>; groundingChunkIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }, { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }>; type GoogleGroundingSupportType = z.infer<typeof GoogleGroundingSupport>; declare const GoogleGroundingMetadata: z.ZodObject<{ searchEntryPoint: z.ZodOptional<z.ZodObject<{ renderedContent: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { renderedContent?: string | undefined; }, { renderedContent?: string | undefined; }>>; groundingChunks: z.ZodOptional<z.ZodArray<z.ZodObject<{ web: z.ZodOptional<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; uri?: string | undefined; }, { title?: string | undefined; uri?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }>, "many">>; groundingSupports: z.ZodOptional<z.ZodArray<z.ZodObject<{ segment: z.ZodOptional<z.ZodObject<{ startIndex: z.ZodOptional<z.ZodNumber>; endIndex: z.ZodOptional<z.ZodNumber>; text: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }, { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; }>>; groundingChunkIndices: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; confidenceScores: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }, { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }>, "many">>; webSearchQueries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { searchEntryPoint?: { renderedContent?: string | undefined; } | undefined; groundingChunks?: { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }[] | undefined; groundingSupports?: { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }[] | undefined; webSearchQueries?: string[] | undefined; }, { searchEntryPoint?: { renderedContent?: string | undefined; } | undefined; groundingChunks?: { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }[] | undefined; groundingSupports?: { segment?: { text?: string | undefined; startIndex?: number | undefined; endIndex?: number | undefined; } | undefined; groundingChunkIndices?: number[] | undefined; confidenceScores?: number[] | undefined; }[] | undefined; webSearchQueries?: string[] | undefined; }>; type GoogleGroundingMetadataType = z.infer<typeof GoogleGroundingMetadata>; declare const GoogleCompleteChatTextResponse: z.ZodObject<{ text: z.ZodString; thought: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { text: string; thought?: boolean | undefined; }, { text: string; thought?: boolean | undefined; }>; declare const GoogleCompleteChatToolResponse: z.ZodObject<{ functionCall: z.ZodObject<{ name: z.ZodString; args: z.ZodRecord<z.ZodString, z.ZodAny>; }, "strip", z.ZodTypeAny, { name: string; args: Record<string, any>; }, { name: string; args: Record<string, any>; }>; thoughtSignature: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; }, { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; }>; declare const GoogleCompleteChatResponse: z.ZodObject<{ candidates: z.ZodArray<z.ZodObject<{ content: z.ZodOptional<z.ZodObject<{ role: z.ZodString; parts: z.ZodArray<z.ZodUnion<[z.ZodObject<{ text: z.ZodString; thought: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { text: string; thought?: boolean | undefined; }, { text: string; thought?: boolean | undefined; }>, z.ZodObject<{ functionCall: z.ZodObject<{ name: z.ZodString; args: z.ZodRecord<z.ZodString, z.ZodAny>; }, "strip", z.ZodTypeAny, { name: string; args: Record<string, any>; }, { name: string; args: Record<string, any>; }>; thoughtSignature: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; }, { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; }>]>, "many">; }, "strip", z.ZodTypeAny, { role: string; parts: ({ text: string; thought?: boolean | undefined; } | { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; })[]; }, { role: string; parts: ({ text: string; thought?: boolean | undefined; } | { functionCall: { name: string; args: Record<string, any>; }; thoughtSignature?: string | undefined; })[]; }>>; finishReason: z.ZodString; index: z.ZodOptional<z.ZodNumber>; safetyRatings: z.ZodOptional<z.ZodArray<z.ZodObject<{ category: z.ZodString; probability: z.ZodString; blocked: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { category: string; probability: string; blocked?: boolean | undefined; }, { category: string; probability: string; blocked?: boolean | undefined; }>, "many">>; groundingMetadata: z.ZodOptional<z.ZodObject<{ searchEntryPoint: z.ZodOptional<z.ZodObject<{ renderedContent: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { renderedContent?: string | undefined; }, { renderedContent?: string | undefined; }>>; groundingChunks: z.ZodOptional<z.ZodArray<z.ZodObject<{ web: z.ZodOptional<z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; title: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { title?: string | undefined; uri?: string | undefined; }, { title?: string | undefined; uri?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }, { web?: { title?: string | undefined; uri?: string | undefined; } | undefined; }>, "many">>; groundi