Module Values.OutputContextSource

Describes a session context that is activated when an intent is fulfilled.

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

    The name of the output context.

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

    The amount of time, in seconds, that the output context should remain active. The time is figured from the first time the context is sent to the user.

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

    The number of conversation turns that the output context should remain active. The number of turns is counted from the first time that the context is sent to the user.

    *)
}
Sourceval context_ : string
Sourceval make : name:Name.t -> timeToLiveInSeconds:ContextTimeToLiveInSeconds.t -> turnsToLive:ContextTurnsToLive.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of ContextTimeToLiveInSeconds.t | `String of Name.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