Module Values.ToolResultContentBlockSource

The tool result content block. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. json : Document.t option;
    (*

    A tool result that is JSON format data.

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

    A tool result that is text.

    *)
  3. image : ImageBlock.t option;
    (*

    A tool result that is an image. This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

    *)
  4. document : DocumentBlock.t option;
    (*

    A tool result that is a document.

    *)
  5. video : VideoBlock.t option;
    (*

    A tool result that is video.

    *)
  6. searchResult : SearchResultBlock.t option;
    (*

    A tool result that is a search result.

    *)
}
Sourceval make : ?json:??? -> ?text:??? -> ?image:??? -> ?document:??? -> ?video:??? -> ?searchResult:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of DocumentBlockNameString.t | `Structure of (string * [> `Blob of ImageSourceBytesBlob.t | `Boolean of Boolean.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `String of S3Uri.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