Module Values.ToolSpecificationSource

Contains a specification for a tool. For more information, see Use a tool to complete an Amazon Bedrock model response.

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

    The name of the tool.

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

    The description of the tool.

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

    The input schema for the tool.

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

    Whether to enforce strict JSON schema adherence for the tool input

    *)
}
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