Skip to content

Commit 379b2a7

Browse files
committed
removed custom in-memory
1 parent c31bb49 commit 379b2a7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

langchain/shopping-agent/agents/agent.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from langgraph.graph.message import AnyMessage, add_messages
99
from langgraph.managed.is_last_step import RemainingSteps
1010
from langgraph.store.base import BaseStore
11-
from langgraph.store.memory import InMemoryStore
1211
from langgraph.types import interrupt
1312

1413
from agents.subagents import invoice_subagent, opensearch_subagent
@@ -221,7 +220,7 @@ def route_after_supervisor(state: State) -> str:
221220
workflow_builder.add_edge("invoice_agent", "create_memory")
222221
workflow_builder.add_edge("create_memory", END)
223222

224-
# Create in-memory store for customer preferences/memory
225-
memory_store = InMemoryStore()
226-
227-
graph = workflow_builder.compile(name="multi_agent_verify", store=memory_store)
223+
# Compile the graph
224+
# LangGraph API (dev or cloud) provides managed persistence automatically.
225+
# Do not use a custom store - the platform handles it.
226+
graph = workflow_builder.compile(name="multi_agent_verify")

0 commit comments

Comments
 (0)