Files
microdao-daarion/providers/base.py
Ivan Tytar 3cacf67cf5 feat: Initial commit - DAGI Stack v0.2.0 (Phase 2 Complete)
- 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.
2025-11-15 14:35:24 +01:00

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}')"