Added PersonaTool class extending BaseTool

This commit is contained in:
2024-08-17 22:15:25 -05:00
parent 2edc80189f
commit 71d66aec4f
+7 -7
View File
@@ -1,10 +1,10 @@
from base_tool import BaseTool from tools.base_tool import BaseTool
class PersonaTool(BaseTool): class PersonaTool(BaseTool):
def __init__(self, persona_name): def get_functions(self):
super().__init__() # Define the functions for the persona tool
self.persona_name = persona_name pass
def perform_action(self): def execute(self, function_name, **kwargs):
# Implement the action specific to the persona # Implement the logic to execute the specified function
pass pass