Skip to content

add metadata support for LTM#481

Open
nborges-aws wants to merge 2 commits into
mainfrom
feature/ltm-metadata-support
Open

add metadata support for LTM#481
nborges-aws wants to merge 2 commits into
mainfrom
feature/ltm-metadata-support

Conversation

@nborges-aws
Copy link
Copy Markdown
Contributor

Description of changes:
Adds support for AgentCore Memory's long-term metadata feature on the data plane and control plane.

Indexed keys (control plane):

  • MemoryClient.create_memory(), create_memory_and_wait(), and create_or_get_memory() accept an optional indexed_keys: List[IndexedKey] parameter
  • New IndexedKey TypedDict and MetadataValueType enum in bedrock_agentcore.memory.models. IndexedKey.build(key, value_type)
  • update_memory(addIndexedKeys=...) is supported via the existing passthrough on MemoryClient

Metadata filters (data plane):

  • MemoryClient.retrieve_memories() and MemorySessionManager.search_long_term_memories() accept optional metadata_filters: List[MemoryMetadataFilter]
  • Builder method MemoryMetadataFilter.build_expression(left, operator, right=None) constructs a filter dict for boto3
  • MemoryRecordRightExpression exposes build_string, build_number, build_datetime, and build_string_list factories that match the four service-side value types

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 16, 2026

✅ No Breaking Changes Detected

No public API breaking changes found in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant