langgraph-runtime-inmem 0.39.0.dev6__tar.gz → 0.39.0.dev8__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.
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/PKG-INFO +1 -1
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/__init__.py +1 -1
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/ops.py +17 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/.gitignore +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/Makefile +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/README.md +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/_persistence.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/checkpoint.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/database.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/encryption.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/inmem_stream.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/lifespan.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/metrics.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/queue.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/retry.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/routes.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/langgraph_runtime_inmem/store.py +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/pyproject.toml +0 -0
- {langgraph_runtime_inmem-0.39.0.dev6 → langgraph_runtime_inmem-0.39.0.dev8}/uv.lock +0 -0
|
@@ -1023,6 +1023,13 @@ def _is_jsonb_value_contained(superset: Any, subset: Any) -> bool:
|
|
|
1023
1023
|
return superset == subset
|
|
1024
1024
|
|
|
1025
1025
|
|
|
1026
|
+
def _in_time_range(
|
|
1027
|
+
value: datetime, after: datetime | None, before: datetime | None
|
|
1028
|
+
) -> bool:
|
|
1029
|
+
"""Check value against an [after, before) range; None bounds are open."""
|
|
1030
|
+
return (after is None or value >= after) and (before is None or value < before)
|
|
1031
|
+
|
|
1032
|
+
|
|
1026
1033
|
def bytes_decoder(obj):
|
|
1027
1034
|
"""Custom JSON decoder that converts base64 back to bytes."""
|
|
1028
1035
|
if "__type__" in obj and obj["__type__"] == "bytes":
|
|
@@ -1125,6 +1132,8 @@ class Threads(Authenticated):
|
|
|
1125
1132
|
select: list[ThreadSelectField] | None = None,
|
|
1126
1133
|
extract: dict[str, str] | None = None,
|
|
1127
1134
|
exclude_metadata: list[dict[str, Any]] | None = None,
|
|
1135
|
+
created_after: datetime | None = None,
|
|
1136
|
+
created_before: datetime | None = None,
|
|
1128
1137
|
ctx: Auth.types.BaseAuthContext | None = None,
|
|
1129
1138
|
) -> tuple[AsyncIterator[Thread], int]:
|
|
1130
1139
|
threads = conn.store["threads"]
|
|
@@ -1173,6 +1182,9 @@ class Threads(Authenticated):
|
|
|
1173
1182
|
):
|
|
1174
1183
|
continue
|
|
1175
1184
|
|
|
1185
|
+
if not _in_time_range(thread["created_at"], created_after, created_before):
|
|
1186
|
+
continue
|
|
1187
|
+
|
|
1176
1188
|
if (
|
|
1177
1189
|
values
|
|
1178
1190
|
and "values" in thread
|
|
@@ -2629,6 +2641,8 @@ class Threads(Authenticated):
|
|
|
2629
2641
|
values: MetadataInput = None,
|
|
2630
2642
|
status: ThreadStatus | None = None,
|
|
2631
2643
|
exclude_metadata: list[dict[str, Any]] | None = None,
|
|
2644
|
+
created_after: datetime | None = None,
|
|
2645
|
+
created_before: datetime | None = None,
|
|
2632
2646
|
ctx: Auth.types.BaseAuthContext | None = None,
|
|
2633
2647
|
) -> int:
|
|
2634
2648
|
"""Get count of threads."""
|
|
@@ -2663,6 +2677,9 @@ class Threads(Authenticated):
|
|
|
2663
2677
|
):
|
|
2664
2678
|
continue
|
|
2665
2679
|
|
|
2680
|
+
if not _in_time_range(thread["created_at"], created_after, created_before):
|
|
2681
|
+
continue
|
|
2682
|
+
|
|
2666
2683
|
if (
|
|
2667
2684
|
values
|
|
2668
2685
|
and "values" in thread
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|