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

Toolkit feature backend #452

Merged
merged 145 commits into from
Jun 23, 2023
Merged

Toolkit feature backend #452

merged 145 commits into from
Jun 23, 2023

Conversation

luciferlinx101
Copy link
Collaborator

@luciferlinx101 luciferlinx101 commented Jun 23, 2023

Toolkit feature backend changes consisting :

  • Tool's new architecture
  • introduction of toolkit
  • tool configuration at the toolkit level
  • Model Unit tests
  • Helper method unit tests
  • Changes in current tools as per new architecture and toolkit.
  • Introduced the concept of tool manager and managing tools using tools.json for external tools
  • Introducing marketplace for tools

@@ -30,3 +32,16 @@ def __repr__(self):

"""
return f"AgentConfiguration(id={self.id}, key={self.key}, value={self.value})"

Copy link
Collaborator

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,
Copy link
Collaborator

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):
Copy link
Collaborator

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):
Copy link
Collaborator

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):
Copy link
Collaborator

Choose a reason for hiding this comment

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

class method

@luciferlinx101 luciferlinx101 merged commit a7af29f into dev Jun 23, 2023
2 checks passed
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.

5 participants