Class: AWSCDK::Bedrock::CfnAgent::MemoryConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAgent::MemoryConfigurationProperty
- Defined in:
- bedrock/cfn_agent.rb
Overview
Details of the memory configuration.
Instance Attribute Summary collapse
-
#enabled_memory_types ⇒ Array<String>?
readonly
The type of memory that is stored.
-
#session_summary_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
-
#storage_days ⇒ Numeric?
readonly
The number of days the agent is configured to retain the conversational context.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled_memory_types: nil, session_summary_configuration: nil, storage_days: nil) ⇒ MemoryConfigurationProperty
constructor
A new instance of MemoryConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled_memory_types: nil, session_summary_configuration: nil, storage_days: nil) ⇒ MemoryConfigurationProperty
Returns a new instance of MemoryConfigurationProperty.
1495 1496 1497 1498 1499 1500 1501 1502 |
# File 'bedrock/cfn_agent.rb', line 1495 def initialize(enabled_memory_types: nil, session_summary_configuration: nil, storage_days: nil) @enabled_memory_types = enabled_memory_types Jsii::Type.check_type(@enabled_memory_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "enabledMemoryTypes") unless @enabled_memory_types.nil? @session_summary_configuration = session_summary_configuration.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnAgent::SessionSummaryConfigurationProperty.new(**session_summary_configuration.transform_keys(&:to_sym)) : session_summary_configuration Jsii::Type.check_type(@session_summary_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkFnZW50LlNlc3Npb25TdW1tYXJ5Q29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "sessionSummaryConfiguration") unless @session_summary_configuration.nil? @storage_days = storage_days Jsii::Type.check_type(@storage_days, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "storageDays") unless @storage_days.nil? end |
Instance Attribute Details
#enabled_memory_types ⇒ Array<String>? (readonly)
The type of memory that is stored.
1508 1509 1510 |
# File 'bedrock/cfn_agent.rb', line 1508 def enabled_memory_types @enabled_memory_types end |
#session_summary_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Contains the configuration for SESSION_SUMMARY memory type enabled for the agent.
1513 1514 1515 |
# File 'bedrock/cfn_agent.rb', line 1513 def session_summary_configuration @session_summary_configuration end |
#storage_days ⇒ Numeric? (readonly)
The number of days the agent is configured to retain the conversational context.
1518 1519 1520 |
# File 'bedrock/cfn_agent.rb', line 1518 def storage_days @storage_days end |
Class Method Details
.jsii_properties ⇒ Object
1520 1521 1522 1523 1524 1525 1526 |
# File 'bedrock/cfn_agent.rb', line 1520 def self.jsii_properties { :enabled_memory_types => "enabledMemoryTypes", :session_summary_configuration => "sessionSummaryConfiguration", :storage_days => "storageDays", } end |
Instance Method Details
#to_jsii ⇒ Object
1528 1529 1530 1531 1532 1533 1534 1535 1536 |
# File 'bedrock/cfn_agent.rb', line 1528 def to_jsii result = {} result.merge!({ "enabledMemoryTypes" => @enabled_memory_types, "sessionSummaryConfiguration" => @session_summary_configuration, "storageDays" => @storage_days, }) result.compact end |