AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
Namespace: Amazon.BedrockRuntime.Model
Assembly: AWSSDK.BedrockRuntime.dll
Version: 3.x.y.z
public class ToolChoice
The ToolChoice type exposes the following members
| Name | Description | |
|---|---|---|
|
ToolChoice() |
| Name | Type | Description | |
|---|---|---|---|
|
Any | Amazon.BedrockRuntime.Model.AnyToolChoice |
Gets and sets the property Any. The model must request at least one tool (no text is generated). |
|
Auto | Amazon.BedrockRuntime.Model.AutoToolChoice |
Gets and sets the property Auto. (Default). The Model automatically decides if a tool should be called or whether to generate text instead. |
|
Tool | Amazon.BedrockRuntime.Model.SpecificToolChoice |
Gets and sets the property Tool. The Model must request the specified tool. Only supported by Anthropic Claude 3 and Amazon Nova models. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer