TriggerConditions

class aws_cdk.aws_bedrock_agentcore_alpha.TriggerConditions(*, message_based_trigger=None, time_based_trigger=None, token_based_trigger=None)

Bases: object

(experimental) Trigger conditions for self managed memory strategy When first condition is met, batched payloads are sent to specified S3 bucket.

Parameters:
  • message_based_trigger (Union[int, float, None]) – (experimental) Triggers memory processing when specified number of new messages is reached. Default: 1

  • time_based_trigger (Optional[Duration]) – (experimental) Triggers memory processing when the session has been idle for the specified duration. Value in seconds. Default: - 10 seconds

  • token_based_trigger (Union[int, float, None]) – (experimental) Triggers memory processing when the token size reaches the specified threshold. Default: 100

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

trigger_conditions = bedrock_agentcore_alpha.TriggerConditions(
    message_based_trigger=123,
    time_based_trigger=cdk.Duration.minutes(30),
    token_based_trigger=123
)

Attributes

message_based_trigger

(experimental) Triggers memory processing when specified number of new messages is reached.

Default:

1

Stability:

experimental

time_based_trigger

(experimental) Triggers memory processing when the session has been idle for the specified duration.

Value in seconds.

Default:
  • 10 seconds

Stability:

experimental

token_based_trigger

(experimental) Triggers memory processing when the token size reaches the specified threshold.

Default:

100

Stability:

experimental