Skip to main content

LangGraph integration for GoodMem: long-term agent memory with semantic storage and retrieval.

Project description

langgraph-goodmem

PyPI License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_goodmem-0.1.0.tar.gz (108.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langgraph_goodmem-0.1.0-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

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

Hashes for langgraph_goodmem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2afe35a7ae1ad5f1c342da54fc2a591316bf7243255974788e4b95f0f7a34cc7
MD5 e5fabb60a9d76354e80e5a344d00b5bf
BLAKE2b-256 7a213153ab40c59b9a72e4f9c2ef56559df12e70fd95f5bac206051d0ed1c7a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for langgraph_goodmem-0.1.0.tar.gz:

Publisher: release.yml on PAIR-Systems-Inc/goodmem-langgraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langgraph_goodmem-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_goodmem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa952aeae457b1628aa712a219c70879113efc283c6ebed12a66eaf5d06c5a07
MD5 77f5c20cf5d107aa35e03b9fec738124
BLAKE2b-256 47292dc8bcfbabd9141811fee4e07b525e42075593fd0825e85b2766d7883c6a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page