← Về thư mục
openai4s/server/auto_repair.py
- _fingerprint_set · function · L31-L38 — def _fingerprint_set(findings: Sequence[Mapping[str, Any]]) -> tuple[str, ...]
- declare_deterministic_repair · function · L41-L45 — def declare_deterministic_repair(fn: Any) -> Any
- RepairTurnAdmission · class · L48-L97 — class RepairTurnAdmission
- init · method · L56-L68 — def init( self, *, budget: AutoBudgetAdmission | None, run_id: str | None, round_index: int, pending: list[str], ) -> None
- active · method · L71-L72 — def active(self) -> bool
- admit_turn · method · L74-L93 — def admit_turn(self, turn_index: int | None = None) -> str
- run_provider · method · L95-L97 — def run_provider(self, fn: Callable[..., Any], args: Any, *kwargs: Any) -> Any
- _classify_repair_fn · function · L100-L127 — def _classify_repair_fn(fn: Any) -> str
- _admission_by_keyword · function · L130-L136 — def _admission_by_keyword(fn: Any) -> bool
- _invoke_repair_fn · function · L139-L152 — def _invoke_repair_fn( fn: Any, snapshot: Mapping[str, Any], material: Sequence[Mapping[str, Any]], admission: RepairTurnAdmission, *, kind: str, by_keyword: bool, ) -> Mapping[str, Any]
- apply_claim_repair · function · L156-L244 — def apply_claim_repair( snapshot: Mapping[str, Any], findings: Sequence[Mapping[str, Any]], ) -> dict[str, Any]
- _replace_claim · function · L247-L248 — def _replace_claim(text: str, pattern: str, replacement: str) -> str
- AutoRepairService · class · L251-L535 — class AutoRepairService
- init · method · L254-L271 — def init( self, *, store: Any, config: Any, scientific_review: Any, repair_fn: RepairFn | None = None, ) -> None
- feature_enabled · method · L274-L276 — def feature_enabled(self) -> bool
- run · method · L278-L445 — def run( self, *, initial: Mapping[str, Any], result_review_mode: str, agent_cfg: Any, reviewer_cfg: Any, run_id: str | None = None, checkpoint_id: str | None = None, cancel: Callable[[], bool] | None = None, ) -> dict[str, Any]
- _auto_budget · method · L447-L454 — def _auto_budget(self) -> AutoBudgetAdmission | None
- _budget_stop · method · L457-L468 — def _budget_stop(current: dict[str, Any], reason: str) -> dict[str, Any]
- _reuse_identical_versions · method · L470-L493 — def _reuse_identical_versions( self, before: Sequence[Any], after: Sequence[Any] | None ) -> list[Any]
- _persist_repair_round · method · L495-L535 — def _persist_repair_round( self, *, run_id: str, round_index: int, material: Sequence[Mapping[str, Any]], snapshot: Mapping[str, Any], repair_payload: Mapping[str, Any], checkpoint_id: str, ) -> None