SelfManagedStrategyProps

class aws_cdk.aws_bedrock_agentcore_alpha.SelfManagedStrategyProps(*, name, description=None, invocation_configuration, historical_context_window_size=None, trigger_conditions=None)

Bases: MemoryStrategyCommonProps

(experimental) Configuration parameters for a self managed memory strategy existing built-in default prompts/models.

Parameters:
  • name (str) – (experimental) The name for the strategy.

  • description (Optional[str]) – (experimental) The description of the strategy. Default: - No description

  • invocation_configuration (Union[InvocationConfiguration, Dict[str, Any]]) – (experimental) Invocation configuration for self managed memory strategy.

  • historical_context_window_size (Union[int, float, None]) – (experimental) Define the number of previous events to be included when processing memory. A larger history window provides more context from past conversations. Default: 4

  • trigger_conditions (Union[TriggerConditions, Dict[str, Any], None]) – (experimental) Trigger conditions for self managed memory strategy. Default: - undefined

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
import aws_cdk as cdk
from aws_cdk import aws_sns as sns

# topic: sns.Topic

self_managed_strategy_props = bedrock_agentcore_alpha.SelfManagedStrategyProps(
    invocation_configuration=bedrock_agentcore_alpha.InvocationConfiguration(
        s3_location=cdk.aws_s3.Location(
            bucket_name="bucketName",
            object_key="objectKey",

            # the properties below are optional
            object_version="objectVersion"
        ),
        topic=topic
    ),
    name="name",

    # the properties below are optional
    description="description",
    historical_context_window_size=123,
    trigger_conditions=bedrock_agentcore_alpha.TriggerConditions(
        message_based_trigger=123,
        time_based_trigger=cdk.Duration.minutes(30),
        token_based_trigger=123
    )
)

Attributes

description

(experimental) The description of the strategy.

Default:
  • No description

Stability:

experimental

historical_context_window_size

(experimental) Define the number of previous events to be included when processing memory.

A larger history window provides more context from past conversations.

Default:

4

Stability:

experimental

invocation_configuration

(experimental) Invocation configuration for self managed memory strategy.

Stability:

experimental

name

(experimental) The name for the strategy.

Stability:

experimental

trigger_conditions

(experimental) Trigger conditions for self managed memory strategy.

Default:
  • undefined

Stability:

experimental