← Về thư mục
skills/retrosynthesis_planning/benchmark_common.py
- BenchmarkProtocolError · class · L15-L16 — class BenchmarkProtocolError(ValueError)
- require_text · function · L19-L22 — def require_text(value: Any, *, field: str) -> str
- finite_number · function · L25-L34 — def finite_number(value: Any, *, field: str, allow_none: bool = True) -> float | None
- positive_int · function · L37-L42 — def positive_int(value: Any, *, field: str, maximum: int | None = None) -> int
- json_copy · function · L45-L49 — def json_copy(value: Any, *, field: str) -> Any
- require_exact_fields · function · L52-L65 — def require_exact_fields( value: Mapping[str, Any], expected: set[str] | frozenset[str], *, field: str, ) -> None
- sha256_json · function · L68-L72 — def sha256_json(value: Any) -> str
- write_json_atomic · function · L75-L91 — def write_json_atomic(path: str | Path, payload: Any) -> None
- build_intermediate_artifact · function · L94-L109 — def build_intermediate_artifact( scenario_id: str, records: Any, *, metadata: Mapping[str, Any] | None = None, ) -> dict[str, Any]