Sanity Library Reference Docs
    Preparing search index...

    Interface PromptJsonResponse<T>Beta

    interface PromptJsonResponse<
        T extends Record<string, Any> = Record<string, Any>,
    > {
        format: "json";
    }

    Type Parameters

    • T extends Record<string, Any> = Record<string, Any>
    Index

    Properties

    Properties

    format: "json"

    When true, the response body will be json according to the instruction. When false, the response is the raw text response to the instruction.

    Note: In addition to setting this to true, instruction MUST include the word 'JSON', or 'json' for this to work.