Module Wcs_lib.Dialog_t

type response = {
r_conditions : string option;
r_output : Wcs_t.json option;
r_context : Wcs_t.json option;
}

Type of a condtional response

type slot = {
s_prompt : Wcs_t.output_def;
s_conditions : string;
s_variable : string;
s_context : Wcs_t.json option;
s_match : response list;
s_nomatch : response list;
}

Type of a slot

type node = {
n_dialog_node : string;
n_description : string option;
n_conditions : string option;
n_prompt : Wcs_t.output_def;
n_reactions : response list;
n_responses : response list;
n_slots : slot list;
n_metadata : Wcs_t.json option;
n_next_step : Wcs_t.next_step option;
n_created : string option;
n_updated : string option;
}

Type of dialog nodes.

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

Type of dialog trees.