From bc08246270bb1a244415ca25c0d0283dc0c15aa6 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Mon, 22 Dec 2025 21:37:35 +0000 Subject: [PATCH] refactor(models): remove unused _arun method from LangChain tool The _arun async method was just wrapping the sync _run method without providing any actual async benefits. LangChain's BaseTool provides a default implementation that raises NotImplementedError, which is sufficient for our use case since we don't support true async execution. --- stackone_ai/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/stackone_ai/models.py b/stackone_ai/models.py index 1e8b813..7a06589 100644 --- a/stackone_ai/models.py +++ b/stackone_ai/models.py @@ -437,9 +437,6 @@ class StackOneLangChainTool(BaseTool): def _run(self, **kwargs: Any) -> Any: return parent_tool.execute(kwargs) - async def _arun(self, **kwargs: Any) -> Any: - return self._run(**kwargs) - return StackOneLangChainTool() def set_account_id(self, account_id: str | None) -> None: