from dataclasses import dataclass from models.error_model import ErrorModel @dataclass class AISystem: error_model: ErrorModel def process_error(self, error: Error): # Use the AI model to process the error self.error_model.process_error(error)