"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MemoryStrategy=exports.MemoryStrategyType=exports.MEMORY_NAME_MAX_LENGTH=exports.MEMORY_NAME_MIN_LENGTH=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var managed_strategy_1=()=>{var tmp=require("./strategies/managed-strategy");return managed_strategy_1=()=>tmp,tmp},self_managed_strategy_1=()=>{var tmp=require("./strategies/self-managed-strategy");return self_managed_strategy_1=()=>tmp,tmp};exports.MEMORY_NAME_MIN_LENGTH=1,exports.MEMORY_NAME_MAX_LENGTH=48;var MemoryStrategyType;(function(MemoryStrategyType2){MemoryStrategyType2.SUMMARIZATION="SUMMARIZATION",MemoryStrategyType2.SEMANTIC="SEMANTIC",MemoryStrategyType2.USER_PREFERENCE="USER_PREFERENCE",MemoryStrategyType2.EPISODIC="EPISODIC",MemoryStrategyType2.CUSTOM="CUSTOM"})(MemoryStrategyType||(exports.MemoryStrategyType=MemoryStrategyType={}));class MemoryStrategy{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_bedrockagentcore.MemoryStrategy",version:"2.256.1"};static usingBuiltInSummarization(){return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.SUMMARIZATION,{strategyName:"summary_builtin_cdkGen0001",description:"Summarize interactions to preserve critical context and key insights",namespaces:["/strategies/{memoryStrategyId}/actors/{actorId}/sessions/{sessionId}"]})}static usingBuiltInSemantic(){return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.SEMANTIC,{strategyName:"semantic_builtin_cdkGen0001",description:"Extract general factual knowledge, concepts and meanings from raw conversations in a context-independent format.",namespaces:["/strategies/{memoryStrategyId}/actors/{actorId}"]})}static usingBuiltInUserPreference(){return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.USER_PREFERENCE,{strategyName:"preference_builtin_cdkGen0001",description:"Capture individual preferences, interaction patterns, and personalized settings to enhance future experiences.",namespaces:["/strategies/{memoryStrategyId}/actors/{actorId}"]})}static usingBuiltInEpisodic(){return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.EPISODIC,{strategyName:"episodic_builtin_cdkGen0001",description:"Captures meaningful slices of user and system interactions.",namespaces:["/strategy/{memoryStrategyId}/actor/{actorId}/session/{sessionId}"],reflectionConfiguration:{namespaces:["/strategy/{memoryStrategyId}/actor/{actorId}"]}})}static usingSemantic(config){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_ManagedStrategyProps(config)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.usingSemantic),error}return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.SEMANTIC,config)}static usingUserPreference(config){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_ManagedStrategyProps(config)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.usingUserPreference),error}return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.USER_PREFERENCE,config)}static usingSummarization(config){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_ManagedStrategyProps(config)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.usingSummarization),error}return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.SUMMARIZATION,config)}static usingEpisodic(config){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_ManagedStrategyProps(config)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.usingEpisodic),error}return new(managed_strategy_1()).ManagedMemoryStrategy(MemoryStrategyType.EPISODIC,config)}static usingSelfManaged(config){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_bedrockagentcore_SelfManagedStrategyProps(config)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.usingSelfManaged),error}return new(self_managed_strategy_1()).SelfManagedMemoryStrategy(MemoryStrategyType.CUSTOM,config)}}exports.MemoryStrategy=MemoryStrategy;
