← Về thư mục
skills/retrosynthesis_planning/scenarios/openai4s_codebases/generate.py
- VerificationError · class · L79-L80 — class VerificationError(RuntimeError)
- _diagnostic · function · L83-L86 — def _diagnostic(error: Exception) -> str: # Parser/compiler/OS errors can contain source text, paths or child output. # Only our own fixed diagnostics may be serialized into the manifest.
- _environment · function · L89-L101 — def _environment(workspace: Path, temporary: Path) -> dict[str, str]
- _runtime_roots · function · L104-L119 — def _runtime_roots() -> tuple[Path, ...]: # -I -S uses the base interpreter and stdlib without loading site-packages, # .pth files or the operator's virtualenv. Never allow the repository root.
- _runtime_denials · function · L122-L136 — def _runtime_denials() -> tuple[Path, ...]: # -S suppresses imports, but filesystem access needs an independent deny: # an installed distribution can include the same GT and private fixtures.
- _sandbox_command · function · L139-L215 — def _sandbox_command( command: list[str], *, readonly: Path, results: Path, temporary: Path ) -> list[str]
- _python · function · L218-L232 — def _python(command: list[str], imports: Path) -> list[str]
- _probe_boundary · function · L235-L319 — def _probe_boundary( *, readonly: Path, results: Path, temporary: Path, denied: tuple[Path, ...] ) -> None
- _sha256 · function · L322-L327 — def _sha256(path: Path) -> str
- _write_json · function · L330-L345 — def _write_json(path: Path, value: object) -> None
- _root · function · L348-L349 — def _root() -> Path
- _stage_generation · function · L357-L407 — def _stage_generation(root: Path, name: str, staging: Path) -> Path
- _command · function · L410-L424 — def _command(root: Path, name: str) -> list[str]
- _checked · function · L427-L447 — def _checked(command: list[str], *, root: Path, environment: dict[str, str]) -> None
- _verify_case · function · L450-L559 — def _verify_case(root: Path, name: str, gt: Path, generated: Path) -> str
- _entry · function · L562-L584 — def _entry(root: Path, name: str, *, overwrite: bool) -> dict[str, object]
- _generate · function · L587-L654 — def _generate( root: Path, name: str, query: Path, gt: Path, generated: Path, command: list[str], staging: Path, staged: Path, ) -> dict[str, object]
- main · function · L657-L702 — def main() -> int