Module Values.SentimentResponseSource

The sentiment expressed in an utterance. When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

Sourcetype nonrec t = {
  1. sentimentLabel : SentimentLabel.t option;
    (*

    The inferred sentiment that Amazon Comprehend has the highest confidence in.

    *)
  2. sentimentScore : SentimentScore.t option;
    (*

    The likelihood that the sentiment was correctly inferred.

    *)
}
Sourceval make : ?sentimentLabel:??? -> ?sentimentScore:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of SentimentLabel.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