← Về thư mục
skills/retrosynthesis_planning/reaction_model_worker.py
- RequestError · class · L34-L38 — class RequestError(ValueError)
- init · method · L35-L38 — def init(self, code: str, message: str, *, retryable: bool = False) -> None
- _public_error · function · L41-L45 — def _public_error(value: object, *, limit: int = 1500) -> str
- _version · function · L48-L52 — def _version(name: str) -> str | None
- _first_version · function · L55-L60 — def _first_version(*names: str) -> str | None
- _runtime · function · L63-L81 — def _runtime() -> dict[str, Any]
- _text · function · L84-L87 — def _text(value: Any, field: str) -> str
- _array · function · L90-L95 — def _array(value: Any, field: str) -> list[Mapping[str, Any]]
- _parse_parrot_rank · function · L98-L107 — def _parse_parrot_rank(value: object, fallback: int) -> int
- _validate · function · L110-L140 — def _validate(value: Any) -> dict[str, Any]
- _map_reactions · function · L143-L201 — def _map_reactions(request: Mapping[str, Any]) -> dict[str, Any]
- _name_array · function · L204-L210 — def _name_array(value: Any, field: str) -> list[str]
- _plan_routes · function · L213-L311 — def _plan_routes(request: Mapping[str, Any]) -> dict[str, Any]
- _device · function · L314-L322 — def _device(value: Any)
- _require_model_location · function · L325-L332 — def _require_model_location(request: Mapping[str, Any]) -> str
- _predict_products · function · L335-L397 — def _predict_products(request: Mapping[str, Any]) -> dict[str, Any]
- _yield_class · function · L400-L435 — def _yield_class()
- ReactionT5Yield · class · L405-L433 — class ReactionT5Yield(PreTrainedModel)
- init · method · L408-L418 — def init(self, config)
- forward · method · L420-L433 — def forward(self, inputs)
- _predict_yields · function · L438-L507 — def _predict_yields(request: Mapping[str, Any]) -> dict[str, Any]
- canonical_mixture · function · L466-L479 — def canonical_mixture(value: Any, field: str, *, blank: bool = False) -> str
- _recommend_conditions · function · L510-L655 — def _recommend_conditions(request: Mapping[str, Any]) -> dict[str, Any]
- _handle · function · L658-L670 — def _handle(request: Mapping[str, Any]) -> dict[str, Any]
- _response · function · L673-L695 — def _response( request: Mapping[str, Any], *, ok: bool, started: float, result: Any = None, error: Any = None, ) -> dict[str, Any]
- _reserve_stdout · function · L698-L705 — def _reserve_stdout() -> int | None
- main · function · L708-L767 — def main() -> int