@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<
                            { text: ZodString; type: ZodLiteral<"text"> },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                { text: ZodString; type: ZodLiteral<"text"> },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                { text: ZodString; type: ZodLiteral<"text"> },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            { data: ZodString; mimeType: ZodString; type: ZodLiteral<"image"> },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >,
                        ZodObject<
                            { data: ZodString; mimeType: ZodString; type: ZodLiteral<"audio"> },
                            "passthrough",
                            ZodTypeAny,
                            objectOutputType<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    data: ZodString;
                                    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<
                                { text: ZodString; type: ZodLiteral<"text"> },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    { text: ZodString; type: ZodLiteral<"text"> },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    { text: ZodString; type: ZodLiteral<"text"> },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        data: ZodString;
                                        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<
                                { text: ZodString; type: ZodLiteral<"text"> },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    { text: ZodString; type: ZodLiteral<"text"> },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    { text: ZodString; type: ZodLiteral<"text"> },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"image">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"image">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >,
                            ZodObject<
                                {
                                    data: ZodString;
                                    mimeType: ZodString;
                                    type: ZodLiteral<"audio">;
                                },
                                "passthrough",
                                ZodTypeAny,
                                objectOutputType<
                                    {
                                        data: ZodString;
                                        mimeType: ZodString;
                                        type: ZodLiteral<"audio">;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        data: ZodString;
                                        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.