"""Job handlers — pluggable compute backends."""

from __future__ import annotations

from typing import Any, Protocol

from hive_compute.models import ComputeJob


class JobHandler(Protocol):
    """Protocol for compute job handlers."""

    def run(self, job: ComputeJob) -> dict[str, Any]:
        """Process a job and return the result data."""
        ...
