web / interfaces.py
Shwetakka's picture
Upload 7 files
e6cbc4d verified
Raw History Blame Contribute Delete
340 Bytes
from typing import Protocol, runtime_checkable, Dict, Any
from models import DHCResult
@runtime_checkable
class IScoringEngine(Protocol):
"""
Interface for the IOTN Scoring Engine.
Enforces a strict contract for scoring implementations.
"""
def score(self, payload: Dict[str, Any]) -> DHCResult:
...