# 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/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/callbacks/streamlit/streamlit_callback_handler.py#L49)