Class: AWSCDK::Bedrock::CfnPromptVersion::ToolInputSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::ToolInputSchemaProperty
- Defined in:
- bedrock/cfn_prompt_version.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
-
#json ⇒ Object
readonly
The JSON schema for the tool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json:) ⇒ ToolInputSchemaProperty
constructor
A new instance of ToolInputSchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(json:) ⇒ ToolInputSchemaProperty
Returns a new instance of ToolInputSchemaProperty.
1440 1441 1442 1443 |
# File 'bedrock/cfn_prompt_version.rb', line 1440 def initialize(json:) @json = json Jsii::Type.check_type(@json, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "json") end |
Instance Attribute Details
#json ⇒ Object (readonly)
The JSON schema for the tool.
For more information, see JSON Schema Reference .
1451 1452 1453 |
# File 'bedrock/cfn_prompt_version.rb', line 1451 def json @json end |
Class Method Details
.jsii_properties ⇒ Object
1453 1454 1455 1456 1457 |
# File 'bedrock/cfn_prompt_version.rb', line 1453 def self.jsii_properties { :json => "json", } end |
Instance Method Details
#to_jsii ⇒ Object
1459 1460 1461 1462 1463 1464 1465 |
# File 'bedrock/cfn_prompt_version.rb', line 1459 def to_jsii result = {} result.merge!({ "json" => @json, }) result.compact end |