AWS::Bedrock::Prompt ToolChoice - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Bedrock::Prompt ToolChoice

Determines which tools the model should request in a call to Converse or ConverseStream. ToolChoice is only supported by Anthropic Claude 3 models and by Mistral AI Mistral Large. For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Any" : Json, "Auto" : Json, "Tool" : SpecificToolChoice }

YAML

Any: Json Auto: Json Tool: SpecificToolChoice

Properties

Any

The model must request at least one tool (no text is generated).

Required: No

Type: Json

Update requires: No interruption

Auto

(Default). The Model automatically decides if a tool should be called or whether to generate text instead.

Required: No

Type: Json

Update requires: No interruption

Tool

The Model must request the specified tool. Only supported by Anthropic Claude 3 models.

Required: No

Type: SpecificToolChoice

Update requires: No interruption