Module Values.ToolChoiceSource

Defines which tools the model should request when invoked. For more information, see Use a tool to complete an Amazon Bedrock model response.

Sourcetype nonrec t = {
  1. auto : AutoToolChoice.t option;
    (*

    Defines tools. The model automatically decides whether to call a tool or to generate text instead.

    *)
  2. any : AnyToolChoice.t option;
    (*

    Defines tools, at least one of which must be requested by the model. No text is generated but the results of tool use are sent back to the model to help generate a response.

    *)
  3. tool : SpecificToolChoice.t option;
    (*

    Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response.

    *)
}
Sourceval make : ?auto:??? -> ?any:??? -> ?tool:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `String of ToolName.t ]) 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