Skip to content

Type Alias: AiQuestion ​

ts
type AiQuestion = 
  | {
  criteria?: {
     false?: string;
     true?: string;
  };
  id: string;
  instructions: string;
  type: "boolean";
}
  | {
  choices: object[];
  id: string;
  instructions: string;
  type: "choice";
}
  | {
  id: string;
  instructions: string;
  levels: string[];
  type: "score";
};

A question about a decision's state: boolean (the probability it holds), choice (one of 2 to 255 options) or score (a position on 2 to 10 levels). An id or an option's value is a name a path reads its answer by: a letter, then up to 63 letters, digits, _ or -.

Released under the Apache-2.0 License.