← Về thư mục
openai4s/storage/memories.py
- MemoryLimitError · class · L57-L67 — class MemoryLimitError(ValueError)
- init · method · L65-L67 — def init(self, message: str, *, code: str) -> None
- _scope · function · L70-L79 — def _scope(project_id: str | None) -> str
- _block_of · function · L82-L83 — def _block_of(row: dict) -> str
- MemoryRepository · class · L86-L394 — class MemoryRepository
- init · method · L89-L98 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- add · method · L100-L185 — def add( self, *, content: str, block: str = "general", project_id: str = "default", ) -> dict
- list · method · L187-L193 — def list( self, project_id: str | None = None, block: str | None = None, ) -> list[dict]
- resolve · method · L195-L234 — def resolve( self, project_id: str | None = None, block: str | None = None, ) -> dict
- update · method · L236-L323 — def update( self, memory_id: str, *, content: str | None = None, block: str | None = None, project_id: str | None = None, ) -> dict | None
- delete · method · L325-L347 — def delete(self, memory_id: str, project_id: str | None = None) -> bool
- blocks · method · L349-L364 — def blocks(self, project_id: str | None = None) -> list[dict]
- _rows · method · L366-L394 — def _rows(self, scopes: list[str] | None, block: str | None) -> list[dict]