Download src/time_machine/domain/errors.py from build-small-hackathon/ai-time-machine: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/ai-time-machine/resolve/main/src/time_machine/domain/errors.py
- Command line
-
hf download hf://spaces/build-small-hackathon/ai-time-machine/src/time_machine/domain/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/build-small-hackathon/ai-time-machine/resolve/main/src/time_machine/domain/errors.py
664 Bytes
| from __future__ import annotations | |
| class TimeMachineError(Exception): | |
| """Base error for application-level failures.""" | |
| class ContractValidationError(TimeMachineError): | |
| """Raised when model output cannot be parsed into a domain contract.""" | |
| class EncounterNotFoundError(TimeMachineError): | |
| """Raised when a requested encounter does not exist in active session state.""" | |
| class AdapterConfigurationError(TimeMachineError): | |
| """Raised when the dependency container cannot build a requested adapter profile.""" | |
| class ModelBudgetError(TimeMachineError): | |
| """Raised when enabled model parameters exceed the hackathon limit.""" | |