- Router Core with rule-based routing (1530 lines) - DevTools Backend (file ops, test execution) (393 lines) - CrewAI Orchestrator (4 workflows, 12 agents) (358 lines) - Bot Gateway (Telegram/Discord) (321 lines) - RBAC Service (role resolution) (272 lines) - Structured logging (utils/logger.py) - Docker deployment (docker-compose.yml) - Comprehensive documentation (57KB) - Test suites (41 tests, 95% coverage) - Phase 4 roadmap & ecosystem integration plans Production-ready infrastructure for DAARION microDAOs.
22 lines
512 B
Python
22 lines
512 B
Python
"""
|
|
Base Provider Interface
|
|
"""
|
|
|
|
from abc import ABC, abstractmethod
|
|
from router_models import RouterRequest, RouterResponse
|
|
|
|
|
|
class Provider(ABC):
|
|
"""Base class for all providers"""
|
|
|
|
def __init__(self, provider_id: str):
|
|
self.id = provider_id
|
|
|
|
@abstractmethod
|
|
async def call(self, req: RouterRequest) -> RouterResponse:
|
|
"""Execute request and return response"""
|
|
pass
|
|
|
|
def __repr__(self) -> str:
|
|
return f"{self.__class__.__name__}(id='{self.id}')"
|