LangGraph: add memory_instructions, fix nodes, remove BaseStore#1673
Draft
DK09876 wants to merge 3 commits into
Draft
LangGraph: add memory_instructions, fix nodes, remove BaseStore#1673DK09876 wants to merge 3 commits into
DK09876 wants to merge 3 commits into
Conversation
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>
Draft
1 task
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
memory_instructions()— standalone system prompt helper that pre-fetches memories from Hindsight. Works with any LangChain model, no graph needed.create_recall_node()now supportsrecall_typesandrecall_include_entities;create_retain_node()now supportsmetadataanddocument_id.HindsightErrorinstead of silently returning empty state on API failures.HindsightStore(BaseStore adapter) — the KV abstraction over Hindsight's semantic memory was fundamentally leaky (getunreliable,deleteno-op,list_namespacessession-scoped). Users should use tools, nodes, ormemory_instructions()instead.hindsight_api_url. README and docs examples updated accordingly.user_agentmock mismatch in client tests.Test plan
🤖 Generated with Claude Code