Skip to main content

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

Metadata

Release files for trace-agent-langchain 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trace-agent-langchain 0.0.3
File Size Uploaded
trace_agent_langchain-0.0.3.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trace-agent-langchain 0.0.3
File Interpreter ABI Platform
trace_agent_langchain-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / trace_agent_langchain-0.0.3.tar.gz

Download URL trace_agent_langchain-0.0.3.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9d13856194579a6e27d6ab0c6bfc697208eaa87e423143827c9788f4b60f613a
BLAKE2b-256 checksum
How to use checksums
d2897d01b071a89ff47efe35b974da7dd636cca328037d2f9865507892119d64
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / trace_agent_langchain-0.0.3-py3-none-any.whl

Download URL trace_agent_langchain-0.0.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
001ff7a4694ee7199f1e5b5ab690d32fafc094b17c10b9d8239686db1f7b8057
BLAKE2b-256 checksum
How to use checksums
e4275e9e1460028a477e381003719b25ed26fe07768de668f242fe4ca5f9be03
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page