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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lookspan_langgraph-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lookspan_langgraph-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccd99c4a9b3fcbcc438592552af840fff99f0019b3aa08130aa10f8e61204302
MD5 6004df3cc9da0c7bd61b2fd8adfbf950
BLAKE2b-256 36b2d2288b7e590bcc53890f90eb06a897735281b3ac3612f2171a18d29f51dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lookspan_langgraph-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lookspan_langgraph-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60feedaa90af762403f633554ae380a79a8d3833323480190a15929c32dab933
MD5 5080668855aed7cb140a161a9e50f0dc
BLAKE2b-256 677a14ec0d520a77e59c459bdc1c92df8df5c22f384add638ee55becca9ae28a

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