[PR #3044] docs: add Work Ledger callback handler integration #3124

Open
opened 2026-06-05 18:21:10 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3044
Author: @metawake
Created: 3/10/2026
Status: 🔄 Open

Base: mainHead: add-work-ledger-callback


📝 Commits (1)

  • 58c8abb docs: add Work Ledger callback handler integration

📊 Changes

1 file changed (+97 additions, -0 deletions)

View changed files

src/oss/python/integrations/callbacks/work_ledger.mdx (+97 -0)

📄 Description

Summary

Adds an integration page for Work Ledger under Python > Integrations > Callbacks.

Work Ledger is an open-source tool (MIT) for recording, diffing, and regression-testing LangChain runs. It ships a WorkLedgerCallbackHandler that inherits from BaseCallbackHandler and captures LLM calls, tool invocations, retriever queries, and chain I/O with token metrics and causal links.

Related feature request: https://github.com/langchain-ai/langchain/issues/35725

Changes

  • Added src/oss/python/integrations/callbacks/work_ledger.mdx

Notes

  • docs.json navigation update may be needed — happy to add it if you point me to the right section
  • The handler has been tested with real OpenAI API calls through langchain-openai
  • 276 tests passing, no heavy dependencies

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3044 **Author:** [@metawake](https://github.com/metawake) **Created:** 3/10/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-work-ledger-callback` --- ### 📝 Commits (1) - [`58c8abb`](https://github.com/langchain-ai/docs/commit/58c8abb2a12b49bb7049d8b5e937e8d1ce97e893) docs: add Work Ledger callback handler integration ### 📊 Changes **1 file changed** (+97 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `src/oss/python/integrations/callbacks/work_ledger.mdx` (+97 -0) </details> ### 📄 Description ## Summary Adds an integration page for [Work Ledger](https://github.com/metawake/work-ledger) under Python > Integrations > Callbacks. Work Ledger is an open-source tool (MIT) for recording, diffing, and regression-testing LangChain runs. It ships a `WorkLedgerCallbackHandler` that inherits from `BaseCallbackHandler` and captures LLM calls, tool invocations, retriever queries, and chain I/O with token metrics and causal links. Related feature request: https://github.com/langchain-ai/langchain/issues/35725 ## Changes - Added `src/oss/python/integrations/callbacks/work_ledger.mdx` ## Notes - `docs.json` navigation update may be needed — happy to add it if you point me to the right section - The handler has been tested with real OpenAI API calls through `langchain-openai` - 276 tests passing, no heavy dependencies --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:21:10 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3124