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 Members¶
ToolChoiceAuto
dataclass
¶
(Default). The Model automatically decides if a tool should be called or whether to generate text instead.
Source code in src/aws_sdk_bedrock_runtime/models.py
8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 | |
ToolChoiceAny
dataclass
¶
The model must request at least one tool (no text is generated).
Source code in src/aws_sdk_bedrock_runtime/models.py
8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 | |
ToolChoiceTool
dataclass
¶
The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models.
Source code in src/aws_sdk_bedrock_runtime/models.py
8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 | |
ToolChoiceUnknown
dataclass
¶
Represents an unknown variant.
If you receive this value, you will need to update your library to receive the parsed value.
This value may not be deliberately sent.
Source code in src/aws_sdk_bedrock_runtime/models.py
9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 | |