Module Values.GuardrailConverseContentBlockSource

A content block for selective guarding with the Converse or ConverseStream API operations.

Sourcetype nonrec t = {
  1. text : GuardrailConverseTextBlock.t option;
    (*

    The text to guard.

    *)
  2. image : GuardrailConverseImageBlock.t option;
    (*

    Image within converse content block to be evaluated by the guardrail.

    *)
}
Sourceval make : ?text:??? -> ?image:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `List of [> `Enum of string ] list | `String of String_.t | `Structure of (string * [> `Blob of GuardrailConverseImageSourceBytesBlob.t ]) 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