Skip to content
Repo

score_in_sandbox

from modal_dojo import score_in_sandbox

Run code against test cases in a Modal sandbox.

score_in_sandbox(code: str, *, test_cases: list[dict[str, str]], timeout_sec: int = 60, sandbox_cpu: float = 1.0, sandbox_memory: int = 1024, python_version: str = '3.11', cpu_policy: str = 'limit', memory_policy: str = 'limit') -> tuple[float, dict[str, Any]]