Repository navigation
GML-2370 feat(deepagent): Run Agent mode on a Deep Agent with on-prem memory; - #74
Merged
Merged
Conversation
Agent mode now answers each question with a single LangChain Deep Agent
(deepagents.create_deep_agent on LangGraph) instead of the triage /
planner / executor / synthesizer pipeline. The model decides whether tools
are needed, plans with write_todos, delegates to graph-analyst and
document-researcher subagents, and returns a structured DeepAgentAnswer.
Tools (graphrag/app/deep_agent/tools.py), run as the logged-in user:
- GraphRAG: get_graph_schema, query_graph (MapQuestionToSchema +
GenerateFunction, GenerateCypher fallback), hybrid/similarity/
contextual/community search over the existing retrievers
- TigerGraph (read-only pyTigerGraph): vertex/edge counts, vertex and
edge lookups, list/run installed queries (GraphRAG maintenance and
mutating-named queries blocked), read-only openCypher when USE_CYPHER
- MCP add-on tools configured for the graph
Memory (graphrag/app/deep_agent/memory.py):
- STM: LangGraph checkpointer, thread per graph:user:conversation
- LTM: LangGraph store routed at /memories/ (per user and graph),
/memories/AGENTS.md loaded into every conversation
- SQLite by default, Postgres optional, in-memory fallback; token logins
that do not identify a user keep no memory
REST: /{graph}/agent/chat, /agent/tools, /agent/threads, /agent/memories.
Existing chat and query endpoints use the Deep Agent in Agent mode;
graphrag_config.agent_engine="legacy" restores the previous engine.
Knowledge-graph creation, ingestion and the Classic engine are unchanged.
…ther agents
nginx (configs/nginx.conf, a symlink to docs/tutorials/configs/nginx.conf) forwards
/{graph}/agent/{chat,tools,threads,memories} to the backend with a 600 s read
timeout, so external callers can use port 80. docs/DeepAgent.md gains
instructions, a tool definition and examples for agents that call
/{graph}/agent/chat.
The Agent mode engine setting had no stable name for the default engine, and the Deep Agent was documented in a separate file outside the README. - Agent mode engine is "default", "deepagent" or "legacy"; "default" is used when the setting is absent - "deepagent" keeps selecting the Deep Agent if the default engine changes - README describes the Deep Agent, agent memory, the agent API and its settings - Planned / Reactive settings are marked as legacy-engine only - Remove the separate Deep Agent document
The license list did not include deepagents, and its counts and entries did not match the license files that ship with GraphRAG. - Add the deepagents MIT license - List exactly the license files in the folder, with correct counts - State that one dependency uses the GNU AGPL 3.0, the same license as GraphRAG
Agent memory was lost when a container was recreated in deployments without a separate data volume. - Store each graph's conversations and memories in its own file under configs - Remove the extra data volume and the memory environment variables - Remove the unused Postgres memory option - Describe the change in the README and CHANGELOG for users and operators Refs: GML-2370
In the container, conversations and memories were kept only until restart. - Open the memory file at its real location on the configs volume Refs: GML-2370
prinskumar-tigergraph
previously requested changes
Nov 13, 2026
prinskumar-tigergraph
approved these changes
Nov 13, 2026
prinskumar-tigergraph
left a comment
Contributor
There was a problem hiding this comment.
tested the branch , does not any real bug
approved
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
configs/graph_data/<graph>/, with no extra volume/{graph}/agent/chat,/agent/tools,/agent/threads,/agent/memories, also routed through nginx on port 80agent_engineselects the engine:"default"(used when unset, currently the Deep Agent),"deepagent"or"legacy"deepagentslicense and corrects the license listContract change: Agent mode, on the existing chat and query endpoints too, now runs the Deep Agent by default. The Planned / Reactive styles run only with
agent_engine: "legacy".Overlap: #71 (GML-2193) also adds short-term and long-term agent memory, with a different store. The two need to be reconciled before both merge.
Verification
27 Deep Agent unit tests pass in the graphrag image with
deepagents0.7.32 installed. The engine setting and the per-graph memory files were not run against a live instance.