Class: AWSCDK::BedrockAgentCore::MemoryStrategyCommonProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::MemoryStrategyCommonProps
- Defined in:
- bedrock_agent_core/memory_strategy_common_props.rb
Overview
Configuration parameters common for any memory strategy.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the strategy.
-
#strategy_name ⇒ String
readonly
The name for the strategy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(strategy_name:, description: nil) ⇒ MemoryStrategyCommonProps
constructor
A new instance of MemoryStrategyCommonProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(strategy_name:, description: nil) ⇒ MemoryStrategyCommonProps
Returns a new instance of MemoryStrategyCommonProps.
9 10 11 12 13 14 |
# File 'bedrock_agent_core/memory_strategy_common_props.rb', line 9 def initialize(strategy_name:, description: nil) @strategy_name = strategy_name Jsii::Type.check_type(@strategy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "strategyName") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Note:
Default: - No description
The description of the strategy.
24 25 26 |
# File 'bedrock_agent_core/memory_strategy_common_props.rb', line 24 def description @description end |
#strategy_name ⇒ String (readonly)
The name for the strategy.
19 20 21 |
# File 'bedrock_agent_core/memory_strategy_common_props.rb', line 19 def strategy_name @strategy_name end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'bedrock_agent_core/memory_strategy_common_props.rb', line 26 def self.jsii_properties { :strategy_name => "strategyName", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'bedrock_agent_core/memory_strategy_common_props.rb', line 33 def to_jsii result = {} result.merge!({ "strategyName" => @strategy_name, "description" => @description, }) result.compact end |