Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSystemContentBlockProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnHarness::HarnessSystemContentBlockProperty
- Defined in:
- bedrock_agent_core/cfn_harness.rb
Overview
Instance Attribute Summary collapse
-
#text ⇒ String
readonly
The text content of the system prompt block.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(text:) ⇒ HarnessSystemContentBlockProperty
constructor
A new instance of HarnessSystemContentBlockProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(text:) ⇒ HarnessSystemContentBlockProperty
Returns a new instance of HarnessSystemContentBlockProperty.
2328 2329 2330 2331 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2328 def initialize(text:) @text = text Jsii::Type.check_type(@text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text") end |
Instance Attribute Details
#text ⇒ String (readonly)
The text content of the system prompt block.
2337 2338 2339 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2337 def text @text end |
Class Method Details
.jsii_properties ⇒ Object
2339 2340 2341 2342 2343 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2339 def self.jsii_properties { :text => "text", } end |
Instance Method Details
#to_jsii ⇒ Object
2345 2346 2347 2348 2349 2350 2351 |
# File 'bedrock_agent_core/cfn_harness.rb', line 2345 def to_jsii result = {} result.merge!({ "text" => @text, }) result.compact end |