LangGraph Plugin

Drop-in memory tools for LangGrapharrow-up-right agent workflows. Provides @tool-decorated functions for use as LangGraph nodes or LLM tool-calling.

Requirements

  • Python 3.9+

  • langgraph >= 0.2

  • langchain-core >= 0.3

Install

pip install tinyhuman-langgraph

Use make_memory_tools to create tools with credentials baked in. Credentials are never exposed to the LLM as tool parameters, preventing prompt-injection attacks.

from langchain_openai import ChatOpenAI
from tinyhuman_langgraph import make_memory_tools

tools = make_memory_tools(token="your-api-key")

# Bind to a model for LLM tool-calling
model = ChatOpenAI(model="gpt-4o").bind_tools(tools)

Usage as a LangGraph Node

Environment Variables

You can configure via environment instead of passing credentials directly:

Available Tools

Tool
Description

tinyhuman_ingest_memory

Upsert one or more memory items

tinyhuman_read_memory

Read items filtered by key / keys / namespace

tinyhuman_delete_memory

Delete items by key / keys / delete_all

Error Handling

Tools raise TinyHumanError on API failures and ValueError on invalid input. Both propagate normally through LangGraph.

Last updated