Metadata-Version: 2.4
Name: hipp0-langgraph
Version: 0.1.0
Summary: Hipp0 integration for LangGraph — checkpoint saver and context injection.
Author: Perlantir
License: MIT
Project-URL: Homepage, https://github.com/perlantir/Hipp0
Project-URL: Repository, https://github.com/perlantir/Hipp0
Keywords: hipp0,langgraph,multi-agent,memory,checkpointer
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: hipp0-memory>=0.1.0
Requires-Dist: langgraph-checkpoint>=2.0.0

# hipp0-langgraph

Hipp0 integration for [LangGraph](https://langchain-ai.github.io/langgraph/) - persistent decision memory and checkpointing for LangGraph agents.

## Installation

```bash
pip install hipp0-langgraph
```

## Usage

### Checkpointer

```python
from hipp0_sdk import Hipp0Client
from hipp0_langgraph import Hipp0Checkpointer
from langgraph.graph import StateGraph

client = Hipp0Client(base_url="http://localhost:3100")
checkpointer = Hipp0Checkpointer(
    client=client,
    project_id="your-project-id",
    agent_name="orchestrator",
)

graph = StateGraph(MyState)
# ... add nodes / edges ...
app = graph.compile(checkpointer=checkpointer)
```

### Context Injection

```python
from hipp0_langgraph import inject_hipp0_context

def my_node(state):
    context = inject_hipp0_context(
        client=client,
        project_id="your-project-id",
        agent_name="builder",
        task_description=state["task"],
    )
    # Use context in your agent's system message
    return {"context": context, **state}
```
