@modelcontextprotocol/sdk
    Preparing search index...

    Variable SamplingMessageSchemaConst

    SamplingMessageSchema: ZodObject<
        {
            content: ZodUnion<
                [
                    ZodObject<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    {},
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{}, ZodTypeAny, "passthrough">,
                                    objectInputType<{}, ZodTypeAny, "passthrough">,
                                >,
                            >;
                            text: ZodString;
                            type: ZodLiteral<"text">;
                        },
                        "passthrough",
                        ZodTypeAny,
                        objectOutputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                text: ZodString;
                                type: ZodLiteral<"text">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                        objectInputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                text: ZodString;
                                type: ZodLiteral<"text">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                    >,
                    ZodObject<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    {},
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{}, ZodTypeAny, "passthrough">,
                                    objectInputType<{}, ZodTypeAny, "passthrough">,
                                >,
                            >;
                            data: ZodEffects<ZodString, string, string>;
                            mimeType: ZodString;
                            type: ZodLiteral<"image">;
                        },
                        "passthrough",
                        ZodTypeAny,
                        objectOutputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"image">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                        objectInputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"image">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                    >,
                    ZodObject<
                        {
                            _meta: ZodOptional<
                                ZodObject<
                                    {},
                                    "passthrough",
                                    ZodTypeAny,
                                    objectOutputType<{}, ZodTypeAny, "passthrough">,
                                    objectInputType<{}, ZodTypeAny, "passthrough">,
                                >,
                            >;
                            data: ZodEffects<ZodString, string, string>;
                            mimeType: ZodString;
                            type: ZodLiteral<"audio">;
                        },
                        "passthrough",
                        ZodTypeAny,
                        objectOutputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"audio">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                        objectInputType<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"audio">;
                            },
                            ZodTypeAny,
                            "passthrough",
                        >,
                    >,
                ],
            >;
            role: ZodEnum<["user", "assistant"]>;
        },
        "passthrough",
        ZodTypeAny,
        objectOutputType<
            {
                content: ZodUnion<
                    [
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                text: ZodString;
                                type: ZodLiteral<"text">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"image">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"audio">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                    ],
                >;
                role: ZodEnum<["user", "assistant"]>;
            },
            ZodTypeAny,
            "passthrough",
        >,
        objectInputType<
            {
                content: ZodUnion<
                    [
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                text: ZodString;
                                type: ZodLiteral<"text">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"image">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            {
                                _meta: ZodOptional<
                                    ZodObject<
                                        {},
                                        "passthrough",
                                        ZodTypeAny,
                                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                                        objectInputType<{}, ZodTypeAny, "passthrough">,
                                    >,
                                >;
                                data: ZodEffects<ZodString, string, string>;
                                mimeType: ZodString;
                                type: ZodLiteral<"audio">;
                            },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                    ],
                >;
                role: ZodEnum<["user", "assistant"]>;
            },
            ZodTypeAny,
            "passthrough",
        >,
    > = ...

    Describes a message issued to or received from an LLM API.