# LLMThoughtLabeler

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/streamlit_callback_handler/LLMThoughtLabeler)

Generates markdown labels for LLMThought containers. Pass a custom
subclass of this to StreamlitCallbackHandler to override its default
labeling logic.

## Signature

```python
LLMThoughtLabeler()
```

## Methods

- [`get_initial_label()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/streamlit_callback_handler/LLMThoughtLabeler/get_initial_label)
- [`get_tool_label()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/streamlit_callback_handler/LLMThoughtLabeler/get_tool_label)
- [`get_history_label()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/streamlit_callback_handler/LLMThoughtLabeler/get_history_label)
- [`get_final_agent_thought_label()`](https://reference.langchain.com/python/langchain-community/callbacks/streamlit/streamlit_callback_handler/LLMThoughtLabeler/get_final_agent_thought_label)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/callbacks/streamlit/streamlit_callback_handler.py#L49)