← Về thư mục
openai4s/storage/activation.py
- SessionActivationRepository · class · L34-L456 — class SessionActivationRepository
- init · method · L37-L51 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], checkpoint_state: Any | None = None, ) -> None
- ensure · method · L53-L84 — def ensure(self, root_frame_id: str) -> str
- current · method · L86-L94 — def current(self, root_frame_id: str) -> str
- export_guard · method · L96-L144 — def export_guard( self, root_frame_id: str, *, recovery_setting_key: str, ) -> dict[str, Any]
- activate_checkpoint · method · L146-L350 — def activate_checkpoint( self, *, root_frame_id: str, branch_id: str, checkpoint_id: str, expected_current_branch_id: str | None = None, ) -> dict[str, Any]
- _artifact_heads · method · L352-L374 — def _artifact_heads(self, root_frame_id: str, raw_versions: Any) -> dict[str, str]
- _session_capabilities · method · L377-L416 — def _session_capabilities( raw: Any, root_frame_id: str, project_id: str ) -> list[dict[str, Any]]
- _conversation_rules · method · L419-L441 — def _conversation_rules(raw: Any, root_frame_id: str) -> list[dict[str, str]]
- _json · method · L444-L450 — def _json(raw: Any, fallback: Any) -> Any
- _text · method · L453-L456 — def _text(name: str, value: str) -> str