Spaces:
Sleeping
Sleeping
Download interfaces.py from iotn-assistant/web: direct link, hf CLI and curl.
- Browser
- Download file 340 Bytes
-
https://huggingface.co/spaces/iotn-assistant/web/resolve/main/interfaces.py
- Command line
-
hf download hf://spaces/iotn-assistant/web/interfaces.py
-
curl -L -o interfaces.py https://huggingface.co/spaces/iotn-assistant/web/resolve/main/interfaces.py
340 Bytes
| from typing import Protocol, runtime_checkable, Dict, Any | |
| from models import DHCResult | |
| class IScoringEngine(Protocol): | |
| """ | |
| Interface for the IOTN Scoring Engine. | |
| Enforces a strict contract for scoring implementations. | |
| """ | |
| def score(self, payload: Dict[str, Any]) -> DHCResult: | |
| ... | |