You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhance(bedrockagentcore_memory_strategy): add reflection_configuration for EPISODIC type
Adds support for configuring reflection behavior in both built-in EPISODIC
and CUSTOM EPISODIC_OVERRIDE memory strategies.
For built-in EPISODIC strategies, a new optional reflection_configuration
block allows users to customize where cross-episode reflection records are
stored via namespace_templates.
For CUSTOM strategies with EPISODIC_OVERRIDE type, a new optional
reflection block inside configuration allows full customization of
the reflection step including append_to_prompt, model_id, and
namespace_templates.
Closes#47938
@@ -180,6 +231,7 @@ The following arguments are optional:
180
231
181
232
*`region` - (Optional) Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the [provider configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#aws-configuration-reference).
182
233
*`description` - (Optional) Description of the memory strategy.
234
+
*`reflection_configuration` - (Optional) Reflection configuration block for built-in `EPISODIC` strategies. Controls where reflections (cross-episode insights) are stored. Must be omitted when `type` is not `EPISODIC`. See [`reflection_configuration`](#reflection_configuration) below.
183
235
*`configuration` - (Optional) Custom configuration block. Required when `type` is `CUSTOM`, must be omitted for other types. See [`configuration`](#configuration) below.
184
236
185
237
### `configuration`
@@ -189,6 +241,7 @@ The `configuration` block supports the following:
189
241
*`type` - (Required) Type of custom override. Valid values: `SEMANTIC_OVERRIDE`, `SUMMARY_OVERRIDE`, `USER_PREFERENCE_OVERRIDE`, `EPISODIC_OVERRIDE`. Changing this forces a new resource.
190
242
*`consolidation` - (Optional) Consolidation configuration for processing and organizing memory content. See [`consolidation`](#consolidation) below. Once added, this block cannot be removed without recreating the resource.
191
243
*`extraction` - (Optional) Extraction configuration for identifying and extracting relevant information. See [`extraction`](#extraction) below. Cannot be used with `type` set to `SUMMARY_OVERRIDE`. Once added, this block cannot be removed without recreating the resource.
244
+
*`reflection` - (Optional) Reflection configuration for customizing the reflection step. Only valid when `type` is `EPISODIC_OVERRIDE`. See [`reflection`](#reflection) below. Once added, this block cannot be removed without recreating the resource.
192
245
193
246
### `consolidation`
194
247
@@ -204,6 +257,21 @@ The `extraction` block supports the following:
204
257
*`append_to_prompt` - (Required) Additional text to append to the model prompt for extraction processing.
205
258
*`model_id` - (Required) ID of the foundation model to use for extraction processing.
206
259
260
+
### `reflection`
261
+
262
+
The `reflection` block supports the following (only valid when `configuration.type` is `EPISODIC_OVERRIDE`):
263
+
264
+
*`append_to_prompt` - (Required) Additional text to append to the model prompt for reflection processing.
265
+
*`model_id` - (Required) ID of the foundation model to use for reflection processing.
266
+
*`namespace_templates` - (Optional) Set of namespace templates where reflection records are stored. Can be less nested than episode namespaces.
267
+
268
+
### `reflection_configuration`
269
+
270
+
The `reflection_configuration` block supports the following (only valid when `type` is `EPISODIC`):
271
+
272
+
*`namespace_templates` - (Optional) Set of namespace templates where reflection records are stored. Can be less nested than episode namespaces. If omitted, defaults to the episodic namespaces.
273
+
274
+
207
275
## Attribute Reference
208
276
209
277
This resource exports the following attributes in addition to the arguments above:
0 commit comments