Skip to content

LangGraph: add memory_instructions, fix nodes, remove BaseStore#1673

Draft
DK09876 wants to merge 3 commits into
mainfrom
dk/langgraph-docs-and-cookbook
Draft

LangGraph: add memory_instructions, fix nodes, remove BaseStore#1673
DK09876 wants to merge 3 commits into
mainfrom
dk/langgraph-docs-and-cookbook

Conversation

@DK09876
Copy link
Copy Markdown
Contributor

@DK09876 DK09876 commented May 20, 2026

Summary

  • Add memory_instructions() — standalone system prompt helper that pre-fetches memories from Hindsight. Works with any LangChain model, no graph needed.
  • Fix node parameter gapscreate_recall_node() now supports recall_types and recall_include_entities; create_retain_node() now supports metadata and document_id.
  • Fix silent error handling — nodes now raise HindsightError instead of silently returning empty state on API failures.
  • Remove HindsightStore (BaseStore adapter) — the KV abstraction over Hindsight's semantic memory was fundamentally leaky (get unreliable, delete no-op, list_namespaces session-scoped). Users should use tools, nodes, or memory_instructions() instead.
  • Cloud-first defaults — default URL points to Hindsight Cloud; self-hosted users override via hindsight_api_url. README and docs examples updated accordingly.
  • Fix pre-existing test failuresuser_agent mock mismatch in client tests.

Test plan

  • 52 unit tests pass
  • 13 E2E tests pass against live Hindsight (tools: 4, nodes: 6, memory_instructions: 3)
  • CI passes

🤖 Generated with Claude Code

DK09876 and others added 2 commits May 19, 2026 10:53
Adds embeddable code snippets covering all three LangGraph integration
patterns: tools (ReAct agent), memory nodes, BaseStore, and constructor
options. Follows the same [docs:section] pattern as ai-sdk.ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…eStore

- Add memory_instructions() for standalone LangChain use without a graph
- Add recall_types, recall_include_entities to create_recall_node()
- Add metadata, document_id to create_retain_node()
- Nodes now raise HindsightError instead of silently swallowing errors
- Remove HindsightStore (BaseStore adapter) — leaky KV abstraction over
  semantic memory (get unreliable, delete no-op, list session-scoped)
- Update README: cloud-first examples, add memory_instructions section
- Update docs example: replace base-store with memory-instructions snippet
- Fix pre-existing test failures (user_agent mock mismatch)
- 52 unit tests pass, 13 E2E tests pass

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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