@modelcontextprotocol/sdk
    Preparing search index...

    Variable CreateMessageResultSchemaConst

    CreateMessageResultSchema: ZodObject<
        extendShape<
            {
                _meta: ZodOptional<
                    ZodObject<
                        {},
                        "passthrough",
                        ZodTypeAny,
                        objectOutputType<{}, ZodTypeAny, "passthrough">,
                        objectInputType<{}, ZodTypeAny, "passthrough">,
                    >,
                >;
            },
            {
                content: ZodDiscriminatedUnion<
                    "type",
                    [
                        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",
                            >,
                        >,
                    ],
                >;
                model: ZodString;
                role: ZodEnum<["user", "assistant"]>;
                stopReason: ZodOptional<
                    ZodUnion<
                        [ZodEnum<["endTurn", "stopSequence", "maxTokens"]>, ZodString],
                    >,
                >;
            },
        >,
        "passthrough",
        ZodTypeAny,
        objectOutputType<
            extendShape<
                {
                    _meta: ZodOptional<
                        ZodObject<
                            {},
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<{}, ZodTypeAny, "passthrough">,
                            objectInputType<{}, ZodTypeAny, "passthrough">,
                        >,
                    >;
                },
                {
                    content: ZodDiscriminatedUnion<
                        "type",
                        [
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        text: ZodString;
                                        type: ZodLiteral<"text">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        text: ZodString;
                                        type: ZodLiteral<"text">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        ],
                    >;
                    model: ZodString;
                    role: ZodEnum<["user", "assistant"]>;
                    stopReason: ZodOptional<
                        ZodUnion<
                            [ZodEnum<["endTurn", "stopSequence", "maxTokens"]>, ZodString],
                        >,
                    >;
                },
            >,
            ZodTypeAny,
            "passthrough",
        >,
        objectInputType<
            extendShape<
                {
                    _meta: ZodOptional<
                        ZodObject<
                            {},
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<{}, ZodTypeAny, "passthrough">,
                            objectInputType<{}, ZodTypeAny, "passthrough">,
                        >,
                    >;
                },
                {
                    content: ZodDiscriminatedUnion<
                        "type",
                        [
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    text: ZodString;
                                    type: ZodLiteral<"text">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        text: ZodString;
                                        type: ZodLiteral<"text">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        text: ZodString;
                                        type: ZodLiteral<"text">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    _meta: ZodOptional<
                                        ZodObject<
                                            {},
                                            "passthrough",
                                            ZodTypeAny,
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    data: ZodEffects<ZodString, string, string>;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        _meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
                                        data: ZodEffects<ZodString, string, string>;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                        ],
                    >;
                    model: ZodString;
                    role: ZodEnum<["user", "assistant"]>;
                    stopReason: ZodOptional<
                        ZodUnion<
                            [ZodEnum<["endTurn", "stopSequence", "maxTokens"]>, ZodString],
                        >,
                    >;
                },
            >,
            ZodTypeAny,
            "passthrough",
        >,
    > = ...

    The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.