Skip to content
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

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Feat/make tools as packages #141

merged 5 commits into from
Dec 13, 2023

Conversation

0xArdi
Copy link
Collaborator

@0xArdi 0xArdi commented Dec 12, 2023

This PR adds support for having tools as custom packages.

@0xArdi 0xArdi changed the title Feat/make strageties as packages Feat/make tools as packages Dec 12, 2023
@@ -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")
Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

Copy link
Collaborator Author

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

Copy link
Contributor

@DavidMinarsch DavidMinarsch left a 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

@0xArdi 0xArdi merged commit 2faa32d into main Dec 13, 2023
6 checks passed
@0xArdi 0xArdi deleted the feat/make-strageties-as-packages branch December 13, 2023 10:15
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.

4 participants