← Về thư mục
openai4s/storage/model_capability_receipts.py
- create_model_capability_receipts_schema · function · L52-L54 — def create_model_capability_receipts_schema(conn: sqlite3.Connection) -> None
- _evidence · function · L57-L65 — def _evidence(value: Any, *, default: str = EVIDENCE_UNKNOWN) -> str
- receipt_digest · function · L68-L86 — def receipt_digest(fields: Mapping[str, Any]) -> str
- public_receipt · function · L89-L117 — def public_receipt( row: Mapping[str, Any] | None, *, stale: bool, probe_version: int ) -> dict[str, Any] | None
- ModelCapabilityReceiptRepository · class · L120-L325 — class ModelCapabilityReceiptRepository
- init · method · L123-L134 — def init( self, conn: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], id_factory: Callable[[], str] | None = None, ) -> None
- put · method · L136-L239 — def put( self, *, profile_id: str, revision: int, endpoint_sha256: str, model: str, wire: str, probe_version: int, reachable: bool, native_tool_call: str, streaming: str, context_window_tokens: int | None = None, max_output_tokens: int | None = None, observed_at: int | None = None, ) -> dict[str, Any]
- get · method · L241-L251 — def get(self, receipt_id: str) -> dict[str, Any] | None
- get_exact · method · L253-L280 — def get_exact( self, *, profile_id: str, revision: int, endpoint_sha256: str, model: str, wire: str, probe_version: int, ) -> dict[str, Any] | None
- latest_for_profile · method · L282-L293 — def latest_for_profile(self, profile_id: str) -> dict[str, Any] | None
- list_all · method · L295-L304 — def list_all(self) -> list[dict[str, Any]]
- _row · method · L307-L325 — def _row(row: Any) -> dict[str, Any] | None