Module Values.SearchResultBlockSource

A search result block that enables natural citations with proper source attribution for retrieved content. This field is only supported by Anthropic Claude Opus 4.1, Opus 4, Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.

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

    The source URL or identifier for the content.

    *)
  2. title : String_.t;
    (*

    A descriptive title for the search result.

    *)
  3. content : SearchResultContentBlocks.t;
    (*

    An array of search result content block.

    *)
  4. citations : CitationsConfig.t option;
    (*

    Configuration setting for citations

    *)
}
Sourceval context_ : string
Sourceval make : ?citations:??? -> source:String_.t -> title:String_.t -> content:SearchResultContentBlocks.t -> 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 * [> `Boolean of Boolean.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