← Về thư mục
openai4s/storage/capabilities.py
- _normalized · function · L23-L27 — def _normalized(value: str) -> str
- _validated_scope · function · L30-L37 — def _validated_scope(scope: str, scope_id: str | None) -> tuple[str, str]
- _decode_json · function · L40-L46 — def _decode_json(raw: Any, fallback: Any) -> Any
- CapabilityStateRepository · class · L49-L377 — class CapabilityStateRepository
- init · method · L52-L61 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- set_enabled · method · L63-L124 — def set_enabled( self, kind: str, name: str, enabled: bool, *, scope: str = "global", scope_id: str = "", metadata: dict | None = None, ) -> dict
- resolve · method · L126-L166 — def resolve( self, kind: str, name: str, *, project_id: str | None = None, session_id: str | None = None, default: bool = True, ) -> dict
- snapshot · method · L168-L192 — def snapshot( self, kind: str, names: Iterable[str], *, project_id: str | None = None, session_id: str | None = None, default: bool = True, ) -> dict[str, dict]
- explicit_states · method · L194-L225 — def explicit_states( self, kind: str | None = None, *, scope: str | None = None, scope_id: str | None = None, ) -> list[dict]
- append_event · method · L227-L277 — def append_event( self, kind: str, name: str, event: str, *, scope: str = "global", scope_id: str = "", enabled: bool | None = None, metadata: dict | None = None, ) -> dict
- list_events · method · L279-L324 — def list_events( self, *, kind: str | None = None, name: str | None = None, event: str | None = None, session_id: str | None = None, limit: int | None = 200, ) -> list[dict]
- record_manifest · method · L326-L363 — def record_manifest( self, *, session_id: str, project_id: str | None, kind: str, entries: list[dict], manifest_id: str | None = None, ) -> dict
- latest_manifest · method · L365-L377 — def latest_manifest(self, session_id: str, *, kind: str) -> dict | None