Module Values.ToolSpecificationSource

The specification for the tool. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. name : ToolName.t;
    (*

    The name for the tool.

    *)
  2. description : NonEmptyString.t option;
    (*

    The description for the tool.

    *)
  3. inputSchema : ToolInputSchema.t;
    (*

    The input schema for the tool in JSON format.

    *)
  4. strict : Boolean.t option;
    (*

    Flag to enable structured output enforcement on a tool usage response.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?strict:??? -> name:ToolName.t -> inputSchema:ToolInputSchema.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `String of ToolName.t | `Structure of (string * [> `Structure of 'a 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