ToolChoice¶
Union Type¶
ToolChoice
module-attribute
¶
ToolChoice = Union[ToolChoiceAuto | ToolChoiceAny | ToolChoiceTool | ToolChoiceUnknown]
Defines which tools the model should request when invoked. For more information, see Use a tool to complete an Amazon Bedrock model response.
Union Member Types¶
ToolChoiceAuto
dataclass
¶
Bases: _SerdeShape
Defines tools. The model automatically decides whether to call a tool or to generate text instead.
Attributes¶
ToolChoiceAny
dataclass
¶
Bases: _SerdeShape
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.