Module Values.MessageSource

A message in an Amazon Q Business web experience.

Sourcetype nonrec t = {
  1. messageId : String_.t option;
    (*

    The identifier of the Amazon Q Business web experience message.

    *)
  2. body : MessageBody.t option;
    (*

    The content of the Amazon Q Business web experience message.

    *)
  3. time : Timestamp.t option;
    (*

    The timestamp of the first Amazon Q Business web experience message.

    *)
  4. type_ : MessageType.t option;
    (*

    The type of Amazon Q Business message, whether HUMAN or AI generated.

    *)
  5. attachments : AttachmentsOutput.t option;
    (*

    A file directly uploaded into an Amazon Q Business web experience chat.

    *)
  6. sourceAttribution : SourceAttributions.t option;
    (*

    The source documents used to generate Amazon Q Business web experience message.

    *)
  7. actionReview : ActionReview.t option;
  8. actionExecution : ActionExecution.t option;
}
Sourceval make : ?messageId:??? -> ?body:??? -> ?time:??? -> ?type_:??? -> ?attachments:??? -> ?sourceAttribution:??? -> ?actionReview:??? -> ?actionExecution:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `Integer of Integer.t | `String of SourceAttributionMediaId.t | `Structure of (string * [> `String of SnippetExcerptText.t | `Structure of (string * [> `Enum of string | `Long of Long.t | `String of MediaId.t ]) list ]) list ]) list ] list | `String of AttachmentName.t | `Structure of (string * [> `Enum of string | `String of ErrorMessage.t ]) list | `Timestamp of Timestamp.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `Map of ([> `String of ActionPayloadFieldKey.t ] * [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `Structure of 'a list ]) list ] list | `String of String_.t | `Structure of 'b list ]) list ]) list | `String of PluginId.t ]) list | `Timestamp of Timestamp.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