Class: AWSCDK::Bedrock::CfnPrompt::SpecificToolChoiceProperty

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

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.



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

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



1219
1220
1221
1222
1223
# File 'bedrock/cfn_prompt.rb', line 1219

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

Instance Method Details

#to_jsiiObject



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