Class: AWSCDK::Bedrock::CfnPrompt::ToolInputSchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPrompt::ToolInputSchemaProperty
- 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
-
#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.
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
#json ⇒ Object (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_properties ⇒ Object
1523 1524 1525 1526 1527 |
# File 'bedrock/cfn_prompt.rb', line 1523 def self.jsii_properties { :json => "json", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |