agentforge-memory-sqlite 0.2.4__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentforge_memory_sqlite/__init__.py +9 -1
- agentforge_memory_sqlite/memory.py +12 -0
- {agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/METADATA +2 -2
- {agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/RECORD +7 -7
- {agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/WHEEL +0 -0
- {agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/entry_points.txt +0 -0
- {agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,9 +9,17 @@ blocking stdlib `sqlite3`, in agent code paths.
|
|
|
9
9
|
|
|
10
10
|
from __future__ import annotations
|
|
11
11
|
|
|
12
|
+
# Version is sourced from the installed distribution metadata so it can
|
|
13
|
+
# never drift from pyproject.toml (bug-024).
|
|
14
|
+
from importlib.metadata import PackageNotFoundError as _PkgNotFound
|
|
15
|
+
from importlib.metadata import version as _dist_version
|
|
16
|
+
|
|
12
17
|
from agentforge_memory_sqlite.memory import SqliteMemoryStore
|
|
13
18
|
from agentforge_memory_sqlite.vector import SqliteVectorStore
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
try:
|
|
21
|
+
__version__ = _dist_version("agentforge-memory-sqlite")
|
|
22
|
+
except _PkgNotFound: # pragma: no cover - source tree without installed metadata
|
|
23
|
+
__version__ = "0.0.0+unknown"
|
|
16
24
|
|
|
17
25
|
__all__ = ["SqliteMemoryStore", "SqliteVectorStore", "__version__"]
|
|
@@ -56,6 +56,18 @@ class SqliteMemoryStore(MemoryStore):
|
|
|
56
56
|
await SqliteMigrator(connection).apply_pending()
|
|
57
57
|
return cls(connection=connection)
|
|
58
58
|
|
|
59
|
+
@classmethod
|
|
60
|
+
async def from_config(cls, *, path: str | Path) -> SqliteMemoryStore:
|
|
61
|
+
"""Build from a `modules.memory.config` block (bug-022).
|
|
62
|
+
|
|
63
|
+
The framework's config-driven module convention: every module
|
|
64
|
+
type exposes a `from_config` factory so `build_*_from_config`
|
|
65
|
+
can instantiate it from YAML. Memory construction is async
|
|
66
|
+
(it opens a connection), so unlike the sync `from_config` on
|
|
67
|
+
stateless modules this one is a coroutine.
|
|
68
|
+
"""
|
|
69
|
+
return await cls.from_path(path)
|
|
70
|
+
|
|
59
71
|
def migrator(self) -> SqliteMigrator:
|
|
60
72
|
"""Return a `SqliteMigrator` configured against the
|
|
61
73
|
package's bundled migrations directory (feat-024)."""
|
{agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentforge-memory-sqlite
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: SQLite-backed MemoryStore and VectorStore for AgentForge
|
|
5
5
|
Project-URL: Homepage, https://github.com/Scaffoldic/agentforge-py
|
|
6
6
|
Project-URL: Repository, https://github.com/Scaffoldic/agentforge-py
|
|
@@ -20,7 +20,7 @@ Classifier: Topic :: Database
|
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Typing :: Typed
|
|
22
22
|
Requires-Python: >=3.13
|
|
23
|
-
Requires-Dist: agentforge-core~=0.
|
|
23
|
+
Requires-Dist: agentforge-core~=0.3.1
|
|
24
24
|
Requires-Dist: aiosqlite>=0.20
|
|
25
25
|
Description-Content-Type: text/markdown
|
|
26
26
|
|
{agentforge_memory_sqlite-0.2.4.dist-info → agentforge_memory_sqlite-0.3.1.dist-info}/RECORD
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
agentforge_memory_sqlite/__init__.py,sha256=
|
|
1
|
+
agentforge_memory_sqlite/__init__.py,sha256=Er9JVCeBbGg36uFNcYxo_iFkuKQD0SXe1vZ1_3uUUNA,969
|
|
2
2
|
agentforge_memory_sqlite/_migrator.py,sha256=rRPCPnFFmzVRJfthq3glh3x6kWAD4wk5R96Q2PqF5Us,5076
|
|
3
|
-
agentforge_memory_sqlite/memory.py,sha256=
|
|
3
|
+
agentforge_memory_sqlite/memory.py,sha256=kdC4GP_eNRtrGxmSYfBkX1LgStmLk0DiniHbC31Hv2o,8800
|
|
4
4
|
agentforge_memory_sqlite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
agentforge_memory_sqlite/vector.py,sha256=v0GZmIBYgKMobizausF91TieoLJ60ohA3CM2l6ei6AE,9532
|
|
6
6
|
agentforge_memory_sqlite/migrations/0000_migrations_table.sql,sha256=Hj8lxWPizGOTsAQloRrmKoDHyCkechdHfOcU3FZlDS0,206
|
|
7
7
|
agentforge_memory_sqlite/migrations/0001_initial.sql,sha256=0GRCe90lRCkgomALxUpqbUsckpAPJU8vGacknMgvhQI,778
|
|
8
8
|
agentforge_memory_sqlite/migrations/0002_fts5.sql,sha256=b27HLnhAoDfdQvxVOoc-fvroqAdGbx-RoavaVK0nJTM,718
|
|
9
|
-
agentforge_memory_sqlite-0.
|
|
10
|
-
agentforge_memory_sqlite-0.
|
|
11
|
-
agentforge_memory_sqlite-0.
|
|
12
|
-
agentforge_memory_sqlite-0.
|
|
13
|
-
agentforge_memory_sqlite-0.
|
|
9
|
+
agentforge_memory_sqlite-0.3.1.dist-info/METADATA,sha256=CXNhfcGNCNrPPwg8YbSiLIdtemAXPXA7eSW466FBThk,2330
|
|
10
|
+
agentforge_memory_sqlite-0.3.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
11
|
+
agentforge_memory_sqlite-0.3.1.dist-info/entry_points.txt,sha256=_KNwjwkvm11_3J9_W0X2_d-VTnz17LEMBVR8rKds9JM,166
|
|
12
|
+
agentforge_memory_sqlite-0.3.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
13
|
+
agentforge_memory_sqlite-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|