Metadata-Version: 2.4
Name: lookspan-langgraph
Version: 0.1.0
Summary: Lookspan adapter for LangChain / LangGraph — emits spans for chains, LLM calls, and tools.
Project-URL: Homepage, https://github.com/JoniMartin27/lookspan
Project-URL: Issues, https://github.com/JoniMartin27/lookspan/issues
Author: Jonathan Martin
License: MIT
Keywords: langchain,langgraph,lookspan,observability,tracing
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
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
Requires-Dist: langchain-core>=0.3.0
Requires-Dist: lookspan>=0.1.0
Provides-Extra: langgraph
Requires-Dist: langgraph>=0.2.0; extra == 'langgraph'
Description-Content-Type: text/markdown

# lookspan-langgraph

Drop-in callback handler that streams every chain, LLM call, and tool invocation
to your local Lookspan dashboard.

## Install

```bash
pip install lookspan-langgraph
```

## Quick start

```python
from lookspan import LookspanClient
from lookspan_langgraph import LookspanCallbackHandler

client = LookspanClient(endpoint="http://127.0.0.1:3100/api/ingest")
handler = LookspanCallbackHandler(client=client, agent_id="my-agent")

# LangChain
result = chain.invoke({"input": "hello"}, config={"callbacks": [handler]})

# LangGraph
result = graph.invoke({"messages": []}, config={"callbacks": [handler]})

client.flush()
```
