Metadata-Version: 2.5
Name: zizkadb-langgraph
Version: 0.1.0
Summary: LangGraph middleware for ZizkaDB — automatic causal logging per graph node
License: AGPL-3.0-or-later
Requires-Python: >=3.10
Requires-Dist: zizkadb-sdk>=0.3.0
Provides-Extra: langgraph
Requires-Dist: langgraph>=0.2.0; extra == 'langgraph'
Description-Content-Type: text/markdown

# zizkadb-langgraph

LangGraph middleware for [ZizkaDB](https://db.zizka.ai) — logs `graph_node` / `graph_node_done` with automatic `parent_id` via graph state.

```bash
pip install zizkadb-langgraph
```

```python
from zizkadb import ZizkaDB
from zizkadb_langgraph import ZizkaDBLangGraphMiddleware, wrap_node

async with ZizkaDB(host="http://localhost:8000") as db:
    async with db.track(agent="research-bot") as ctx:
        mw = ZizkaDBLangGraphMiddleware(db, agent="research-bot", session_id=ctx.session_id)

        async def retrieve(state):
            return {"docs": ["a", "b"]}

        graph.add_node("retrieve", wrap_node(mw, "retrieve", retrieve))
```

See `examples/golden-path/langgraph-rag-bot/` for the full RAG support-bot reference.
