Class: AWSCDK::BedrockAgentCore::SelfManagedMemoryStrategy
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::BedrockAgentCore::SelfManagedMemoryStrategy
- Includes:
- IMemoryStrategy
- Defined in:
- bedrock_agent_core/self_managed_memory_strategy.rb
Overview
Use AgentCore memory for event storage with custom triggers.
Define memory processing logic in your own environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#description ⇒ String?
The description of the memory strategy.
-
#grant(grantee) ⇒ AWSCDK::IAM::Grant?
Grants the necessary permissions to the role.
-
#historical_context_window_size ⇒ Numeric
Historical context window size for self managed memory strategy.
-
#initialize(strategy_type, props) ⇒ SelfManagedMemoryStrategy
constructor
A new instance of SelfManagedMemoryStrategy.
-
#invocation_configuration ⇒ AWSCDK::BedrockAgentCore::InvocationConfiguration
Invocation configuration for self managed memory strategy.
-
#render ⇒ AWSCDK::BedrockAgentCore::CfnMemory::MemoryStrategyProperty
Renders internal attributes to CloudFormation.
-
#strategy_name ⇒ String
The name of the memory strategy.
-
#strategy_type ⇒ AWSCDK::BedrockAgentCore::MemoryStrategyType
The type of memory strategy.
-
#trigger_conditions ⇒ AWSCDK::BedrockAgentCore::TriggerConditions
Trigger conditions for self managed memory strategy.
Constructor Details
#initialize(strategy_type, props) ⇒ SelfManagedMemoryStrategy
Returns a new instance of SelfManagedMemoryStrategy.
13 14 15 16 17 18 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 13 def initialize(strategy_type, props) props = props.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::SelfManagedStrategyProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(strategy_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5NZW1vcnlTdHJhdGVneVR5cGUifQ==")), "strategyType") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5TZWxmTWFuYWdlZFN0cmF0ZWd5UHJvcHMifQ==")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(strategy_type, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 20 def self.jsii_overridable_methods { :historical_context_window_size => { kind: :property, name: "historicalContextWindowSize", is_optional: false }, :invocation_configuration => { kind: :property, name: "invocationConfiguration", is_optional: false }, :strategy_name => { kind: :property, name: "strategyName", is_optional: false }, :strategy_type => { kind: :property, name: "strategyType", is_optional: false }, :trigger_conditions => { kind: :property, name: "triggerConditions", is_optional: false }, :description => { kind: :property, name: "description", is_optional: true }, :grant => { kind: :method, name: "grant", is_optional: false }, :render => { kind: :method, name: "render", is_optional: false }, } end |
Instance Method Details
#description ⇒ String?
The description of the memory strategy.
71 72 73 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 71 def description() jsii_get_property("description") end |
#grant(grantee) ⇒ AWSCDK::IAM::Grant?
Grants the necessary permissions to the role.
[disable-awslint:no-grants]
81 82 83 84 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 81 def grant(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grant", [grantee]) end |
#historical_context_window_size ⇒ Numeric
Historical context window size for self managed memory strategy.
36 37 38 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 36 def historical_context_window_size() jsii_get_property("historicalContextWindowSize") end |
#invocation_configuration ⇒ AWSCDK::BedrockAgentCore::InvocationConfiguration
Invocation configuration for self managed memory strategy.
43 44 45 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 43 def invocation_configuration() jsii_get_property("invocationConfiguration") end |
#render ⇒ AWSCDK::BedrockAgentCore::CfnMemory::MemoryStrategyProperty
Renders internal attributes to CloudFormation.
89 90 91 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 89 def render() jsii_call_method("render", []) end |
#strategy_name ⇒ String
The name of the memory strategy.
50 51 52 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 50 def strategy_name() jsii_get_property("strategyName") end |
#strategy_type ⇒ AWSCDK::BedrockAgentCore::MemoryStrategyType
The type of memory strategy.
57 58 59 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 57 def strategy_type() jsii_get_property("strategyType") end |
#trigger_conditions ⇒ AWSCDK::BedrockAgentCore::TriggerConditions
Trigger conditions for self managed memory strategy.
64 65 66 |
# File 'bedrock_agent_core/self_managed_memory_strategy.rb', line 64 def trigger_conditions() jsii_get_property("triggerConditions") end |