← Về thư mục
openai4s/host/completion.py
- first_english_word · function · L157-L167 — def first_english_word(bullet: Any) -> str | None
- _is_past_tense_starter · function · L170-L186 — def _is_past_tense_starter(word: str) -> bool
- validate_completion_bullets · function · L189-L209 — def validate_completion_bullets(bullets: list) -> str | None
- validate_output_schema · function · L212-L229 — def validate_output_schema(output: Any, schema: dict) -> str | None
- SubmissionEvidence · class · L304-L315 — class SubmissionEvidence
- EvidenceStore · class · L318-L329 — class EvidenceStore(Protocol)
- list_artifact_names · method · L327-L327 — def list_artifact_names(self) -> list[dict]
- list_cell_outputs · method · L329-L329 — def list_cell_outputs(self, root_frame_id: str) -> list[dict]
- gather_submission_evidence · function · L332-L361 — def gather_submission_evidence( store: EvidenceStore, root_frame_id: str | None, search_roots: tuple[Path, ...] = (), ) -> SubmissionEvidence
- _add_known_name · function · L364-L371 — def _add_known_name(names: set[str], value: Any) -> None
- _looks_like_file · function · L374-L380 — def _looks_like_file(text: str) -> bool
- _looks_like_identifier · function · L383-L384 — def _looks_like_identifier(text: str) -> bool
- _claim_strings · function · L387-L407 — def _claim_strings(value: Any) -> Iterator[str]
- _walk_file_claims · function · L410-L458 — def _walk_file_claims(output: Any) -> tuple[list[tuple[str, str]], bool]
- collect_file_claims · function · L461-L464 — def collect_file_claims(output: Any) -> list[tuple[str, str]]
- _scan_basenames · function · L467-L498 — def _scan_basenames(root: Path) -> frozenset[str]
- _within_a_root · function · L501-L522 — def _within_a_root(path: Path, roots: tuple[Path, ...]) -> bool
- _claim_backed · function · L525-L555 — def _claim_backed( claim: str, evidence: SubmissionEvidence, scanned: dict[Path, frozenset[str]], ) -> bool
- _metric_key_pattern · function · L558-L564 — def _metric_key_pattern(key: str) -> re.Pattern[str] | None
- _claim_candidates · function · L567-L582 — def _claim_candidates(token: str) -> list[tuple[float, float]]
- _claimed_number_matches · function · L585-L603 — def _claimed_number_matches(token: str, actual: float) -> bool
- _is_near_miss · function · L606-L626 — def _is_near_miss(token: str, actual: float) -> bool
- _in_comparator_context · function · L629-L640 — def _in_comparator_context(lowered: str, token: re.Match[str]) -> bool
- check_summary_metrics · function · L643-L701 — def check_summary_metrics(output: Any) -> list[str]
- reconcile_submission_claims · function · L704-L748 — def reconcile_submission_claims(spec: dict, evidence: SubmissionEvidence) -> str | None
- CompletionService · class · L751-L897 — class CompletionService
- init · method · L765-L776 — def init( self, evidence: Callable[[], SubmissionEvidence] | None = None, *, task_mode: Callable[[], str | None] | None = None, code_evidence: Callable[[], CodeEvidenceContext] | None = None, ) -> None
- _verify_code_claims_with_seal · method · L778-L790 — def _verify_code_claims_with_seal( self, payload: dict ) -> tuple[str | None, Mapping[str, str]]
- verify_code_claims · method · L792-L804 — def verify_code_claims(self, payload: dict) -> str | None
- revalidate_pending_completion · method · L806-L822 — def revalidate_pending_completion(self) -> str | None
- submit · method · L824-L893 — def submit(self, spec: dict) -> dict
- clear · method · L895-L897 — def clear(self) -> None