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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trace_agent_langchain-0.0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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.3.tar.gz
Algorithm Hash digest
SHA256 9d13856194579a6e27d6ab0c6bfc697208eaa87e423143827c9788f4b60f613a
MD5 031586a8d2d6645095b9634462a5a96d
BLAKE2b-256 d2897d01b071a89ff47efe35b974da7dd636cca328037d2f9865507892119d64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trace_agent_langchain-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 001ff7a4694ee7199f1e5b5ab690d32fafc094b17c10b9d8239686db1f7b8057
MD5 636cc31b44b84503532da51bab514707
BLAKE2b-256 e4275e9e1460028a477e381003719b25ed26fe07768de668f242fe4ca5f9be03

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