ToolChoice¶
Union Type¶
ToolChoice
module-attribute
¶
ToolChoice = Union[ToolChoiceAuto | ToolChoiceAny | ToolChoiceTool | ToolChoiceUnknown]
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.
Union Member Types¶
ToolChoiceAuto
dataclass
¶
(Default). The Model automatically decides if a tool should be called or whether to generate text instead.
Attributes¶
ToolChoiceAny
dataclass
¶
The model must request at least one tool (no text is generated).