Module Values.GuardrailTopicConfigSource

Details about topics for the AI Guardrail to identify and deny.

Sourcetype nonrec t = {
  1. name : GuardrailTopicName.t;
    (*

    The name of the topic to deny.

    *)
  2. definition : GuardrailTopicDefinition.t;
    (*

    A definition of the topic to deny.

    *)
  3. examples : GuardrailTopicExamples.t option;
    (*

    A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.

    *)
  4. type_ : GuardrailTopicType.t;
    (*

    Specifies to deny the topic.

    *)
}
Sourceval context_ : string
Sourceval make : ?examples:??? -> name:GuardrailTopicName.t -> definition:GuardrailTopicDefinition.t -> type_:GuardrailTopicType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `String of GuardrailTopicExample.t ] list | `String of GuardrailTopicName.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