← Về thư mục
skills/retrosynthesis_planning/syntheseus_worker.py
- RequestError · class · L54-L60 — class RequestError(ValueError)
- init · method · L57-L60 — def init(self, code: str, message: str, *, retryable: bool = False) -> None
- _clean_text · function · L63-L74 — def _clean_text(value: Any, *, field_name: str, max_length: int = 10000) -> str
- _package_version · function · L77-L81 — def _package_version(name: str) -> str | None
- _runtime_info · function · L84-L91 — def _runtime_info() -> dict[str, Any]
- _is_path_like_value · function · L109-L123 — def _is_path_like_value(value: str) -> bool
- _scrub_text · function · L126-L134 — def _scrub_text(text: str) -> str
- _json_safe · function · L137-L163 — def _json_safe(value: Any, *, depth: int = 0) -> Any
- _score_from_metadata · function · L166-L176 — def _score_from_metadata( metadata: Mapping[str, Any], ) -> tuple[float | None, str | None]
- _normalize_manifest · function · L179-L202 — def _normalize_manifest(value: Any) -> dict[str, Any] | None
- _load_model_class · function · L205-L227 — def _load_model_class(model_name: str) -> type[Any]
- _validate_base_request · function · L230-L257 — def _validate_base_request(value: Any) -> dict[str, Any]
- _capabilities · function · L260-L277 — def _capabilities(request: Mapping[str, Any]) -> dict[str, Any]
- _single_step · function · L280-L389 — def _single_step(request: Mapping[str, Any]) -> dict[str, Any]
- handle_request · function · L392-L400 — def handle_request(value: Any) -> dict[str, Any]
- _error_response · function · L403-L428 — def _error_response( *, request_id: str, operation: str, code: str, message: str, retryable: bool, ) -> dict[str, Any]
- _close_reserved_fd_in_child · function · L434-L451 — def _close_reserved_fd_in_child() -> None
- _reserve_protocol_stdout · function · L454-L490 — def _reserve_protocol_stdout() -> int | None
- _emit_response · function · L493-L506 — def _emit_response(response: Mapping[str, Any], *, reserved_fd: int | None) -> None
- main · function · L509-L557 — def main() -> int