LangGraph integration for GoodMem: long-term agent memory with semantic storage and retrieval.
Project description
langgraph-goodmem
LangGraph integration for GoodMem — long-term agent memory with semantic storage and retrieval.
GoodMem is a memory layer for AI agents that handles embedding, vector search, reranking, and LLM-powered answering server-side. This package exposes GoodMem operations as LangGraph tools that can be used with any LangGraph agent or graph.
Installation
pip install langgraph-goodmem
Requires Python 3.10+.
Tools
| Tool | Description |
|---|---|
GoodMemListEmbedders |
List available embedder models |
GoodMemListSpaces |
List all spaces in your account |
GoodMemGetSpace |
Fetch a specific space by ID |
GoodMemCreateSpace |
Create a new space or reuse an existing one |
GoodMemUpdateSpace |
Update a space's name or metadata |
GoodMemDeleteSpace |
Delete a space and all of its memories |
GoodMemCreateMemory |
Store text or files as memories |
GoodMemListMemories |
List memories in a space |
GoodMemGetMemory |
Fetch a specific memory by ID |
GoodMemRetrieveMemories |
Semantic similarity search across spaces |
GoodMemDeleteMemory |
Permanently delete a memory |
Quick start
from langgraph_goodmem import (
GoodMemCreateSpace,
GoodMemCreateMemory,
GoodMemRetrieveMemories,
)
from langgraph.prebuilt import create_react_agent
goodmem_kwargs = {
"goodmem_base_url": "http://localhost:8080",
"goodmem_api_key": "your-api-key",
}
tools = [
GoodMemCreateSpace(**goodmem_kwargs),
GoodMemCreateMemory(**goodmem_kwargs),
GoodMemRetrieveMemories(**goodmem_kwargs),
]
agent = create_react_agent(model="gpt-4o", tools=tools)
Usage in a custom LangGraph graph
from langgraph.graph import StateGraph, START, END
from langgraph.prebuilt import ToolNode
from langgraph_goodmem import (
GoodMemCreateSpace,
GoodMemCreateMemory,
GoodMemRetrieveMemories,
)
tools = [
GoodMemCreateSpace(**goodmem_kwargs),
GoodMemCreateMemory(**goodmem_kwargs),
GoodMemRetrieveMemories(**goodmem_kwargs),
]
tool_node = ToolNode(tools)
Environment variables
| Variable | Description |
|---|---|
GOODMEM_BASE_URL |
Base URL of the GoodMem API server |
GOODMEM_API_KEY |
API key for authentication |
GOODMEM_VERIFY_SSL |
Set to false to skip TLS verification for self-signed certs (default: true) |
Example
A full ReAct agent example is in examples/react_agent_with_memory.py.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langgraph_goodmem-0.1.0.tar.gz.
File metadata
- Download URL: langgraph_goodmem-0.1.0.tar.gz
- Upload date:
- Size: 108.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afe35a7ae1ad5f1c342da54fc2a591316bf7243255974788e4b95f0f7a34cc7
|
|
| MD5 |
e5fabb60a9d76354e80e5a344d00b5bf
|
|
| BLAKE2b-256 |
7a213153ab40c59b9a72e4f9c2ef56559df12e70fd95f5bac206051d0ed1c7a5
|
Provenance
The following attestation bundles were made for langgraph_goodmem-0.1.0.tar.gz:
Publisher:
release.yml on PAIR-Systems-Inc/goodmem-langgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_goodmem-0.1.0.tar.gz -
Subject digest:
2afe35a7ae1ad5f1c342da54fc2a591316bf7243255974788e4b95f0f7a34cc7 - Sigstore transparency entry: 1453225697
- Sigstore integration time:
-
Permalink:
PAIR-Systems-Inc/goodmem-langgraph@ea6073e24a10c01be40cd17bdd84b26de7b648a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PAIR-Systems-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea6073e24a10c01be40cd17bdd84b26de7b648a9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file langgraph_goodmem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langgraph_goodmem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa952aeae457b1628aa712a219c70879113efc283c6ebed12a66eaf5d06c5a07
|
|
| MD5 |
77f5c20cf5d107aa35e03b9fec738124
|
|
| BLAKE2b-256 |
47292dc8bcfbabd9141811fee4e07b525e42075593fd0825e85b2766d7883c6a
|
Provenance
The following attestation bundles were made for langgraph_goodmem-0.1.0-py3-none-any.whl:
Publisher:
release.yml on PAIR-Systems-Inc/goodmem-langgraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langgraph_goodmem-0.1.0-py3-none-any.whl -
Subject digest:
fa952aeae457b1628aa712a219c70879113efc283c6ebed12a66eaf5d06c5a07 - Sigstore transparency entry: 1453225772
- Sigstore integration time:
-
Permalink:
PAIR-Systems-Inc/goodmem-langgraph@ea6073e24a10c01be40cd17bdd84b26de7b648a9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/PAIR-Systems-Inc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea6073e24a10c01be40cd17bdd84b26de7b648a9 -
Trigger Event:
push
-
Statement type: