Skip to main content

Lookspan adapter for LangChain / LangGraph — emits spans for chains, LLM calls, and tools.

Project description

lookspan-langgraph

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

Install

pip install lookspan-langgraph

Quick start

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()

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

lookspan_langgraph-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

lookspan_langgraph-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file lookspan_langgraph-0.1.0.tar.gz.

File metadata

  • Download URL: lookspan_langgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for lookspan_langgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 236e992b0377ee1292621c24ebd59a5e71852a208b2e142b4c0cea24b925cfd6
MD5 28ac2abd4e79cbeee5ac6993cc38c1ad
BLAKE2b-256 68bef742a4200eb80069df883981e8e095baa2cf0c4722903bb735f41791713e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lookspan_langgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8378ca1f797f666077e26345503a3f1f6d63ee12e061e49d70214b3b7d3ca9d
MD5 5a71a4bcefeb3a185f98cf77749b57c0
BLAKE2b-256 8c482536ed24146787c715fc46944b970d6ede8de1126b51c080919336b7dd8c

See more details on using hashes here.

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