UNPKG

@arizeai/phoenix-client

Version:
1,012 lines 38.9 kB
import { z } from "zod"; import type { PromptProviderSDKs } from "../../types/prompts.js"; export declare const SDKProviderIdMap: Record<PromptProviderSDKs, string>; /** * SDK Provider Converter Map * * This map contains the converters for each SDK provider. * * If a "from" direction is not supported for a particular provider, you can set the schema to `z.unknown()`, * passing contents directly through, but forcing the caller to handle the unknown type. */ export declare const SDKProviderConverterMap: { OPENAI: import("./types.js").SDKConverters<z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; tool_call_id: z.ZodOptional<z.ZodString>; tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>>>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; tool_call_id: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"function">; content: z.ZodNullable<z.ZodString>; name: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>], "role">, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "type">, z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; strict: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$loose>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; schema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$strip>; }, z.core.$strip>>; AZURE_OPENAI: import("./types.js").SDKConverters<z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; tool_call_id: z.ZodOptional<z.ZodString>; tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>>>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; tool_call_id: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"function">; content: z.ZodNullable<z.ZodString>; name: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>], "role">, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "type">, z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; strict: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$loose>; }, z.core.$loose>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; schema: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$strip>; }, z.core.$strip>>; ANTHROPIC: import("./types.js").SDKConverters<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; tool_call_id: z.ZodOptional<z.ZodString>; tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>>>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; tool_call_id: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"function">; content: z.ZodNullable<z.ZodString>; name: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>], "role">, z.ZodTransform<{ [x: string]: unknown; role: "user" | "assistant"; content: string | ({ id: string; type: "tool_use"; name: string; input: import("../jsonLiteralSchema.js").JSONLiteral; } | { type: "text"; text: string; } | { type: "image"; source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; } | { type: "tool_result"; tool_use_id: string; content: string | ({ type: "text"; text: string; } | { type: "image"; source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; })[]; is_error?: boolean | undefined; })[]; }, { [x: string]: unknown; role: "assistant"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; tool_call_id?: string | undefined; tool_calls?: { type: "function"; id: string; function: { [x: string]: unknown; name: string; arguments: string; }; }[] | undefined; } | { [x: string]: unknown; role: "tool"; content: string | { type: "text"; text: string; }[]; tool_call_id: string; } | { [x: string]: unknown; role: "function"; content: string | null; name: string; } | { [x: string]: unknown; role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; })[]; name?: string | undefined; } | { [x: string]: unknown; role: "system"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; } | { [x: string]: unknown; role: "developer"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; }>>, z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "type">, z.ZodTransform<{ type: "text"; text: string; source?: undefined; } | { type: "image"; source: { data: string; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; type: "base64"; }; text?: undefined; } | null, { type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; }>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodTransform<{ type: "tool"; name: string; } | { type: "auto"; } | { type: "any"; }, "none" | "auto" | "required" | { type: "function"; function: { name: string; }; }>>, z.ZodPipe<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>, z.ZodTransform<{ id: string; type: "tool_use"; name: string; input: import("../jsonLiteralSchema.js").JSONLiteral; }, { type: "function"; id: string; function: { [x: string]: unknown; name: string; arguments: string; }; }>>, z.ZodPipe<z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; strict: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$loose>; }, z.core.$loose>, z.ZodTransform<{ name: string; description: string; input_schema: { [x: string]: unknown; type: "object"; properties: Record<string, { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; } | { anyOf: { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; }[]; }>; required?: string[] | undefined; additionalProperties?: boolean | undefined; }; }, { [x: string]: unknown; type: "function"; function: { [x: string]: unknown; name: string; parameters: { [x: string]: unknown; type: "object"; properties: Record<string, { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; } | { anyOf: { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; }[]; }>; required?: string[] | undefined; additionalProperties?: boolean | undefined; strict?: boolean | undefined; }; description?: string | undefined; }; }>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>; PHOENIX: import("./types.js").SDKConverters<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; tool_call_id: z.ZodOptional<z.ZodString>; tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>>>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; tool_call_id: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"function">; content: z.ZodNullable<z.ZodString>; name: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>], "role">, z.ZodTransform<{ role: "user" | "assistant" | "model" | "ai" | "tool" | "system" | "developer"; content: string | ({ type: "text"; text: string; } | { type: "tool_call"; tool_call_id: string; tool_call: { type: "function"; name: string; arguments: string; }; } | { type: "tool_result"; tool_call_id: string; tool_result: string | number | boolean | unknown[] | Record<string, unknown> | null; })[]; }, { [x: string]: unknown; role: "assistant"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; tool_call_id?: string | undefined; tool_calls?: { type: "function"; id: string; function: { [x: string]: unknown; name: string; arguments: string; }; }[] | undefined; } | { [x: string]: unknown; role: "tool"; content: string | { type: "text"; text: string; }[]; tool_call_id: string; } | { [x: string]: unknown; role: "function"; content: string | null; name: string; } | { [x: string]: unknown; role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; })[]; name?: string | undefined; } | { [x: string]: unknown; role: "system"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; } | { [x: string]: unknown; role: "developer"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; }>>, z.ZodUnknown, z.ZodUnknown, z.ZodUnknown, z.ZodUnknown, z.ZodUnknown>; VERCEL_AI: import("./types.js").SDKConverters<z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodLiteral<"assistant">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; tool_call_id: z.ZodOptional<z.ZodString>; tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodPipe<z.ZodOptional<z.ZodLiteral<"function">>, z.ZodTransform<"function", "function" | undefined>>; id: z.ZodString; function: z.ZodObject<{ name: z.ZodString; arguments: z.ZodString; }, z.core.$loose>; }, z.core.$strip>>>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"tool">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; tool_call_id: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"function">; content: z.ZodNullable<z.ZodString>; name: z.ZodString; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"user">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image_url">; image_url: z.ZodObject<{ url: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"system">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>, z.ZodObject<{ role: z.ZodLiteral<"developer">; content: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>>, z.ZodString]>; name: z.ZodOptional<z.ZodString>; }, z.core.$loose>], "role">, z.ZodTransform<{ role: "system"; content: string; } | { role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image"; image: string; mimeType?: string | undefined; })[]; } | { role: "assistant"; content: string | ({ type: "text"; text: string; } | { type: "tool-call"; toolCallId: string; toolName: string; input: import("../jsonLiteralSchema.js").JSONLiteral; })[]; } | { role: "tool"; content: { type: "tool-result"; toolCallId: string; toolName: string; output: { type: "text"; value: string; }; }[]; }, { [x: string]: unknown; role: "assistant"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; tool_call_id?: string | undefined; tool_calls?: { type: "function"; id: string; function: { [x: string]: unknown; name: string; arguments: string; }; }[] | undefined; } | { [x: string]: unknown; role: "tool"; content: string | { type: "text"; text: string; }[]; tool_call_id: string; } | { [x: string]: unknown; role: "function"; content: string | null; name: string; } | { [x: string]: unknown; role: "user"; content: string | ({ type: "text"; text: string; } | { type: "image_url"; image_url: { url: string; }; })[]; name?: string | undefined; } | { [x: string]: unknown; role: "system"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; } | { [x: string]: unknown; role: "developer"; content: string | { type: "text"; text: string; }[]; name?: string | undefined; }>>, z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"image">; image: z.ZodString; mimeType: z.ZodOptional<z.ZodString>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool-call">; toolCallId: z.ZodString; toolName: z.ZodString; input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../jsonLiteralSchema.js").JSONLiteral, unknown>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool-result">; toolCallId: z.ZodString; toolName: z.ZodString; output: z.ZodObject<{ type: z.ZodLiteral<"text">; value: z.ZodString; }, z.core.$strip>; }, z.core.$strip>], "type">, z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodTransform<"none" | "auto" | "required" | { type: "tool"; toolName: string; }, "none" | "auto" | "required" | { type: "function"; function: { name: string; }; }>>, z.ZodObject<{ type: z.ZodLiteral<"tool-call">; toolCallId: z.ZodString; toolName: z.ZodString; input: z.ZodType<import("../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../jsonLiteralSchema.js").JSONLiteral, unknown>>; }, z.core.$strip>, z.ZodPipe<z.ZodObject<{ type: z.ZodLiteral<"function">; function: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; parameters: z.ZodObject<{ type: z.ZodLiteral<"object">; properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>, z.ZodObject<{ anyOf: z.ZodArray<z.ZodObject<{ type: z.ZodEnum<{ string: "string"; number: "number"; boolean: "boolean"; object: "object"; null: "null"; array: "array"; integer: "integer"; }>; description: z.ZodOptional<z.ZodString>; enum: z.ZodOptional<z.ZodArray<z.ZodString>>; }, z.core.$loose>>; }, z.core.$strip>]>>; required: z.ZodOptional<z.ZodArray<z.ZodString>>; additionalProperties: z.ZodOptional<z.ZodBoolean>; strict: z.ZodOptional<z.ZodBoolean>; }, z.core.$loose>; }, z.core.$loose>; }, z.core.$loose>, z.ZodTransform<{ type: "function"; inputSchema: { _type: unknown; validate: unknown; jsonSchema?: Record<string, unknown> | undefined; }; description?: string | undefined; }, { [x: string]: unknown; type: "function"; function: { [x: string]: unknown; name: string; parameters: { [x: string]: unknown; type: "object"; properties: Record<string, { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; } | { anyOf: { [x: string]: unknown; type: "string" | "number" | "boolean" | "object" | "null" | "array" | "integer"; description?: string | undefined; enum?: string[] | undefined; }[]; }>; required?: string[] | undefined; additionalProperties?: boolean | undefined; strict?: boolean | undefined; }; description?: string | undefined; }; }>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>; }; //# sourceMappingURL=constants.d.ts.map