Skip to content

feat: LangGraph + Memanto customer support agent with persistent cross-session memory#1

Open
crowniteto wants to merge 2 commits into
mainfrom
langgraph-memanto-customer-support
Open

feat: LangGraph + Memanto customer support agent with persistent cross-session memory#1
crowniteto wants to merge 2 commits into
mainfrom
langgraph-memanto-customer-support

Conversation

@crowniteto
Copy link
Copy Markdown
Owner

Summary

Adds a complete LangGraph integration example that demonstrates persistent cross-session memory via Memanto.

Architecture

LangGraph StateGraph <-> Memanto Memory Layer
                            |
                     Moorcheh Cloud (semantic search)

Graph Structure

START -> intake -> respond -> remember -> END

Key Features

  • intake node: Classifies customer intent + recalls relevant memories from Memanto
  • respond node: Generates LLM response enriched with recalled Memanto context
  • remember node: Extracts key insights and stores them back to Memanto for future sessions
  • Cross-session recall: Memories persist in Moorcheh cloud, NOT in LangGraph thread state
  • Session 2 can recall context from Session 1 with zero shared state between them

Files Added

  • examples/langgraph-memanto/agent.py - Main agent module with MemantoMemoryManager, SupportState, graph nodes, and builder
  • examples/langgraph-memanto/run_example.py - Two-session demo runner
  • examples/langgraph-memanto/test_agent.py - 9 unit tests (all passing)
  • examples/langgraph-memanto/README.md - Architecture and usage documentation
  • examples/langgraph-memanto/requirements.txt - Python dependencies
  • examples/langgraph-memanto/.env.example - Environment variable template

Test Results

9 passed, 2 warnings in 1.26s

Memory Types Supported

fact, preference, decision, event, observation, commitment, context, error

The agent uses the LLM to automatically extract and classify memories worth persisting across sessions.

crow-agent and others added 2 commits May 22, 2026 20:29
Adds a complete LangGraph integration package (integrations/langgraph/)
and example (examples/langgraph-memanto/) that demonstrates:

- Cross-session recall: Agent remembers findings from previous sessions
- Typed semantic memory: 13 memory categories with confidence scoring
- AI-driven confidence scoring: Agent self-evaluates certainty before storing
- Contradiction detection: Conflicting memories flagged with versioning
- Three Memanto primitives: remember, recall, answer
- LangChain tool wrappers: Compatible with LangGraph prebuilt ReAct agent
- Pre-built StateGraph workflow: Conditional routing based on query intent
- Agent lifecycle management: MemantoSetup handles create/activate/deactivate

Package: langgraph-memanto (pip-installable)
Example: Customer support agent with session persistence demo
Tests: 17 unit tests with mocked SdkClient (all passing)

Closes moorcheh-ai#547
- Customer support agent with persistent cross-session memory via Memanto
- Three-node LangGraph workflow: intake -> respond -> remember
- intake node: classifies intent + recalls relevant memories from Memanto
- respond node: generates LLM response enriched with recalled context
- remember node: extracts and stores key insights back to Memanto
- Cross-session recall: memories persist in Moorcheh cloud, not thread state
- Session 2 can recall context from Session 1 with no shared state
- Includes MemantoMemoryManager wrapper class
- 9 unit tests covering state, nodes, JSON extraction, confidence clamping
- README with architecture, quick start, and memory type documentation
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