Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessSystemContentBlockProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_harness.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:) ⇒ HarnessSystemContentBlockProperty

Returns a new instance of HarnessSystemContentBlockProperty.

Parameters:

  • text (String)

    The text content of the system prompt block.



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

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



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_jsiiObject



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