← Về thư mục
openai4s/storage/annotations.py
- settle_restored_annotation · function · L11-L28 — def settle_restored_annotation(row: "Any") -> dict[str, Any]
- AnnotationRepository · class · L31-L502 — class AnnotationRepository
- init · method · L39-L48 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- add · method · L50-L107 — def add( self, *, root_frame_id: str, artifact_id: str, artifact_name: str | None, rel_x: float, rel_y: float, body: str, version_id: str | None = None, checksum: str | None = None, kind: str | None = None, locator: str | None = None, ) -> dict
- get · method · L109-L115 — def get(self, annotation_id: str) -> dict | None
- list_for_frame · method · L117-L135 — def list_for_frame( self, root_frame_id: str, *, artifact_id: str | None = None, status: str | None = None, ) -> list[dict]
- is_reserved · method · L137-L146 — def is_reserved(self, annotation_id: str) -> bool
- update · method · L160-L211 — def update( self, annotation_id: str, *, body: str | None = None, status: str | None = None, expect_status: str | None = None, ) -> dict | None
- delete_unreserved · method · L213-L222 — def delete_unreserved(self, annotation_id: str) -> bool
- mark_sent · method · L224-L235 — def mark_sent(self, annotation_ids: list[str]) -> None
- reserve · method · L250-L296 — def reserve( self, *, root_frame_id: str, annotation_ids: list[str], reservation_id: str ) -> list[dict]
- release · method · L298-L374 — def release(self, reservation_id: str, *, root_frame_id: str | None = None) -> int
- _stamp_admission_locked · method · L376-L414 — def _stamp_admission_locked( self, state: str, reservation_id: str, root_frame_id: str | None, *, request_id: str | None = None, job_id: str | None = None, ) -> None
- finalize_sent · method · L416-L491 — def finalize_sent( self, reservation_id: str, *, expected_ids: list[str] | None = None, root_frame_id: str | None = None, request_id: str | None = None, job_id: str | None = None, ) -> bool
- delete · method · L493-L497 — def delete(self, annotation_id: str) -> None
- _execute · method · L499-L502 — def _execute(self, sql: str, params: tuple = ()) -> None