-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Toolkit feature backend #452
Conversation
…us/SuperAGI into toolkit-feature-backend
…us/SuperAGI into toolkit-feature-backend
…us/SuperAGI into toolkit-feature-backend
@@ -30,3 +32,16 @@ def __repr__(self): | |||
|
|||
""" | |||
return f"AgentConfiguration(id={self.id}, key={self.key}, value={self.value})" | |||
|
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.
add class method or static method
f" file_name = {self.file_name}, class_name='{self.class_name}, toolkit_id={self.toolkit_id}')" | ||
|
||
@staticmethod | ||
def add_or_update(session, tool_name: str, description: str, folder_name: str, class_name: str, file_name: str, |
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.
make it class method.
return tool | ||
|
||
@staticmethod | ||
def delete_tool(session, tool_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.
make it class method
) | ||
|
||
@staticmethod | ||
def add_or_update(session, name, description, show_toolkit, organisation_id, tool_code_link): |
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.
make it class method
return None | ||
|
||
@staticmethod | ||
def get_toolkit_from_name(session, toolkit_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.
class method
…us/SuperAGI into toolkit-feature-backend
…us/SuperAGI into toolkit-feature-backend
Toolkit feature backend changes consisting :