Arize Phoenix TS
    Preparing search index...
    SDKProviderConverterMap: {
        ANTHROPIC: SDKConverters<
            ZodPipe<
                ZodDiscriminatedUnion<
                    [
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                name: ZodOptional<ZodString>;
                                role: ZodLiteral<"assistant">;
                                tool_call_id: ZodOptional<ZodString>;
                                tool_calls: ZodOptional<
                                    ZodArray<
                                        ZodObject<{ function: ...; id: ...; type: ... }, $strip>,
                                    >,
                                >;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                role: ZodLiteral<"tool">;
                                tool_call_id: ZodString;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodNullable<ZodString>;
                                name: ZodString;
                                role: ZodLiteral<"function">;
                            },
                            $loose,
                        >,
                    ],
                    "role",
                >,
                ZodTransform<
                    {
                        content: | string
                        | (
                            | {
                                id: string;
                                input: JSONLiteral;
                                name: string;
                                type: "tool_use";
                            }
                            | { text: string; type: "text" }
                            | {
                                source: {
                                    data: string;
                                    media_type: (...) | (...) | (...) | (...);
                                    type: "base64";
                                };
                                type: "image";
                            }
                            | {
                                content: string
                                | (...)[];
                                is_error?: boolean;
                                tool_use_id: string;
                                type: "tool_result";
                            }
                        )[];
                        role: "user"
                        | "assistant";
                        [key: string]: unknown;
                    },
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "assistant";
                        tool_call_id?: string;
                        tool_calls?: {
                            function: {
                                arguments: string;
                                name: string;
                                [key: string]: unknown;
                            };
                            id: string;
                            type: "function";
                        }[];
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        role: "tool";
                        tool_call_id: string;
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | null;
                        name: string;
                        role: "function";
                        [key: string]: unknown;
                    }
                    | {
                        content: | string
                        | (
                            | { text: string; type: "text" }
                            | { image_url: { url: ... }; type: "image_url" }
                        )[];
                        name?: string;
                        role: "user";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "system";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "developer";
                        [key: string]: unknown;
                    },
                >,
            >,
            ZodPipe<
                ZodDiscriminatedUnion<
                    [
                        ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                        ZodObject<
                            {
                                image_url: ZodObject<{ url: ZodString }, $strip>;
                                type: ZodLiteral<"image_url">;
                            },
                            $strip,
                        >,
                    ],
                    "type",
                >,
                ZodTransform<
                    | { source?: undefined; text: string; type: "text" }
                    | {
                        source: {
                            data: string;
                            media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
                            type: "base64";
                        };
                        text?: undefined;
                        type: "image";
                    }
                    | null,
                    | { text: string; type: "text" }
                    | { image_url: { url: string }; type: "image_url" },
                >,
            >,
            ZodPipe<
                ZodUnion<
                    readonly [
                        ZodLiteral<"auto">,
                        ZodLiteral<"none">,
                        ZodLiteral<"required">,
                        ZodObject<
                            {
                                function: ZodObject<{ name: ZodString }, $strip>;
                                type: ZodLiteral<"function">;
                            },
                            $strip,
                        >,
                    ],
                >,
                ZodTransform<
                    { name: string; type: "tool" }
                    | { type: "auto" }
                    | { type: "any" },

                        | "none"
                        | "auto"
                        | "required"
                        | { function: { name: string }; type: "function" },
                >,
            >,
            ZodPipe<
                ZodObject<
                    {
                        function: ZodObject<
                            { arguments: ZodString; name: ZodString },
                            $loose,
                        >;
                        id: ZodString;
                        type: ZodPipe<
                            ZodOptional<ZodLiteral<"function">>,
                            ZodTransform<"function", "function" | undefined>,
                        >;
                    },
                    $strip,
                >,
                ZodTransform<
                    { id: string; input: JSONLiteral; name: string; type: "tool_use" },
                    {
                        function: {
                            arguments: string;
                            name: string;
                            [key: string]: unknown;
                        };
                        id: string;
                        type: "function";
                    },
                >,
            >,
            ZodPipe<
                ZodObject<
                    {
                        function: ZodObject<
                            {
                                description: ZodOptional<ZodString>;
                                name: ZodString;
                                parameters: ZodObject<
                                    {
                                        additionalProperties: ZodOptional<ZodBoolean>;
                                        properties: ZodRecord<ZodString, ZodUnion<(...)>>;
                                        required: ZodOptional<ZodArray<(...)>>;
                                        strict: ZodOptional<ZodBoolean>;
                                        type: ZodLiteral<"object">;
                                    },
                                    $loose,
                                >;
                            },
                            $loose,
                        >;
                        type: ZodLiteral<"function">;
                    },
                    $loose,
                >,
                ZodTransform<
                    {
                        description: string;
                        input_schema: {
                            additionalProperties?: boolean;
                            properties: Record<
                                string,
                                | {
                                    description?: string;
                                    enum?: (...)[];
                                    type:
                                        | "string"
                                        | "number"
                                        | "boolean"
                                        | "object"
                                        | "null"
                                        | "array"
                                        | "integer";
                                    [key: string]: unknown;
                                }
                                | {
                                    anyOf: {
                                        description?: ...;
                                        enum?: ...;
                                        type: ...;
                                        [key: ...]: ...;
                                    }[];
                                },
                            >;
                            required?: string[];
                            type: "object";
                            [key: string]: unknown;
                        };
                        name: string;
                    },
                    {
                        function: {
                            description?: string;
                            name: string;
                            parameters: {
                                additionalProperties?: boolean;
                                properties: Record<
                                    string,
                                    | {
                                        description?: (...)
                                        | (...);
                                        enum?: (...) | (...);
                                        type: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                        [key: string]: unknown;
                                    }
                                    | { anyOf: (...)[] },
                                >;
                                required?: string[];
                                strict?: boolean;
                                type: "object";
                                [key: string]: unknown;
                            };
                            [key: string]: unknown;
                        };
                        type: "function";
                        [key: string]: unknown;
                    },
                >,
            >,
            ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
        >;
        AZURE_OPENAI: SDKConverters<
            ZodDiscriminatedUnion<
                [
                    ZodObject<
                        {
                            content: ZodUnion<
                                readonly [
                                    ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                    ZodString,
                                ],
                            >;
                            name: ZodOptional<ZodString>;
                            role: ZodLiteral<"assistant">;
                            tool_call_id: ZodOptional<ZodString>;
                            tool_calls: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            function: ZodObject<(...), (...)>;
                                            id: ZodString;
                                            type: ZodPipe<(...), (...)>;
                                        },
                                        $strip,
                                    >,
                                >,
                            >;
                        },
                        $loose,
                    >,
                    ZodObject<
                        {
                            content: ZodUnion<
                                readonly [
                                    ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                    ZodString,
                                ],
                            >;
                            role: ZodLiteral<"tool">;
                            tool_call_id: ZodString;
                        },
                        $loose,
                    >,
                    ZodObject<
                        {
                            content: ZodNullable<ZodString>;
                            name: ZodString;
                            role: ZodLiteral<"function">;
                        },
                        $loose,
                    >,
                ],
                "role",
            >,
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                    ZodObject<
                        {
                            image_url: ZodObject<{ url: ZodString }, $strip>;
                            type: ZodLiteral<"image_url">;
                        },
                        $strip,
                    >,
                ],
                "type",
            >,
            ZodUnion<
                readonly [
                    ZodLiteral<"auto">,
                    ZodLiteral<"none">,
                    ZodLiteral<"required">,
                    ZodObject<
                        {
                            function: ZodObject<{ name: ZodString }, $strip>;
                            type: ZodLiteral<"function">;
                        },
                        $strip,
                    >,
                ],
            >,
            ZodObject<
                {
                    function: ZodObject<
                        { arguments: ZodString; name: ZodString },
                        $loose,
                    >;
                    id: ZodString;
                    type: ZodPipe<
                        ZodOptional<ZodLiteral<"function">>,
                        ZodTransform<"function", "function" | undefined>,
                    >;
                },
                $strip,
            >,
            ZodObject<
                {
                    function: ZodObject<
                        {
                            description: ZodOptional<ZodString>;
                            name: ZodString;
                            parameters: ZodObject<
                                {
                                    additionalProperties: ZodOptional<ZodBoolean>;
                                    properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                    required: ZodOptional<ZodArray<ZodString>>;
                                    strict: ZodOptional<ZodBoolean>;
                                    type: ZodLiteral<"object">;
                                },
                                $loose,
                            >;
                        },
                        $loose,
                    >;
                    type: ZodLiteral<"function">;
                },
                $loose,
            >,
            ZodObject<
                {
                    json_schema: ZodObject<
                        {
                            description: ZodOptional<ZodString>;
                            name: ZodString;
                            schema: ZodObject<
                                {
                                    additionalProperties: ZodOptional<ZodBoolean>;
                                    properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                    required: ZodOptional<ZodArray<ZodString>>;
                                    type: ZodLiteral<"object">;
                                },
                                $loose,
                            >;
                        },
                        $strip,
                    >;
                    type: ZodLiteral<"json_schema">;
                },
                $strip,
            >,
        >;
        OPENAI: SDKConverters<
            ZodDiscriminatedUnion<
                [
                    ZodObject<
                        {
                            content: ZodUnion<
                                readonly [
                                    ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                    ZodString,
                                ],
                            >;
                            name: ZodOptional<ZodString>;
                            role: ZodLiteral<"assistant">;
                            tool_call_id: ZodOptional<ZodString>;
                            tool_calls: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            function: ZodObject<(...), (...)>;
                                            id: ZodString;
                                            type: ZodPipe<(...), (...)>;
                                        },
                                        $strip,
                                    >,
                                >,
                            >;
                        },
                        $loose,
                    >,
                    ZodObject<
                        {
                            content: ZodUnion<
                                readonly [
                                    ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                    ZodString,
                                ],
                            >;
                            role: ZodLiteral<"tool">;
                            tool_call_id: ZodString;
                        },
                        $loose,
                    >,
                    ZodObject<
                        {
                            content: ZodNullable<ZodString>;
                            name: ZodString;
                            role: ZodLiteral<"function">;
                        },
                        $loose,
                    >,
                ],
                "role",
            >,
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                    ZodObject<
                        {
                            image_url: ZodObject<{ url: ZodString }, $strip>;
                            type: ZodLiteral<"image_url">;
                        },
                        $strip,
                    >,
                ],
                "type",
            >,
            ZodUnion<
                readonly [
                    ZodLiteral<"auto">,
                    ZodLiteral<"none">,
                    ZodLiteral<"required">,
                    ZodObject<
                        {
                            function: ZodObject<{ name: ZodString }, $strip>;
                            type: ZodLiteral<"function">;
                        },
                        $strip,
                    >,
                ],
            >,
            ZodObject<
                {
                    function: ZodObject<
                        { arguments: ZodString; name: ZodString },
                        $loose,
                    >;
                    id: ZodString;
                    type: ZodPipe<
                        ZodOptional<ZodLiteral<"function">>,
                        ZodTransform<"function", "function" | undefined>,
                    >;
                },
                $strip,
            >,
            ZodObject<
                {
                    function: ZodObject<
                        {
                            description: ZodOptional<ZodString>;
                            name: ZodString;
                            parameters: ZodObject<
                                {
                                    additionalProperties: ZodOptional<ZodBoolean>;
                                    properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                    required: ZodOptional<ZodArray<ZodString>>;
                                    strict: ZodOptional<ZodBoolean>;
                                    type: ZodLiteral<"object">;
                                },
                                $loose,
                            >;
                        },
                        $loose,
                    >;
                    type: ZodLiteral<"function">;
                },
                $loose,
            >,
            ZodObject<
                {
                    json_schema: ZodObject<
                        {
                            description: ZodOptional<ZodString>;
                            name: ZodString;
                            schema: ZodObject<
                                {
                                    additionalProperties: ZodOptional<ZodBoolean>;
                                    properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                    required: ZodOptional<ZodArray<ZodString>>;
                                    type: ZodLiteral<"object">;
                                },
                                $loose,
                            >;
                        },
                        $strip,
                    >;
                    type: ZodLiteral<"json_schema">;
                },
                $strip,
            >,
        >;
        PHOENIX: SDKConverters<
            ZodPipe<
                ZodDiscriminatedUnion<
                    [
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                name: ZodOptional<ZodString>;
                                role: ZodLiteral<"assistant">;
                                tool_call_id: ZodOptional<ZodString>;
                                tool_calls: ZodOptional<
                                    ZodArray<
                                        ZodObject<{ function: ...; id: ...; type: ... }, $strip>,
                                    >,
                                >;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                role: ZodLiteral<"tool">;
                                tool_call_id: ZodString;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodNullable<ZodString>;
                                name: ZodString;
                                role: ZodLiteral<"function">;
                            },
                            $loose,
                        >,
                    ],
                    "role",
                >,
                ZodTransform<
                    {
                        content: | string
                        | (
                            | { text: string; type: "text" }
                            | {
                                tool_call: { arguments: string; name: string; type: "function" };
                                tool_call_id: string;
                                type: "tool_call";
                            }
                            | {
                                tool_call_id: string;
                                tool_result: | string
                                | number
                                | boolean
                                | (...)[]
                                | Record<(...), (...)>
                                | null;
                                type: "tool_result";
                            }
                        )[];
                        role: | "user"
                        | "assistant"
                        | "model"
                        | "ai"
                        | "tool"
                        | "system"
                        | "developer";
                    },
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "assistant";
                        tool_call_id?: string;
                        tool_calls?: {
                            function: {
                                arguments: string;
                                name: string;
                                [key: string]: unknown;
                            };
                            id: string;
                            type: "function";
                        }[];
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        role: "tool";
                        tool_call_id: string;
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | null;
                        name: string;
                        role: "function";
                        [key: string]: unknown;
                    }
                    | {
                        content: | string
                        | (
                            | { text: string; type: "text" }
                            | { image_url: { url: ... }; type: "image_url" }
                        )[];
                        name?: string;
                        role: "user";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "system";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "developer";
                        [key: string]: unknown;
                    },
                >,
            >,
            ZodUnknown,
            ZodUnknown,
            ZodUnknown,
            ZodUnknown,
            ZodUnknown,
        >;
        VERCEL_AI: SDKConverters<
            ZodPipe<
                ZodDiscriminatedUnion<
                    [
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                name: ZodOptional<ZodString>;
                                role: ZodLiteral<"assistant">;
                                tool_call_id: ZodOptional<ZodString>;
                                tool_calls: ZodOptional<
                                    ZodArray<
                                        ZodObject<{ function: ...; id: ...; type: ... }, $strip>,
                                    >,
                                >;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodUnion<
                                    readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                                >;
                                role: ZodLiteral<"tool">;
                                tool_call_id: ZodString;
                            },
                            $loose,
                        >,
                        ZodObject<
                            {
                                content: ZodNullable<ZodString>;
                                name: ZodString;
                                role: ZodLiteral<"function">;
                            },
                            $loose,
                        >,
                    ],
                    "role",
                >,
                ZodTransform<
                    | { content: string; role: "system" }
                    | {
                        content:
                            | string
                            | (
                                | { text: string; type: "text" }
                                | { image: string; mimeType?: (...) | (...); type: "image" }
                            )[];
                        role: "user";
                    }
                    | {
                        content: | string
                        | (
                            | { text: string; type: "text" }
                            | {
                                input: JSONLiteral;
                                toolCallId: string;
                                toolName: string;
                                type: "tool-call";
                            }
                        )[];
                        role: "assistant";
                    }
                    | {
                        content: {
                            output: { type: "text"; value: string };
                            toolCallId: string;
                            toolName: string;
                            type: "tool-result";
                        }[];
                        role: "tool";
                    },
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "assistant";
                        tool_call_id?: string;
                        tool_calls?: {
                            function: {
                                arguments: string;
                                name: string;
                                [key: string]: unknown;
                            };
                            id: string;
                            type: "function";
                        }[];
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        role: "tool";
                        tool_call_id: string;
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | null;
                        name: string;
                        role: "function";
                        [key: string]: unknown;
                    }
                    | {
                        content: | string
                        | (
                            | { text: string; type: "text" }
                            | { image_url: { url: ... }; type: "image_url" }
                        )[];
                        name?: string;
                        role: "user";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "system";
                        [key: string]: unknown;
                    }
                    | {
                        content: string
                        | { text: string; type: "text" }[];
                        name?: string;
                        role: "developer";
                        [key: string]: unknown;
                    },
                >,
            >,
            ZodDiscriminatedUnion<
                [
                    ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                    ZodObject<
                        {
                            image: ZodString;
                            mimeType: ZodOptional<ZodString>;
                            type: ZodLiteral<"image">;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            input: ZodType<
                                JSONLiteral,
                                unknown,
                                $ZodTypeInternals<JSONLiteral, unknown>,
                            >;
                            toolCallId: ZodString;
                            toolName: ZodString;
                            type: ZodLiteral<"tool-call">;
                        },
                        $strip,
                    >,
                    ZodObject<
                        {
                            output: ZodObject<
                                { type: ZodLiteral<"text">; value: ZodString },
                                $strip,
                            >;
                            toolCallId: ZodString;
                            toolName: ZodString;
                            type: ZodLiteral<"tool-result">;
                        },
                        $strip,
                    >,
                ],
                "type",
            >,
            ZodPipe<
                ZodUnion<
                    readonly [
                        ZodLiteral<"auto">,
                        ZodLiteral<"none">,
                        ZodLiteral<"required">,
                        ZodObject<
                            {
                                function: ZodObject<{ name: ZodString }, $strip>;
                                type: ZodLiteral<"function">;
                            },
                            $strip,
                        >,
                    ],
                >,
                ZodTransform<
                    "none"
                    | "auto"
                    | "required"
                    | { toolName: string; type: "tool" },

                        | "none"
                        | "auto"
                        | "required"
                        | { function: { name: string }; type: "function" },
                >,
            >,
            ZodObject<
                {
                    input: ZodType<
                        JSONLiteral,
                        unknown,
                        $ZodTypeInternals<JSONLiteral, unknown>,
                    >;
                    toolCallId: ZodString;
                    toolName: ZodString;
                    type: ZodLiteral<"tool-call">;
                },
                $strip,
            >,
            ZodPipe<
                ZodObject<
                    {
                        function: ZodObject<
                            {
                                description: ZodOptional<ZodString>;
                                name: ZodString;
                                parameters: ZodObject<
                                    {
                                        additionalProperties: ZodOptional<ZodBoolean>;
                                        properties: ZodRecord<ZodString, ZodUnion<(...)>>;
                                        required: ZodOptional<ZodArray<(...)>>;
                                        strict: ZodOptional<ZodBoolean>;
                                        type: ZodLiteral<"object">;
                                    },
                                    $loose,
                                >;
                            },
                            $loose,
                        >;
                        type: ZodLiteral<"function">;
                    },
                    $loose,
                >,
                ZodTransform<
                    {
                        description?: string;
                        inputSchema: {
                            _type: unknown;
                            jsonSchema?: Record<string, unknown>;
                            validate: unknown;
                        };
                        type: "function";
                    },
                    {
                        function: {
                            description?: string;
                            name: string;
                            parameters: {
                                additionalProperties?: boolean;
                                properties: Record<
                                    string,
                                    | {
                                        description?: (...)
                                        | (...);
                                        enum?: (...) | (...);
                                        type: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                        [key: string]: unknown;
                                    }
                                    | { anyOf: (...)[] },
                                >;
                                required?: string[];
                                strict?: boolean;
                                type: "object";
                                [key: string]: unknown;
                            };
                            [key: string]: unknown;
                        };
                        type: "function";
                        [key: string]: unknown;
                    },
                >,
            >,
            ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
        >;
    } = ...

    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.

    Type Declaration

    • ANTHROPIC: SDKConverters<
          ZodPipe<
              ZodDiscriminatedUnion<
                  [
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              name: ZodOptional<ZodString>;
                              role: ZodLiteral<"assistant">;
                              tool_call_id: ZodOptional<ZodString>;
                              tool_calls: ZodOptional<
                                  ZodArray<ZodObject<{ function: ...; id: ...; type: ... }, $strip>>,
                              >;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              role: ZodLiteral<"tool">;
                              tool_call_id: ZodString;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodNullable<ZodString>;
                              name: ZodString;
                              role: ZodLiteral<"function">;
                          },
                          $loose,
                      >,
                  ],
                  "role",
              >,
              ZodTransform<
                  {
                      content: | string
                      | (
                          | { id: string; input: JSONLiteral; name: string; type: "tool_use" }
                          | { text: string; type: "text" }
                          | {
                              source: {
                                  data: string;
                                  media_type: (...) | (...) | (...) | (...);
                                  type: "base64";
                              };
                              type: "image";
                          }
                          | {
                              content: string
                              | (...)[];
                              is_error?: boolean;
                              tool_use_id: string;
                              type: "tool_result";
                          }
                      )[];
                      role: "user"
                      | "assistant";
                      [key: string]: unknown;
                  },
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "assistant";
                      tool_call_id?: string;
                      tool_calls?: {
                          function: {
                              arguments: string;
                              name: string;
                              [key: string]: unknown;
                          };
                          id: string;
                          type: "function";
                      }[];
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      role: "tool";
                      tool_call_id: string;
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | null;
                      name: string;
                      role: "function";
                      [key: string]: unknown;
                  }
                  | {
                      content: | string
                      | (
                          | { text: string; type: "text" }
                          | { image_url: { url: ... }; type: "image_url" }
                      )[];
                      name?: string;
                      role: "user";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "system";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "developer";
                      [key: string]: unknown;
                  },
              >,
          >,
          ZodPipe<
              ZodDiscriminatedUnion<
                  [
                      ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                      ZodObject<
                          {
                              image_url: ZodObject<{ url: ZodString }, $strip>;
                              type: ZodLiteral<"image_url">;
                          },
                          $strip,
                      >,
                  ],
                  "type",
              >,
              ZodTransform<
                  | { source?: undefined; text: string; type: "text" }
                  | {
                      source: {
                          data: string;
                          media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
                          type: "base64";
                      };
                      text?: undefined;
                      type: "image";
                  }
                  | null,
                  | { text: string; type: "text" }
                  | { image_url: { url: string }; type: "image_url" },
              >,
          >,
          ZodPipe<
              ZodUnion<
                  readonly [
                      ZodLiteral<"auto">,
                      ZodLiteral<"none">,
                      ZodLiteral<"required">,
                      ZodObject<
                          {
                              function: ZodObject<{ name: ZodString }, $strip>;
                              type: ZodLiteral<"function">;
                          },
                          $strip,
                      >,
                  ],
              >,
              ZodTransform<
                  { name: string; type: "tool" }
                  | { type: "auto" }
                  | { type: "any" },

                      | "none"
                      | "auto"
                      | "required"
                      | { function: { name: string }; type: "function" },
              >,
          >,
          ZodPipe<
              ZodObject<
                  {
                      function: ZodObject<
                          { arguments: ZodString; name: ZodString },
                          $loose,
                      >;
                      id: ZodString;
                      type: ZodPipe<
                          ZodOptional<ZodLiteral<"function">>,
                          ZodTransform<"function", "function" | undefined>,
                      >;
                  },
                  $strip,
              >,
              ZodTransform<
                  { id: string; input: JSONLiteral; name: string; type: "tool_use" },
                  {
                      function: { arguments: string; name: string; [key: string]: unknown };
                      id: string;
                      type: "function";
                  },
              >,
          >,
          ZodPipe<
              ZodObject<
                  {
                      function: ZodObject<
                          {
                              description: ZodOptional<ZodString>;
                              name: ZodString;
                              parameters: ZodObject<
                                  {
                                      additionalProperties: ZodOptional<ZodBoolean>;
                                      properties: ZodRecord<ZodString, ZodUnion<(...)>>;
                                      required: ZodOptional<ZodArray<(...)>>;
                                      strict: ZodOptional<ZodBoolean>;
                                      type: ZodLiteral<"object">;
                                  },
                                  $loose,
                              >;
                          },
                          $loose,
                      >;
                      type: ZodLiteral<"function">;
                  },
                  $loose,
              >,
              ZodTransform<
                  {
                      description: string;
                      input_schema: {
                          additionalProperties?: boolean;
                          properties: Record<
                              string,
                              | {
                                  description?: string;
                                  enum?: (...)[];
                                  type:
                                      | "string"
                                      | "number"
                                      | "boolean"
                                      | "object"
                                      | "null"
                                      | "array"
                                      | "integer";
                                  [key: string]: unknown;
                              }
                              | {
                                  anyOf: {
                                      description?: ...;
                                      enum?: ...;
                                      type: ...;
                                      [key: ...]: ...;
                                  }[];
                              },
                          >;
                          required?: string[];
                          type: "object";
                          [key: string]: unknown;
                      };
                      name: string;
                  },
                  {
                      function: {
                          description?: string;
                          name: string;
                          parameters: {
                              additionalProperties?: boolean;
                              properties: Record<
                                  string,
                                  | {
                                      description?: (...)
                                      | (...);
                                      enum?: (...) | (...);
                                      type: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                      [key: string]: unknown;
                                  }
                                  | { anyOf: (...)[] },
                              >;
                              required?: string[];
                              strict?: boolean;
                              type: "object";
                              [key: string]: unknown;
                          };
                          [key: string]: unknown;
                      };
                      type: "function";
                      [key: string]: unknown;
                  },
              >,
          >,
          ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
      >
    • AZURE_OPENAI: SDKConverters<
          ZodDiscriminatedUnion<
              [
                  ZodObject<
                      {
                          content: ZodUnion<
                              readonly [
                                  ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                  ZodString,
                              ],
                          >;
                          name: ZodOptional<ZodString>;
                          role: ZodLiteral<"assistant">;
                          tool_call_id: ZodOptional<ZodString>;
                          tool_calls: ZodOptional<
                              ZodArray<
                                  ZodObject<
                                      {
                                          function: ZodObject<(...), (...)>;
                                          id: ZodString;
                                          type: ZodPipe<(...), (...)>;
                                      },
                                      $strip,
                                  >,
                              >,
                          >;
                      },
                      $loose,
                  >,
                  ZodObject<
                      {
                          content: ZodUnion<
                              readonly [
                                  ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                  ZodString,
                              ],
                          >;
                          role: ZodLiteral<"tool">;
                          tool_call_id: ZodString;
                      },
                      $loose,
                  >,
                  ZodObject<
                      {
                          content: ZodNullable<ZodString>;
                          name: ZodString;
                          role: ZodLiteral<"function">;
                      },
                      $loose,
                  >,
              ],
              "role",
          >,
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                  ZodObject<
                      {
                          image_url: ZodObject<{ url: ZodString }, $strip>;
                          type: ZodLiteral<"image_url">;
                      },
                      $strip,
                  >,
              ],
              "type",
          >,
          ZodUnion<
              readonly [
                  ZodLiteral<"auto">,
                  ZodLiteral<"none">,
                  ZodLiteral<"required">,
                  ZodObject<
                      {
                          function: ZodObject<{ name: ZodString }, $strip>;
                          type: ZodLiteral<"function">;
                      },
                      $strip,
                  >,
              ],
          >,
          ZodObject<
              {
                  function: ZodObject<{ arguments: ZodString; name: ZodString }, $loose>;
                  id: ZodString;
                  type: ZodPipe<
                      ZodOptional<ZodLiteral<"function">>,
                      ZodTransform<"function", "function" | undefined>,
                  >;
              },
              $strip,
          >,
          ZodObject<
              {
                  function: ZodObject<
                      {
                          description: ZodOptional<ZodString>;
                          name: ZodString;
                          parameters: ZodObject<
                              {
                                  additionalProperties: ZodOptional<ZodBoolean>;
                                  properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                  required: ZodOptional<ZodArray<ZodString>>;
                                  strict: ZodOptional<ZodBoolean>;
                                  type: ZodLiteral<"object">;
                              },
                              $loose,
                          >;
                      },
                      $loose,
                  >;
                  type: ZodLiteral<"function">;
              },
              $loose,
          >,
          ZodObject<
              {
                  json_schema: ZodObject<
                      {
                          description: ZodOptional<ZodString>;
                          name: ZodString;
                          schema: ZodObject<
                              {
                                  additionalProperties: ZodOptional<ZodBoolean>;
                                  properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                  required: ZodOptional<ZodArray<ZodString>>;
                                  type: ZodLiteral<"object">;
                              },
                              $loose,
                          >;
                      },
                      $strip,
                  >;
                  type: ZodLiteral<"json_schema">;
              },
              $strip,
          >,
      >
    • OPENAI: SDKConverters<
          ZodDiscriminatedUnion<
              [
                  ZodObject<
                      {
                          content: ZodUnion<
                              readonly [
                                  ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                  ZodString,
                              ],
                          >;
                          name: ZodOptional<ZodString>;
                          role: ZodLiteral<"assistant">;
                          tool_call_id: ZodOptional<ZodString>;
                          tool_calls: ZodOptional<
                              ZodArray<
                                  ZodObject<
                                      {
                                          function: ZodObject<(...), (...)>;
                                          id: ZodString;
                                          type: ZodPipe<(...), (...)>;
                                      },
                                      $strip,
                                  >,
                              >,
                          >;
                      },
                      $loose,
                  >,
                  ZodObject<
                      {
                          content: ZodUnion<
                              readonly [
                                  ZodArray<ZodObject<{ text: ...; type: ... }, $strip>>,
                                  ZodString,
                              ],
                          >;
                          role: ZodLiteral<"tool">;
                          tool_call_id: ZodString;
                      },
                      $loose,
                  >,
                  ZodObject<
                      {
                          content: ZodNullable<ZodString>;
                          name: ZodString;
                          role: ZodLiteral<"function">;
                      },
                      $loose,
                  >,
              ],
              "role",
          >,
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                  ZodObject<
                      {
                          image_url: ZodObject<{ url: ZodString }, $strip>;
                          type: ZodLiteral<"image_url">;
                      },
                      $strip,
                  >,
              ],
              "type",
          >,
          ZodUnion<
              readonly [
                  ZodLiteral<"auto">,
                  ZodLiteral<"none">,
                  ZodLiteral<"required">,
                  ZodObject<
                      {
                          function: ZodObject<{ name: ZodString }, $strip>;
                          type: ZodLiteral<"function">;
                      },
                      $strip,
                  >,
              ],
          >,
          ZodObject<
              {
                  function: ZodObject<{ arguments: ZodString; name: ZodString }, $loose>;
                  id: ZodString;
                  type: ZodPipe<
                      ZodOptional<ZodLiteral<"function">>,
                      ZodTransform<"function", "function" | undefined>,
                  >;
              },
              $strip,
          >,
          ZodObject<
              {
                  function: ZodObject<
                      {
                          description: ZodOptional<ZodString>;
                          name: ZodString;
                          parameters: ZodObject<
                              {
                                  additionalProperties: ZodOptional<ZodBoolean>;
                                  properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                  required: ZodOptional<ZodArray<ZodString>>;
                                  strict: ZodOptional<ZodBoolean>;
                                  type: ZodLiteral<"object">;
                              },
                              $loose,
                          >;
                      },
                      $loose,
                  >;
                  type: ZodLiteral<"function">;
              },
              $loose,
          >,
          ZodObject<
              {
                  json_schema: ZodObject<
                      {
                          description: ZodOptional<ZodString>;
                          name: ZodString;
                          schema: ZodObject<
                              {
                                  additionalProperties: ZodOptional<ZodBoolean>;
                                  properties: ZodRecord<ZodString, ZodUnion<readonly [(...), (...)]>>;
                                  required: ZodOptional<ZodArray<ZodString>>;
                                  type: ZodLiteral<"object">;
                              },
                              $loose,
                          >;
                      },
                      $strip,
                  >;
                  type: ZodLiteral<"json_schema">;
              },
              $strip,
          >,
      >
    • PHOENIX: SDKConverters<
          ZodPipe<
              ZodDiscriminatedUnion<
                  [
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              name: ZodOptional<ZodString>;
                              role: ZodLiteral<"assistant">;
                              tool_call_id: ZodOptional<ZodString>;
                              tool_calls: ZodOptional<
                                  ZodArray<ZodObject<{ function: ...; id: ...; type: ... }, $strip>>,
                              >;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              role: ZodLiteral<"tool">;
                              tool_call_id: ZodString;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodNullable<ZodString>;
                              name: ZodString;
                              role: ZodLiteral<"function">;
                          },
                          $loose,
                      >,
                  ],
                  "role",
              >,
              ZodTransform<
                  {
                      content: | string
                      | (
                          | { text: string; type: "text" }
                          | {
                              tool_call: { arguments: string; name: string; type: "function" };
                              tool_call_id: string;
                              type: "tool_call";
                          }
                          | {
                              tool_call_id: string;
                              tool_result: | string
                              | number
                              | boolean
                              | (...)[]
                              | Record<(...), (...)>
                              | null;
                              type: "tool_result";
                          }
                      )[];
                      role: | "user"
                      | "assistant"
                      | "model"
                      | "ai"
                      | "tool"
                      | "system"
                      | "developer";
                  },
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "assistant";
                      tool_call_id?: string;
                      tool_calls?: {
                          function: {
                              arguments: string;
                              name: string;
                              [key: string]: unknown;
                          };
                          id: string;
                          type: "function";
                      }[];
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      role: "tool";
                      tool_call_id: string;
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | null;
                      name: string;
                      role: "function";
                      [key: string]: unknown;
                  }
                  | {
                      content: | string
                      | (
                          | { text: string; type: "text" }
                          | { image_url: { url: ... }; type: "image_url" }
                      )[];
                      name?: string;
                      role: "user";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "system";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "developer";
                      [key: string]: unknown;
                  },
              >,
          >,
          ZodUnknown,
          ZodUnknown,
          ZodUnknown,
          ZodUnknown,
          ZodUnknown,
      >
    • VERCEL_AI: SDKConverters<
          ZodPipe<
              ZodDiscriminatedUnion<
                  [
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              name: ZodOptional<ZodString>;
                              role: ZodLiteral<"assistant">;
                              tool_call_id: ZodOptional<ZodString>;
                              tool_calls: ZodOptional<
                                  ZodArray<ZodObject<{ function: ...; id: ...; type: ... }, $strip>>,
                              >;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodUnion<
                                  readonly [ZodArray<ZodObject<(...), (...)>>, ZodString],
                              >;
                              role: ZodLiteral<"tool">;
                              tool_call_id: ZodString;
                          },
                          $loose,
                      >,
                      ZodObject<
                          {
                              content: ZodNullable<ZodString>;
                              name: ZodString;
                              role: ZodLiteral<"function">;
                          },
                          $loose,
                      >,
                  ],
                  "role",
              >,
              ZodTransform<
                  | { content: string; role: "system" }
                  | {
                      content:
                          | string
                          | (
                              | { text: string; type: "text" }
                              | { image: string; mimeType?: (...) | (...); type: "image" }
                          )[];
                      role: "user";
                  }
                  | {
                      content: | string
                      | (
                          | { text: string; type: "text" }
                          | {
                              input: JSONLiteral;
                              toolCallId: string;
                              toolName: string;
                              type: "tool-call";
                          }
                      )[];
                      role: "assistant";
                  }
                  | {
                      content: {
                          output: { type: "text"; value: string };
                          toolCallId: string;
                          toolName: string;
                          type: "tool-result";
                      }[];
                      role: "tool";
                  },
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "assistant";
                      tool_call_id?: string;
                      tool_calls?: {
                          function: {
                              arguments: string;
                              name: string;
                              [key: string]: unknown;
                          };
                          id: string;
                          type: "function";
                      }[];
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      role: "tool";
                      tool_call_id: string;
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | null;
                      name: string;
                      role: "function";
                      [key: string]: unknown;
                  }
                  | {
                      content: | string
                      | (
                          | { text: string; type: "text" }
                          | { image_url: { url: ... }; type: "image_url" }
                      )[];
                      name?: string;
                      role: "user";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "system";
                      [key: string]: unknown;
                  }
                  | {
                      content: string
                      | { text: string; type: "text" }[];
                      name?: string;
                      role: "developer";
                      [key: string]: unknown;
                  },
              >,
          >,
          ZodDiscriminatedUnion<
              [
                  ZodObject<{ text: ZodString; type: ZodLiteral<"text"> }, $strip>,
                  ZodObject<
                      {
                          image: ZodString;
                          mimeType: ZodOptional<ZodString>;
                          type: ZodLiteral<"image">;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          input: ZodType<
                              JSONLiteral,
                              unknown,
                              $ZodTypeInternals<JSONLiteral, unknown>,
                          >;
                          toolCallId: ZodString;
                          toolName: ZodString;
                          type: ZodLiteral<"tool-call">;
                      },
                      $strip,
                  >,
                  ZodObject<
                      {
                          output: ZodObject<
                              { type: ZodLiteral<"text">; value: ZodString },
                              $strip,
                          >;
                          toolCallId: ZodString;
                          toolName: ZodString;
                          type: ZodLiteral<"tool-result">;
                      },
                      $strip,
                  >,
              ],
              "type",
          >,
          ZodPipe<
              ZodUnion<
                  readonly [
                      ZodLiteral<"auto">,
                      ZodLiteral<"none">,
                      ZodLiteral<"required">,
                      ZodObject<
                          {
                              function: ZodObject<{ name: ZodString }, $strip>;
                              type: ZodLiteral<"function">;
                          },
                          $strip,
                      >,
                  ],
              >,
              ZodTransform<
                  "none"
                  | "auto"
                  | "required"
                  | { toolName: string; type: "tool" },

                      | "none"
                      | "auto"
                      | "required"
                      | { function: { name: string }; type: "function" },
              >,
          >,
          ZodObject<
              {
                  input: ZodType<
                      JSONLiteral,
                      unknown,
                      $ZodTypeInternals<JSONLiteral, unknown>,
                  >;
                  toolCallId: ZodString;
                  toolName: ZodString;
                  type: ZodLiteral<"tool-call">;
              },
              $strip,
          >,
          ZodPipe<
              ZodObject<
                  {
                      function: ZodObject<
                          {
                              description: ZodOptional<ZodString>;
                              name: ZodString;
                              parameters: ZodObject<
                                  {
                                      additionalProperties: ZodOptional<ZodBoolean>;
                                      properties: ZodRecord<ZodString, ZodUnion<(...)>>;
                                      required: ZodOptional<ZodArray<(...)>>;
                                      strict: ZodOptional<ZodBoolean>;
                                      type: ZodLiteral<"object">;
                                  },
                                  $loose,
                              >;
                          },
                          $loose,
                      >;
                      type: ZodLiteral<"function">;
                  },
                  $loose,
              >,
              ZodTransform<
                  {
                      description?: string;
                      inputSchema: {
                          _type: unknown;
                          jsonSchema?: Record<string, unknown>;
                          validate: unknown;
                      };
                      type: "function";
                  },
                  {
                      function: {
                          description?: string;
                          name: string;
                          parameters: {
                              additionalProperties?: boolean;
                              properties: Record<
                                  string,
                                  | {
                                      description?: (...)
                                      | (...);
                                      enum?: (...) | (...);
                                      type: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                      [key: string]: unknown;
                                  }
                                  | { anyOf: (...)[] },
                              >;
                              required?: string[];
                              strict?: boolean;
                              type: "object";
                              [key: string]: unknown;
                          };
                          [key: string]: unknown;
                      };
                      type: "function";
                      [key: string]: unknown;
                  },
              >,
          >,
          ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>,
      >