Reference to a prompt template and its variables. Learn more.

interface ResponsePrompt {
    id: string;
    variables?: null | {
        [key: string]:
            | string
            | ResponseInputText
            | ResponseInputImage
            | ResponseInputFile;
    };
    version?: null | string;
}

Properties

id: string

The unique identifier of the prompt template to use.

variables?: null | {
    [key: string]:
        | string
        | ResponseInputText
        | ResponseInputImage
        | ResponseInputFile;
}

Optional map of values to substitute in for variables in your prompt. The substitution values can either be strings, or other Response input types like images or files.

version?: null | string

Optional version of the prompt template.