langgraph-runtime-inmem 0.15.0__py3-none-any.whl → 0.16.0__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.
- langgraph_runtime_inmem/__init__.py +1 -1
- langgraph_runtime_inmem/database.py +3 -1
- langgraph_runtime_inmem/ops.py +24 -39
- {langgraph_runtime_inmem-0.15.0.dist-info → langgraph_runtime_inmem-0.16.0.dist-info}/METADATA +1 -1
- {langgraph_runtime_inmem-0.15.0.dist-info → langgraph_runtime_inmem-0.16.0.dist-info}/RECORD +6 -6
- {langgraph_runtime_inmem-0.15.0.dist-info → langgraph_runtime_inmem-0.16.0.dist-info}/WHEEL +0 -0
|
@@ -142,7 +142,9 @@ class InMemConnectionProto:
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
@asynccontextmanager
|
|
145
|
-
async def connect(
|
|
145
|
+
async def connect(
|
|
146
|
+
*, supports_core_api: bool = False, __test__: bool = False
|
|
147
|
+
) -> AsyncIterator["AsyncConnectionProto"]:
|
|
146
148
|
yield InMemConnectionProto()
|
|
147
149
|
|
|
148
150
|
|
langgraph_runtime_inmem/ops.py
CHANGED
|
@@ -2120,7 +2120,6 @@ class Runs(Authenticated):
|
|
|
2120
2120
|
ctx: Auth.types.BaseAuthContext | None = None,
|
|
2121
2121
|
) -> AsyncIterator[Run]:
|
|
2122
2122
|
"""Create a run."""
|
|
2123
|
-
from langgraph_api.config import FF_RICH_THREADS
|
|
2124
2123
|
from langgraph_api.schema import Run, Thread
|
|
2125
2124
|
|
|
2126
2125
|
assistant_id = _ensure_uuid(assistant_id)
|
|
@@ -2167,49 +2166,35 @@ class Runs(Authenticated):
|
|
|
2167
2166
|
# Create new thread
|
|
2168
2167
|
if thread_id is None:
|
|
2169
2168
|
thread_id = uuid4()
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
},
|
|
2188
|
-
),
|
|
2189
|
-
created_at=datetime.now(UTC),
|
|
2190
|
-
updated_at=datetime.now(UTC),
|
|
2191
|
-
values=b"",
|
|
2192
|
-
)
|
|
2193
|
-
else:
|
|
2194
|
-
thread = Thread(
|
|
2195
|
-
thread_id=thread_id,
|
|
2196
|
-
status="idle",
|
|
2197
|
-
metadata={
|
|
2198
|
-
"graph_id": assistant["graph_id"],
|
|
2199
|
-
"assistant_id": str(assistant_id),
|
|
2200
|
-
**(config.get("metadata") or {}),
|
|
2201
|
-
**metadata,
|
|
2169
|
+
|
|
2170
|
+
thread = Thread(
|
|
2171
|
+
thread_id=thread_id,
|
|
2172
|
+
status="busy",
|
|
2173
|
+
metadata={
|
|
2174
|
+
"graph_id": assistant["graph_id"],
|
|
2175
|
+
"assistant_id": str(assistant_id),
|
|
2176
|
+
**(config.get("metadata") or {}),
|
|
2177
|
+
**metadata,
|
|
2178
|
+
},
|
|
2179
|
+
config=Runs._merge_jsonb(
|
|
2180
|
+
assistant["config"],
|
|
2181
|
+
config,
|
|
2182
|
+
{
|
|
2183
|
+
"configurable": Runs._merge_jsonb(
|
|
2184
|
+
Runs._get_configurable(assistant["config"]),
|
|
2185
|
+
)
|
|
2202
2186
|
},
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2187
|
+
),
|
|
2188
|
+
created_at=datetime.now(UTC),
|
|
2189
|
+
updated_at=datetime.now(UTC),
|
|
2190
|
+
values=b"",
|
|
2191
|
+
)
|
|
2192
|
+
|
|
2208
2193
|
await logger.ainfo("Creating thread", thread_id=thread_id)
|
|
2209
2194
|
conn.store["threads"].append(thread)
|
|
2210
2195
|
elif existing_thread:
|
|
2211
2196
|
# Update existing thread
|
|
2212
|
-
if
|
|
2197
|
+
if existing_thread["status"] != "busy":
|
|
2213
2198
|
existing_thread["status"] = "busy"
|
|
2214
2199
|
existing_thread["metadata"] = Runs._merge_jsonb(
|
|
2215
2200
|
existing_thread["metadata"],
|
{langgraph_runtime_inmem-0.15.0.dist-info → langgraph_runtime_inmem-0.16.0.dist-info}/RECORD
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
langgraph_runtime_inmem/__init__.py,sha256=
|
|
1
|
+
langgraph_runtime_inmem/__init__.py,sha256=IkyoATWYXVtBdbjGxIAAKNHoHzXa-_xZWmgeHQiG_90,311
|
|
2
2
|
langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
|
|
3
|
-
langgraph_runtime_inmem/database.py,sha256=
|
|
3
|
+
langgraph_runtime_inmem/database.py,sha256=g2XYa5KN-T8MbDeFH9sfUApDG62Wp4BACumVnDtxYhI,6403
|
|
4
4
|
langgraph_runtime_inmem/inmem_stream.py,sha256=PFLWbsxU8RqbT5mYJgNk6v5q6TWJRIY1hkZWhJF8nkI,9094
|
|
5
5
|
langgraph_runtime_inmem/lifespan.py,sha256=fCoYcN_h0cxmj6-muC-f0csPdSpyepZuGRD1yBrq4XM,4755
|
|
6
6
|
langgraph_runtime_inmem/metrics.py,sha256=_YiSkLnhQvHpMktk38SZo0abyL-5GihfVAtBo0-lFIc,403
|
|
7
|
-
langgraph_runtime_inmem/ops.py,sha256=
|
|
7
|
+
langgraph_runtime_inmem/ops.py,sha256=CDFNnyXtypH5yTexgaMAtZwtldc1tjvlFo-BiB-1oeQ,107861
|
|
8
8
|
langgraph_runtime_inmem/queue.py,sha256=yV781CDjlsKNvkJ3puHyiHNnJpIIdB1G_gTY9dg6mys,9994
|
|
9
9
|
langgraph_runtime_inmem/retry.py,sha256=XmldOP4e_H5s264CagJRVnQMDFcEJR_dldVR1Hm5XvM,763
|
|
10
10
|
langgraph_runtime_inmem/store.py,sha256=rTfL1JJvd-j4xjTrL8qDcynaWF6gUJ9-GDVwH0NBD_I,3506
|
|
11
|
-
langgraph_runtime_inmem-0.
|
|
12
|
-
langgraph_runtime_inmem-0.
|
|
13
|
-
langgraph_runtime_inmem-0.
|
|
11
|
+
langgraph_runtime_inmem-0.16.0.dist-info/METADATA,sha256=jU48sen13rzbOAMFoSke5jtWtgyAdOk38N4pbhVSQx0,570
|
|
12
|
+
langgraph_runtime_inmem-0.16.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
langgraph_runtime_inmem-0.16.0.dist-info/RECORD,,
|
|
File without changes
|