Module Values.ContentBlockDeltaSource

A block of content in a streaming response.

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

    The content text.

    *)
  2. toolUse : ToolUseBlockDelta.t option;
    (*

    Information about a tool that the model is requesting to use.

    *)
  3. toolResult : ToolResultBlocksDelta.t option;
    (*

    An incremental update that contains the results from a tool call.

    *)
  4. reasoningContent : ReasoningContentBlockDelta.t option;
    (*

    Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

    *)
  5. citation : CitationsDelta.t option;
    (*

    Incremental citation information that is streamed as part of the response generation process.

    *)
  6. image : ImageBlockDelta.t option;
    (*

    A streaming delta event containing incremental image data.

    *)
}
Sourceval make : ?text:??? -> ?toolUse:??? -> ?toolResult:??? -> ?reasoningContent:??? -> ?citation:??? -> ?image:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t | `Structure of 'a list ]) list ] list | `String of String_.t | `Structure of (string * [> `Blob of Blob.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Blob of ImageSourceBytesBlob.t | `String of String_.t | `Structure of (string * [> `Integer of DocumentCharLocationDocumentIndexInteger.t | `String of String_.t ]) 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