@modelcontextprotocol/sdk
    Preparing search index...

    Variable CreateMessageResultSchemaConst

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