Need memory support - tools with InjectedStore don't work #42

Closed
opened 2026-02-16 08:19:35 -05:00 by yindo · 1 comment
Owner

Originally created by @cris-m on GitHub (Sep 12, 2025).

I'm trying to use deepagents with tools that need persistent memory (using InjectedStore from LangGraph), but it's not working because deepagents doesn't support the store parameter.
LangGraph's create_react_agent has a store parameter for this, but deepagents doesn't expose it. Looking at the source code, the _agent_builder function calls create_react_agent but doesn't pass through any store parameter.
This means I can't build agents that remember things between conversations like user preferences, accumulated research data, or any persistent context.

Originally created by @cris-m on GitHub (Sep 12, 2025). I'm trying to use `deepagents` with tools that need persistent memory (using `InjectedStore` from LangGraph), but it's not working because `deepagents` doesn't support the store parameter. LangGraph's create_react_agent has a store parameter for this, but deepagents doesn't expose it. Looking at the source code, the `_agent_builder` function calls `create_react_agent` but doesn't pass through any store parameter. This means I can't build agents that remember things between conversations like user preferences, accumulated research data, or any persistent context.
yindo closed this issue 2026-02-16 08:19:35 -05:00
Author
Owner

@hwchase17 commented on GitHub (Sep 18, 2025):

we are making larger changes, so will probably not change this now, but as a workaround you can attach this after the fact

agent = create_deep_agent()
agent.store = store
@hwchase17 commented on GitHub (Sep 18, 2025): we are making larger changes, so will probably not change this now, but as a workaround you can attach this after the fact ``` agent = create_deep_agent() agent.store = store ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagents#42