Module Values.OutputContextSource

The specification of an output context that is set when an intent is fulfilled.

Sourcetype nonrec t = {
  1. name : OutputContextName.t;
    (*

    The name of the context.

    *)
  2. timeToLiveInSeconds : ContextTimeToLiveInSeconds.t;
    (*

    The number of seconds that the context should be active after it is first sent in a PostContent or PostText response. You can set the value between 5 and 86,400 seconds (24 hours).

    *)
  3. turnsToLive : ContextTurnsToLive.t;
    (*

    The number of conversation turns that the context should be active. A conversation turn is one PostContent or PostText request and the corresponding response from Amazon Lex.

    *)
}
Sourceval context_ : string
Sourceval make : name:OutputContextName.t -> timeToLiveInSeconds:ContextTimeToLiveInSeconds.t -> turnsToLive:ContextTurnsToLive.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of ContextTimeToLiveInSeconds.t | `String of OutputContextName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t