AWS SDK Version 3 for .NET
API Reference

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.

Defines which tools the model should request when invoked. For more information, see Use a tool to complete an Amazon Bedrock model response.

Inheritance Hierarchy

System.Object
  Amazon.BedrockAgent.Model.ToolChoice

Namespace: Amazon.BedrockAgent.Model
Assembly: AWSSDK.BedrockAgent.dll
Version: 3.x.y.z

Syntax

C#
public class ToolChoice

The ToolChoice type exposes the following members

Constructors

NameDescription
Public Method ToolChoice()

Properties

NameTypeDescription
Public Property Any Amazon.BedrockAgent.Model.AnyToolChoice

Gets and sets the property Any.

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.

Public Property Auto Amazon.BedrockAgent.Model.AutoToolChoice

Gets and sets the property Auto.

Defines tools. The model automatically decides whether to call a tool or to generate text instead.

Public Property Tool Amazon.BedrockAgent.Model.SpecificToolChoice

Gets and sets the property Tool.

Defines a specific tool that the model must request. No text is generated but the results of tool use are sent back to the model to help generate a response.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5