def on_llm_new_token(self, token: str, **kwargs: Any) -> Any:
        """Run on new LLM token. Only available when streaming is enabled."""
        method_name = "on_llm_new_token"
        self.add_to_queue(method_name, token=token, **kwargs)
        print("on_llm_new_token method called")
Run on new LLM token. Only available when streaming is enabled.
toolbench/inference/callbacks/ServerEventCallback.py