Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Dec 22, 2025

Summary

  • Remove the unused _arun async method from StackOneLangChainTool
  • The method was just wrapping the sync _run without actual async benefits
  • LangChain's BaseTool provides a default NotImplementedError implementation

Test plan

  • All existing tests pass
  • Lint checks pass

Summary by cubic

Removed the unused _arun method from StackOneLangChainTool. We now rely on BaseTool’s default NotImplementedError for async since the tool doesn’t support true async execution.

Written for commit bc08246. Summary will update automatically on new commits.

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.
Copilot AI review requested due to automatic review settings December 22, 2025 21:37
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the StackOneLangChainTool class by removing the unused _arun async method, which was merely wrapping the synchronous _run method without providing actual asynchronous benefits.

  • Removes the _arun method from the StackOneLangChainTool inner class
  • Relies on LangChain's BaseTool default implementation which raises NotImplementedError
  • Cleans up code by eliminating misleading async functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@glebedel glebedel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryoppippi ryoppippi merged commit f9ae232 into main Dec 23, 2025
21 checks passed
@ryoppippi ryoppippi deleted the refactor/remove-unused-arun-method branch December 23, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants