⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@tianAndrew
Copy link
Contributor

Purpose of the change

Add MemMachine Integration Guide for langchain.

Description

Add MemMachine Integration Guide for langchain. Use MemMachine MCP.

Fixes/Closes

Fixes #783 #784

Type of change

[Please delete options that are not relevant.]

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (does not change functionality, e.g., code style improvements, linting)
  • Documentation update
  • Project Maintenance (updates to build scripts, CI, etc., that do not affect the main project)
  • Security (improves security without changing functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

[Please delete options that are not relevant.]

  • Unit Test
  • Integration Test
  • End-to-end Test
  • Test Script (please provide)
  • Manual verification (list step-by-step instructions)

Test Results: [Attach logs, screenshots, or relevant output]

(base) andrew@andrewdeMBP MemMachine % python integrations/langchain/test_memory.py
============================================================
LangChain + MemMachine Integration Tests
============================================================

Checking MemMachine server at http://localhost:8080...
✓ MemMachine server is available at http://localhost:8080

✓ LangChain integration is available

Running basic workflow test...
------------------------------------------------------------
Test IDs: test_langchain_org_9114c157/test_langchain_project_c72594df

   Saving context: 'My name is Bob and I love Python'
   ✓ Context saved
   Waiting for indexing...
   Loading memory variables...
   History length: 66
   History preview: Human: My name is Bob and I love Python
AI: Nice to meet you, Bob!
   Loading memory for preferences...
   History: human: my name is bob and i love python
ai: nice to meet you, bob!
human: i also like machine learning
ai: that's interesting!

✓ Basic workflow test passed!

============================================================
All tests passed!
============================================================

To run full test suite with pytest:
  pytest integrations/langchain/test_memory.py -v -m integration

Note: Some tests may require additional dependencies (e.g., langchain)

Checklist

[Please delete options that are not relevant.]

  • I have signed the commit(s) within this pull request
  • My code follows the style guidelines of this project (See STYLE_GUIDE.md)
  • I have performed a self-review of my own code
  • I have commented my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • Confirmed all checks passed
  • Contributor has signed the commit(s)
  • Reviewed the code
  • Run, Tested, and Verified the change(s) work as expected

Screenshots/Gifs

[If applicable, add screenshots or GIFs that show the changes in action. This is especially helpful for API responses. Otherwise, delete this section or type "N/A".]

Further comments

[Add any other relevant information here, such as potential side effects, future considerations, or any specific questions for the reviewer. Otherwise, type "None".]

@tianAndrew tianAndrew self-assigned this Jan 13, 2026
@tianAndrew tianAndrew force-pushed the langchain branch 6 times, most recently from 97df3d0 to 8dc8ba2 Compare January 13, 2026 09:02
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.

[Feat]: Add MemMachine Integration Guide for LangChain

2 participants