Skip to content
masterclass Buddy

Integrations · Class

StreamlitCallbackHandler

StreamlitCallbackHandler sends LangChain agent callback output to a Streamlit app. It shows model and tool-use thoughts in expanders and lets you control their visibility and labels.

Last updated

Since
v1.4

Syntax

StreamlitCallbackHandler(parent_container: DeltaGenerator, *, max_thought_containers: int = 4, expand_new_thoughts: bool = True, collapse_completed_thoughts: bool = True, thought_labeler: LLMThoughtLabeler | None = None) -> BaseCallbackHandler

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BaseCallbackHandler
  • LLMThoughtLabeler
  • Streamlit
  • LangChain Agent

Source: StreamlitCallbackHandler | langchain_classic | LangChain Reference. Checked 2026-11-03.