-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/make tools as packages #141
Conversation
@@ -28,8 +28,9 @@ class AnyToolAsTask: | |||
def execute(self, *args: Any, **kwargs: Any) -> Any: | |||
"""Execute the task.""" | |||
tool_py = kwargs.pop("tool_py") | |||
if "run" in globals(): | |||
del globals()["run"] | |||
callable_method = kwargs.pop("callable_method") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this going to work with multiple packages having the same callable name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tools had run
as their callable and it worked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xArdi one comment - ow looks good
please check for each package who the author was. In some cases it’s not Valory
This PR adds support for having tools as custom packages.