DecisionQuestion: {
    choices?: {
        description: string;
        value: string;
    }[];
    instructions: string | Record<string, unknown>[];
    levels?: {
        description: string;
        label: string;
    }[];
    name: string;
    type: "predicate" | "choice" | "score";
}

A question in a /v1/decisions request. choices is required for choice questions and levels for score questions.

Type declaration

  • Optionalchoices?: {
        description: string;
        value: string;
    }[]
  • instructions: string | Record<string, unknown>[]

    A string, or a list of input_text / input_image parts.

  • Optionallevels?: {
        description: string;
        label: string;
    }[]
  • name: string

    Unique within the request; echoed on the matching answer.

  • type: "predicate" | "choice" | "score"