Module Values.ToolChoiceSource

Determines which tools the model should request in a call to Converse or ConverseStream. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

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

    (Default). The Model automatically decides if a tool should be called or whether to generate text instead.

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

    The model must request at least one tool (no text is generated).

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

    The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.

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