code: def on_agent_finish(
      self,
      finish: AgentFinish,
      color: Optional[str] = None,
      **kwargs: Any,
  ) -> None:
      if self._current_thought is not None:
          self._current_thought.complete(
              self._thought_labeler.get_final_agent_thought_label()
          )
          self._current_thought = None
  
imports: from __future__ import annotations
  import time
  from enum import Enum
  from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional
  from langchain.callbacks.base import BaseCallbackHandler
  from langchain.schema import AgentAction, AgentFinish, LLMResult
  from streamlit.runtime.metrics_util import gather_metrics
label_desc: Use image node_id 13 for calling the StreamlitCallbackHandler obj's underlying member method code with example usage: obj.on_agent_finish(finish, color) without return types