Skip to content

feat(memory): add adapter contract for agent memory#23

Merged
drewstone merged 3 commits into
mainfrom
feat/memory-adapter
Jun 4, 2026
Merged

feat(memory): add adapter contract for agent memory#23
drewstone merged 3 commits into
mainfrom
feat/memory-adapter

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

@drewstone drewstone commented Jun 4, 2026

Summary

  • add a provider-neutral memory adapter contract under @tangle-network/agent-knowledge/memory
  • add source-record conversion so memory hits can become grounded knowledge evidence
  • add a Neo4j Agent Memory bridge without a runtime dependency on @neo4j-labs/agent-memory

Hardening

  • typecheck CI against @neo4j-labs/agent-memory@0.4.0 as a dev-only dependency
  • support the published TypeScript SDK methods: shortTerm.addMessage/searchMessages/getContext, longTerm.addEntity/addPreference/addFact/searchEntities/searchPreferences, and reasoning.getSimilarTraces
  • preserve generic search / getContext and snake_case bridge-style fallbacks
  • normalize hosted conversation context reflections, observations, and recent messages into source-grounded memory hits
  • preserve SDK unsupported-transport errors instead of masking them with fallback writes

Validation

  • pnpm exec biome check --write README.md package.json pnpm-lock.yaml src/memory tests/memory-adapter.test.ts tsup.config.ts
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • git diff --check

@drewstone drewstone marked this pull request as ready for review June 4, 2026 23:39
@drewstone drewstone merged commit 28e18fd into main Jun 4, 2026
1 check passed
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