Class: AWSCDK::Bedrock::CfnPromptVersion::SpecificToolChoiceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::SpecificToolChoiceProperty
- Defined in:
- bedrock/cfn_prompt_version.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.
1201 1202 1203 1204 |
# File 'bedrock/cfn_prompt_version.rb', line 1201 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.
1210 1211 1212 |
# File 'bedrock/cfn_prompt_version.rb', line 1210 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1212 1213 1214 1215 1216 |
# File 'bedrock/cfn_prompt_version.rb', line 1212 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1218 1219 1220 1221 1222 1223 1224 |
# File 'bedrock/cfn_prompt_version.rb', line 1218 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |