Open
Conversation
Add EPISODIC as a new memory strategy type across the CLI:
- Schema enum with default episode namespace (/strategy/{memoryStrategyId}/actor/{actorId}/)
- Default reflection namespaces for episodic (required by the service)
- reflectionNamespaces field on MemoryStrategy schema
- CLI validation, help text, and TUI descriptions
- longAndShortTerm preset now includes EPISODIC
- LLM-compacted schema and AGENTS.md docs
- Unit and integration tests
Add Zod refinement to MemoryStrategySchema that requires reflectionNamespaces when strategy type is EPISODIC, matching the AWS service requirement. Update docs/commands.md and docs/memory.md to document the EPISODIC strategy and reflectionNamespaces field.
- Add strands-bedrock-memory E2E test that deploys with longAndShortTerm memory (includes all 4 strategies including EPISODIC) - Extend e2e-helper to support configurable memory option - Strengthen integ create-memory test to verify EPISODIC strategy is present with reflectionNamespaces in longAndShortTerm preset
- create.test.ts: verify EPISODIC with namespaces and reflectionNamespaces in longAndShortTerm preset - add-remove-resources integ: verify `add memory --strategies EPISODIC` persists reflectionNamespaces in agentcore.json - TUI test: drive Add Memory wizard through strategy multi-select, verify EPISODIC is persisted with correct config in agentcore.json
Contributor
Coverage Report
|
…or EPISODIC namespaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reflectionNamespaces(service requirement); enforced via Zod schema refinementlongAndShortTermmemory preset now includes all 4 strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC)Depends on CDK PR: https://github.com/aws/agentcore-l3-cdk-constructs/pull/108
TUI Walkthrough
1. Select "Add" from the main menu
2. Choose "Memory" resource
3. Enter memory name
4. Strategy picker now shows EPISODIC
5. All 4 strategies selected including EPISODIC
6. Review screen confirms EPISODIC
7. Memory created successfully
8. Resulting agentcore.json
EPISODIC strategy is persisted with both
namespacesandreflectionNamespaces:{ "type": "EPISODIC", "namespaces": ["/episodes/{actorId}/{sessionId}"], "reflectionNamespaces": ["/reflections/{actorId}"] }Test plan
add memory --strategies EPISODICverifies reflectionNamespaces in config