Module Values.CitationsDeltaSource

Contains incremental updates to citation information during streaming responses. This allows clients to build up citation data progressively as the response is generated.

Sourcetype nonrec t = {
  1. title : String_.t option;
    (*

    The title or identifier of the source document being cited.

    *)
  2. source : String_.t option;
    (*

    The source from the original search result that provided the cited content.

    *)
  3. sourceContent : CitationSourceContentListDelta.t option;
    (*

    The specific content from the source document that was referenced or cited in the generated response.

    *)
  4. location : CitationLocation.t option;
    (*

    Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.

    *)
}
Sourceval make : ?title:??? -> ?source:??? -> ?sourceContent:??? -> ?location:??? -> unit -> t
Sourceval to_value : t -> [> `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 ]
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