Deprecate panel.langchain.PanelCallbackHandler
proposal
#7470
Labels
deprecation
A proposal to deprecate a feature
panel.langchain.PanelCallbackHandler
proposal
#7470
https://panel.holoviz.org/reference/chat/PanelCallbackHandler.html
Feature Overview
The panel.langchain.PanelCallbackHandler was introduced to address challenges in streaming LangChain outputs and showing tool usage--for reference, see the original discussion in HoloViz Discourse.
Deprecation Proposal
I propose deprecating this feature in Panel and migrating it to the langchain-community repository. This aligns with how similar callback handlers, such as the StreamlitCallbackHandler, are managed. By moving this to the LangChain ecosystem, the feature becomes more discoverable to LangChain users and fosters community-driven development.
Impact Assessment
The feature does not appear to have widespread adoption, but there were notably a:
Feature request
Bug report
The suggested alternative is to use LangChain’s LCEL with a custom callback in ChatFeed or Interface.
Effort Involved
Most of the necessary work has already been done, notably in the LangChain PR #27039, which simplifies the migration process.
The primary remaining tasks include:
The text was updated successfully, but these errors were encountered: