Module Values.MessageSource

A message input, or returned from, a call to Converse or ConverseStream.

Sourcetype nonrec t = {
  1. role : ConversationRole.t;
    (*

    The role that the message plays in the message.

    *)
  2. content : ContentBlocks.t;
    (*

    The message content. Note the following restrictions: You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. You can include up to five documents. Each document's size must be no more than 4.5 MB. If you include a ContentBlock with a document field in the array, you must also include a ContentBlock with a text field. You can only include images and documents if the role is user.

    *)
}
Sourceval context_ : string
Sourceval make : role:ConversationRole.t -> content:ContentBlocks.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Blob of Blob.t | `Enum of string | `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of DocumentBlockNameString.t | `Structure of (string * [> `Blob of ImageSourceBytesBlob.t | `Boolean of Boolean.t | `Integer of DocumentCharLocationDocumentIndexInteger.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `String of S3Uri.t ]) list ]) list ]) list ]) list ] list | `String of DocumentBlockNameString.t | `Structure of (string * [> `Blob of ImageSourceBytesBlob.t | `Boolean of Boolean.t | `Enum of string | `List of [> `Enum of string | `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Blob of GuardrailConverseImageSourceBytesBlob.t | `String of S3Uri.t ]) list ]) list ]) list ]) list ] list ]) 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