Class: AWSCDK::Bedrock::CfnPrompt::SpecificToolChoiceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPrompt::SpecificToolChoiceProperty
- Defined in:
- bedrock/cfn_prompt.rb
Overview
The model must request a specific tool.
For example, {"tool" : {"name" : "Your tool name"}} . For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide
This field is only supported by Anthropic Claude 3 models.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the tool that the model must request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:) ⇒ SpecificToolChoiceProperty
constructor
A new instance of SpecificToolChoiceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:) ⇒ SpecificToolChoiceProperty
Returns a new instance of SpecificToolChoiceProperty.
1208 1209 1210 1211 |
# File 'bedrock/cfn_prompt.rb', line 1208 def initialize(name:) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the tool that the model must request.
1217 1218 1219 |
# File 'bedrock/cfn_prompt.rb', line 1217 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1219 1220 1221 1222 1223 |
# File 'bedrock/cfn_prompt.rb', line 1219 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1225 1226 1227 1228 1229 1230 1231 |
# File 'bedrock/cfn_prompt.rb', line 1225 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |