Class: AWSCDK::Bedrock::CfnPromptVersion::SpecificToolChoiceProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ SpecificToolChoiceProperty

Returns a new instance of SpecificToolChoiceProperty.

Parameters:

  • name (String)

    The name of the tool that the model must request.



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

#nameString (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_propertiesObject



1212
1213
1214
1215
1216
# File 'bedrock/cfn_prompt_version.rb', line 1212

def self.jsii_properties
  {
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



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