Module Values.CitationsContentBlockSource

A content block that contains both generated text and associated citation information. This block type is returned when document citations are enabled, providing traceability between the generated content and the source documents that informed the response.

Sourcetype nonrec t = {
  1. content : CitationGeneratedContentList.t option;
    (*

    The generated content that is supported by the associated citations.

    *)
  2. citations : Citations.t option;
    (*

    An array of citations that reference the source documents used to generate the associated content.

    *)
}
Sourceval make : ?content:??? -> ?citations:??? -> unit -> t
Sourceval to_value : t -> [> `Structure 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 * [> `Structure of (string * [> `Integer of DocumentCharLocationDocumentIndexInteger.t | `String of String_.t ]) 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