init
This commit is contained in:
commit
66729f7d08
24 files changed
+907
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# core/base.py
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import List, Dict, Any
|
||||
|
||||
|
||||
class TaskModule(ABC):
|
||||
MODULE_NAME = ""
|
||||
DESCRIPTION = ""
|
||||
|
||||
TOOLS = [] # Each module defines its tools
|
||||
|
||||
@classmethod
|
||||
def get_tools(cls) -> List[Dict[str, Any]]:
|
||||
return cls.TOOLS
|
||||
|
||||
@classmethod
|
||||
def execute_tool(cls, tool_name: str, arguments: dict) -> Dict[str, Any]:
|
||||
raise NotImplementedError("Modules must implement execute_tool()")
|
||||
|
||||
@staticmethod
|
||||
def get_system_prompt_fragment() -> str:
|
||||
return ""
|
||||
Reference in new issue
Block a user