from typing import List import uuid from domain.training.run import Run from persistence.repositories.run_repo import RunRepository class RunPersistenceService: """Service for persisting runs to the repository.""" def __init__(self, run_repo: RunRepository): self.run_repo = run_repo def save_batch(self, runs: List[Run], runner_id: uuid.UUID) -> None: """Saves a batch of runs for a specific runner.""" if self.run_repo: self.run_repo.save_batch(runs, runner_id)