Module Values.ToolUseBlockSource

A tool use content block. Contains information about a tool that the model is requesting be run., The model uses the result from the tool to generate a response. 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 for the tool request.

    *)
  2. name : ToolName.t;
    (*

    The name of the tool that the model wants to use.

    *)
  3. input : Document.t;
    (*

    The input to pass to the tool.

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

    The type for the tool request.

    *)
}
Sourceval context_ : string
Sourceval make : ?type_:??? -> toolUseId:ToolUseId.t -> name:ToolName.t -> input:Document.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ToolUseId.t | `Structure of 'a 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