Module Values.ToolResultBlockSource

A tool result block that contains the results for a tool request that the model previously made. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. toolUseId : ToolUseId.t;
    (*

    The ID of the tool request that this is the result for.

    *)
  2. content : ToolResultContentBlocks.t;
    (*

    The content for tool result content block.

    *)
  3. status : ToolResultStatus.t option;
    (*

    The status for the tool result content block. This field is only supported by Amazon Nova and Anthropic Claude 3 and 4 models.

    *)
  4. type_ : String_.t option;
    (*

    The type for the tool result content block.

    *)
}
Sourceval context_ : string
Sourceval make : ?status:??? -> ?type_:??? -> toolUseId:ToolUseId.t -> content:ToolResultContentBlocks.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `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 ] list | `String of ToolUseId.t ]) 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