Skip to content

Commit f9ae232

Browse files
authored
refactor(models): remove unused _arun method from LangChain tool (#69)
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.
1 parent f2f0d44 commit f9ae232

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

stackone_ai/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,6 @@ class StackOneLangChainTool(BaseTool):
437437
def _run(self, **kwargs: Any) -> Any:
438438
return parent_tool.execute(kwargs)
439439

440-
async def _arun(self, **kwargs: Any) -> Any:
441-
return self._run(**kwargs)
442-
443440
return StackOneLangChainTool()
444441

445442
def set_account_id(self, account_id: str | None) -> None:

0 commit comments

Comments
 (0)