Class: AWSCDK::Bedrock::CfnPrompt::ToolInputSchemaProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_prompt.rb

Overview

The schema for the tool.

The top level schema type must be object . For more information, see Call a tool with the Converse API in the Amazon Bedrock User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json:) ⇒ ToolInputSchemaProperty

Returns a new instance of ToolInputSchemaProperty.

Parameters:

  • json (Object)

    The JSON schema for the tool.



1510
1511
1512
1513
# File 'bedrock/cfn_prompt.rb', line 1510

def initialize(json:)
  @json = json
  Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "json")
end

Instance Attribute Details

#jsonObject (readonly)

The JSON schema for the tool.

For more information, see JSON Schema Reference .



1521
1522
1523
# File 'bedrock/cfn_prompt.rb', line 1521

def json
  @json
end

Class Method Details

.jsii_propertiesObject



1523
1524
1525
1526
1527
# File 'bedrock/cfn_prompt.rb', line 1523

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

Instance Method Details

#to_jsiiObject



1529
1530
1531
1532
1533
1534
1535
# File 'bedrock/cfn_prompt.rb', line 1529

def to_jsii
  result = {}
  result.merge!({
    "json" => @json,
  })
  result.compact
end