Spaces:
Sleeping
Sleeping
| # core/base_module.py | |
| from abc import ABC, abstractmethod | |
| from typing import Dict, List | |
| class AIModule(ABC): | |
| """Base class for all AI modules.""" | |
| async def process(self, input_data: Dict) -> Dict: | |
| """Process input data and return results.""" | |
| pass | |
| async def get_status(self) -> Dict: | |
| """Get module status.""" | |
| pass | |
| def capabilities(self) -> List[str]: | |
| """List module capabilities.""" | |
| pass | |