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

    Index

    Properties

    Properties

    format: "json"

    When format is 'json', the response will be json according to the instruction. Note: In addition to setting this to 'json', instruction MUST include the word 'JSON', or 'json' for this to work.