Files
2026-11-20 16:35:19 +00:00

23 lines
546 B
Python

# 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 ""