Skip to main content

LangChain callback integration for TraceAgent.

Project description

TraceAgent LangChain Integration

GitHub Release GitHub Stars GitHub License Tests

LangChain callback handler that streams execution events into TraceAgent.

Install

pip install trace-agent-langchain

Usage

from trace_agent_sdk import TraceAgentClient
from trace_agent_langchain import TraceAgentLangChainCallback

client = TraceAgentClient("http://localhost:8000")
run = client.start_run("my-agent", "Do something")

# Attach the callback to any LangChain chain
callback = run.as_langchain_callback()
chain.invoke({"input": "hello"}, config={"callbacks": [callback]})

License

MIT

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

trace_agent_langchain-0.0.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

trace_agent_langchain-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file trace_agent_langchain-0.0.2.tar.gz.

File metadata

  • Download URL: trace_agent_langchain-0.0.2.tar.gz
  • Upload date:
  • Size: 8.5 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":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for trace_agent_langchain-0.0.2.tar.gz
Algorithm Hash digest
SHA256 44ed110fe019a74313ce03aa68896472bf87dd29deef20b1bd1556d9ef5c69b2
MD5 d2d466731d1ca2f37e7319c82eafad38
BLAKE2b-256 0438bca19eea60949121020df6504c5db1f6edf6261ca63f51e7fba266a4b140

See more details on using hashes here.

File details

Details for the file trace_agent_langchain-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: trace_agent_langchain-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for trace_agent_langchain-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c6077d733381bb320315d6adf7c9c788a59c5200c25f3a17375c18628b1210
MD5 9a7247e7fd0509636176b29b5e94fc0e
BLAKE2b-256 77d96c70f18d0d8b7f05eefee185d1c8eb15d5e5f9868ec42253df9a63ac4f2e

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