langchain/callbacks/streamlit.py/StreamlitCallbackHandler/on_agent_action
class StreamlitCallbackHandler:    def on_agent_action(self, action: AgentAction, **kwargs: Any) -> Any:
        """Run on agent action."""
        # st.write requires two spaces before a newline to render it
        st.markdown(action.log.replace("\n", "  \n"))