Skip to content

Enable external references by default in all memory adapters#482

Open
konard wants to merge 3 commits into
mainfrom
issue-155-6f3abe86
Open

Enable external references by default in all memory adapters#482
konard wants to merge 3 commits into
mainfrom
issue-155-6f3abe86

Conversation

@konard

@konard konard commented Sep 14, 2025

Copy link
Copy Markdown
Member

Summary

This PR addresses issue #155 by enabling external references support by default in all memory adapter classes.

  • ✅ Updated SplitMemoryLinksBase to enable external references by default
  • ✅ Updated SplitMemoryLinks to enable external references by default
  • ✅ Updated UnitedMemoryLinks to enable external references by default
  • ✅ Updated UnitedMemoryLinksBase to enable external references by default
  • ✅ Updated Link class to enable external references by default
  • ✅ Updated test constants to maintain consistency
  • ✅ All tests pass with the new configuration

Changes Made

Instead of using Default<LinksConstants<TLinkAddress>>.Instance (which disables external references), all memory adapters now use new LinksConstants<TLinkAddress>(enableExternalReferencesSupport: true) as their default configuration.

This provides better out-of-the-box functionality for users who need external references support, which is now the default behavior across all memory adapters.

Test Plan

  • All existing tests pass
  • Updated test constants to use consistent configuration
  • No breaking changes to existing API surface

Closes #155

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #155
@konard konard self-assigned this Sep 14, 2025
This change addresses issue #155 by enabling external references support
by default in all memory adapter classes. The following changes were made:

- Updated SplitMemoryLinksBase, SplitMemoryLinks, UnitedMemoryLinks,
  UnitedMemoryLinksBase, and Link classes to use LinksConstants with
  enableExternalReferencesSupport: true instead of Default instance
- Updated ResizableDirectMemoryLinksTests to use consistent constants
- All tests pass with the new default configuration

The change provides better out-of-the-box functionality for users who
need external references support, which is now the default behavior.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Should we enable external references by default in all memory adapters? Enable external references by default in all memory adapters Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 01:37
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.

Should we enable external references by default in all memory adapters?

1 participant