package wcs-lib

  1. Overview
  2. Docs
type response = {
  1. r_conditions : string option;
  2. r_output : Wcs_t.output_def option;
  3. r_context : Wcs_t.json option;
}

Type of a condtional response

type slot = {
  1. s_prompt : Wcs_t.output_def;
  2. s_conditions : string;
  3. s_variable : string;
  4. s_context : Wcs_t.json option;
  5. s_match : response list;
  6. s_nomatch : response list;
}

Type of a slot

type node = {
  1. n_dialog_node : string;
  2. n_description : string option;
  3. n_conditions : string option;
  4. n_prompt : Wcs_t.output_def;
  5. n_reactions : response list;
  6. n_responses : response list;
  7. n_slots : slot list;
  8. n_metadata : Wcs_t.json option;
  9. n_next_step : Wcs_t.next_step option;
  10. n_created : string option;
  11. n_updated : string option;
}

Type of dialog nodes.

type dialog =
  1. | D of (node * dialog) list

Type of dialog trees.