memorysync 1.9.1__tar.gz → 1.9.2__tar.gz
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.
- {memorysync-1.9.1 → memorysync-1.9.2}/PKG-INFO +1 -1
- memorysync-1.9.2/src/memorysync/_version.py +1 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/client.py +12 -2
- memorysync-1.9.1/src/memorysync/_version.py +0 -1
- {memorysync-1.9.1 → memorysync-1.9.2}/.gitignore +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/LICENSE +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/README.md +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/pyproject.toml +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/__init__.py +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/connections.py +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/control_plane.py +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/control_plane_types.py +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/errors.py +0 -0
- {memorysync-1.9.1 → memorysync-1.9.2}/src/memorysync/types.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.9.2"
|
|
@@ -512,7 +512,7 @@ class MemorySyncClient:
|
|
|
512
512
|
memory_ids: Iterable[int],
|
|
513
513
|
*,
|
|
514
514
|
lossless: bool = False,
|
|
515
|
-
) ->
|
|
515
|
+
) -> AddResult:
|
|
516
516
|
ids = list(memory_ids)
|
|
517
517
|
if not ids:
|
|
518
518
|
raise ValidationError("summarize() requires memory_ids")
|
|
@@ -521,6 +521,11 @@ class MemorySyncClient:
|
|
|
521
521
|
"/memory/summarize",
|
|
522
522
|
json={"memory_ids": ids, "lossless": lossless},
|
|
523
523
|
)
|
|
524
|
+
# Summarize persists a summary memory, so the server meters it as an
|
|
525
|
+
# add — over-quota calls answer the same silent envelope as add().
|
|
526
|
+
skipped = _as_skipped(raw, default_reason="no_high_value_content")
|
|
527
|
+
if skipped is not None:
|
|
528
|
+
return skipped
|
|
524
529
|
return Memory.from_dict(raw)
|
|
525
530
|
|
|
526
531
|
def compose(
|
|
@@ -1321,7 +1326,7 @@ class AsyncMemorySyncClient:
|
|
|
1321
1326
|
memory_ids: Iterable[int],
|
|
1322
1327
|
*,
|
|
1323
1328
|
lossless: bool = False,
|
|
1324
|
-
) ->
|
|
1329
|
+
) -> AddResult:
|
|
1325
1330
|
ids = list(memory_ids)
|
|
1326
1331
|
if not ids:
|
|
1327
1332
|
raise ValidationError("summarize() requires memory_ids")
|
|
@@ -1330,6 +1335,11 @@ class AsyncMemorySyncClient:
|
|
|
1330
1335
|
"/memory/summarize",
|
|
1331
1336
|
json={"memory_ids": ids, "lossless": lossless},
|
|
1332
1337
|
)
|
|
1338
|
+
# Summarize persists a summary memory, so the server meters it as an
|
|
1339
|
+
# add — over-quota calls answer the same silent envelope as add().
|
|
1340
|
+
skipped = _as_skipped(raw, default_reason="no_high_value_content")
|
|
1341
|
+
if skipped is not None:
|
|
1342
|
+
return skipped
|
|
1333
1343
|
return Memory.from_dict(raw)
|
|
1334
1344
|
|
|
1335
1345
|
async def compose(
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.9.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|