langgraph-runtime-inmem 0.6.10__py3-none-any.whl → 0.6.12__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/ops.py +28 -1
- {langgraph_runtime_inmem-0.6.10.dist-info → langgraph_runtime_inmem-0.6.12.dist-info}/METADATA +1 -1
- {langgraph_runtime_inmem-0.6.10.dist-info → langgraph_runtime_inmem-0.6.12.dist-info}/RECORD +5 -5
- {langgraph_runtime_inmem-0.6.10.dist-info → langgraph_runtime_inmem-0.6.12.dist-info}/WHEEL +0 -0
langgraph_runtime_inmem/ops.py
CHANGED
|
@@ -243,6 +243,19 @@ class Assistants(Authenticated):
|
|
|
243
243
|
name=name,
|
|
244
244
|
),
|
|
245
245
|
)
|
|
246
|
+
|
|
247
|
+
if config.get("configurable") and context:
|
|
248
|
+
raise HTTPException(
|
|
249
|
+
status_code=400,
|
|
250
|
+
detail="Cannot specify both configurable and context. Prefer setting context alone. Context was introduced in LangGraph 0.6.0 and is the long term planned replacement for configurable.",
|
|
251
|
+
)
|
|
252
|
+
|
|
253
|
+
# Keep config and context up to date with one another
|
|
254
|
+
if config.get("configurable"):
|
|
255
|
+
context = config["configurable"]
|
|
256
|
+
elif context:
|
|
257
|
+
config["configurable"] = context
|
|
258
|
+
|
|
246
259
|
existing_assistant = next(
|
|
247
260
|
(a for a in conn.store["assistants"] if a["assistant_id"] == assistant_id),
|
|
248
261
|
None,
|
|
@@ -328,6 +341,7 @@ class Assistants(Authenticated):
|
|
|
328
341
|
"""
|
|
329
342
|
assistant_id = _ensure_uuid(assistant_id)
|
|
330
343
|
metadata = metadata if metadata is not None else {}
|
|
344
|
+
config = config if config is not None else {}
|
|
331
345
|
filters = await Assistants.handle_event(
|
|
332
346
|
ctx,
|
|
333
347
|
"update",
|
|
@@ -340,6 +354,19 @@ class Assistants(Authenticated):
|
|
|
340
354
|
name=name,
|
|
341
355
|
),
|
|
342
356
|
)
|
|
357
|
+
|
|
358
|
+
if config.get("configurable") and context:
|
|
359
|
+
raise HTTPException(
|
|
360
|
+
status_code=400,
|
|
361
|
+
detail="Cannot specify both configurable and context. Prefer setting context alone. Context was introduced in LangGraph 0.6.0 and is the long term planned replacement for configurable.",
|
|
362
|
+
)
|
|
363
|
+
|
|
364
|
+
# Keep config and context up to date with one another
|
|
365
|
+
if config.get("configurable"):
|
|
366
|
+
context = config["configurable"]
|
|
367
|
+
elif context:
|
|
368
|
+
config["configurable"] = context
|
|
369
|
+
|
|
343
370
|
assistant = next(
|
|
344
371
|
(a for a in conn.store["assistants"] if a["assistant_id"] == assistant_id),
|
|
345
372
|
None,
|
|
@@ -375,7 +402,7 @@ class Assistants(Authenticated):
|
|
|
375
402
|
"assistant_id": assistant_id,
|
|
376
403
|
"version": new_version,
|
|
377
404
|
"graph_id": graph_id if graph_id is not None else assistant["graph_id"],
|
|
378
|
-
"config": config if config
|
|
405
|
+
"config": config if config else assistant["config"],
|
|
379
406
|
"context": context if context is not None else assistant.get("context", {}),
|
|
380
407
|
"metadata": metadata if metadata is not None else assistant["metadata"],
|
|
381
408
|
"created_at": now,
|
{langgraph_runtime_inmem-0.6.10.dist-info → langgraph_runtime_inmem-0.6.12.dist-info}/RECORD
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
langgraph_runtime_inmem/__init__.py,sha256=
|
|
1
|
+
langgraph_runtime_inmem/__init__.py,sha256=Y4pMrNRANpl0WNkm4rJgbGxM0sdgeJNJ17xTUA5Do0w,311
|
|
2
2
|
langgraph_runtime_inmem/checkpoint.py,sha256=nc1G8DqVdIu-ibjKTqXfbPfMbAsKjPObKqegrSzo6Po,4432
|
|
3
3
|
langgraph_runtime_inmem/database.py,sha256=G_6L2khpRDSpS2Vs_SujzHayODcwG5V2IhFP7LLBXgw,6349
|
|
4
4
|
langgraph_runtime_inmem/inmem_stream.py,sha256=UWk1srLF44HZPPbRdArGGhsy0MY0UOJKSIxBSO7Hosc,5138
|
|
5
5
|
langgraph_runtime_inmem/lifespan.py,sha256=t0w2MX2dGxe8yNtSX97Z-d2pFpllSLS4s1rh2GJDw5M,3557
|
|
6
6
|
langgraph_runtime_inmem/metrics.py,sha256=HhO0RC2bMDTDyGBNvnd2ooLebLA8P1u5oq978Kp_nAA,392
|
|
7
|
-
langgraph_runtime_inmem/ops.py,sha256=
|
|
7
|
+
langgraph_runtime_inmem/ops.py,sha256=lhvPaQRUmEKumeWJUMOcSmYpZkLbOWvAJT-wYzu5NrM,91701
|
|
8
8
|
langgraph_runtime_inmem/queue.py,sha256=nqfgz7j_Jkh5Ek5-RsHB2Uvwbxguu9IUPkGXIxvFPns,10037
|
|
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.6.
|
|
12
|
-
langgraph_runtime_inmem-0.6.
|
|
13
|
-
langgraph_runtime_inmem-0.6.
|
|
11
|
+
langgraph_runtime_inmem-0.6.12.dist-info/METADATA,sha256=kVDdIT1O23mKzQMYtfFwpy9F4IYZzLYt60T12AczxeQ,566
|
|
12
|
+
langgraph_runtime_inmem-0.6.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
langgraph_runtime_inmem-0.6.12.dist-info/RECORD,,
|
|
File without changes
|