Module Values.GuardrailImageBlockSource

Contain an image which user wants guarded. This block is accepted by the guardrails independent API.

Sourcetype nonrec t = {
  1. format : GuardrailImageFormat.t;
    (*

    The format details for the file type of the image blocked by the guardrail.

    *)
  2. source : GuardrailImageSource.t;
    (*

    The image source (image bytes) details of the image blocked by the guardrail.

    *)
}
Sourceval context_ : string
Sourceval make : format:GuardrailImageFormat.t -> source:GuardrailImageSource.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Structure of (string * [> `Blob of GuardrailImageSourceBytesBlob.t ]) 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