langgraph-api 0.2.67__py3-none-any.whl → 0.2.69__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.

Potentially problematic release.


This version of langgraph-api might be problematic. Click here for more details.

langgraph_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.2.67"
1
+ __version__ = "0.2.69"
langgraph_api/api/runs.py CHANGED
@@ -548,14 +548,19 @@ async def search_crons(request: ApiRequest):
548
548
  validate_uuid(thread_id, "Invalid thread ID: must be a UUID")
549
549
 
550
550
  async with connect() as conn:
551
- crons_iter = await Crons.search(
551
+ crons_iter, total = await Crons.search(
552
552
  conn,
553
553
  assistant_id=assistant_id,
554
554
  thread_id=thread_id,
555
555
  limit=int(payload.get("limit", 10)),
556
556
  offset=int(payload.get("offset", 0)),
557
+ sort_by=payload.get("sort_by"),
558
+ sort_order=payload.get("sort_order"),
557
559
  )
558
- return ApiResponse([cron async for cron in crons_iter])
560
+ return ApiResponse(
561
+ [cron async for cron in crons_iter],
562
+ headers={"X-Pagination-Total": str(total)},
563
+ )
559
564
 
560
565
 
561
566
  runs_routes = [
langgraph_api/cli.py CHANGED
@@ -354,7 +354,6 @@ For production use, please use LangGraph Cloud.
354
354
  threading.Thread(target=_open_browser, daemon=True).start()
355
355
  nvc = os.getenv("LANGGRAPH_NO_VERSION_CHECK")
356
356
  if nvc is None or nvc.lower() not in ("true", "1"):
357
- print("Checking for newer version...")
358
357
  threading.Thread(
359
358
  target=_check_newer_version, args=("langgraph-api",), daemon=True
360
359
  ).start()
langgraph_api/schema.py CHANGED
@@ -170,6 +170,8 @@ class Cron(TypedDict):
170
170
 
171
171
  cron_id: UUID
172
172
  """The ID of the cron."""
173
+ assistant_id: UUID
174
+ """The ID of the assistant."""
173
175
  thread_id: UUID | None
174
176
  """The ID of the thread."""
175
177
  end_time: datetime | None
@@ -180,8 +182,14 @@ class Cron(TypedDict):
180
182
  """The time the cron was created."""
181
183
  updated_at: datetime
182
184
  """The last time the cron was updated."""
185
+ user_id: UUID | None
186
+ """The ID of the user."""
183
187
  payload: Fragment
184
188
  """The run payload to use for creating new run."""
189
+ next_run_date: datetime
190
+ """The next run date of the cron."""
191
+ metadata: Fragment
192
+ """The cron metadata."""
185
193
 
186
194
 
187
195
  class ThreadUpdateResponse(TypedDict):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-api
3
- Version: 0.2.67
3
+ Version: 0.2.69
4
4
  Author-email: Nuno Campos <nuno@langchain.dev>, Will Fu-Hinthorn <will@langchain.dev>
5
5
  License: Elastic-2.0
6
6
  License-File: LICENSE
@@ -12,7 +12,7 @@ Requires-Dist: jsonschema-rs<0.30,>=0.20.0
12
12
  Requires-Dist: langchain-core>=0.3.64
13
13
  Requires-Dist: langgraph-checkpoint>=2.0.23
14
14
  Requires-Dist: langgraph-runtime-inmem<0.4,>=0.3.0
15
- Requires-Dist: langgraph-sdk>=0.1.66
15
+ Requires-Dist: langgraph-sdk>=0.1.71
16
16
  Requires-Dist: langgraph>=0.3.27
17
17
  Requires-Dist: langsmith>=0.3.45
18
18
  Requires-Dist: orjson>=3.9.7
@@ -1,7 +1,7 @@
1
- langgraph_api/__init__.py,sha256=rEMkQMd1xEY6WmwoTUQ4Q_9L1tdN4h_gKqmCA7tRVnU,23
1
+ langgraph_api/__init__.py,sha256=JZlU2Fd9oQhYImTNbqbkHJwN8HUa2YzybBvxA0jdPiU,23
2
2
  langgraph_api/asgi_transport.py,sha256=eqifhHxNnxvI7jJqrY1_8RjL4Fp9NdN4prEub2FWBt8,5091
3
3
  langgraph_api/asyncio.py,sha256=Odnc6mAJIGF3eFWT8Xcrg2Zam7FwzXkfCWEHaXfrzQQ,9371
4
- langgraph_api/cli.py,sha256=OBW3oKbK8wM0_JrKdWI0mMjCb047OwT_S6OTSp7vBf4,16066
4
+ langgraph_api/cli.py,sha256=13mKb-WT7fGx_yqcbWITPB9ICEHCrPzIP1ddZ5RbXbY,16015
5
5
  langgraph_api/command.py,sha256=3O9v3i0OPa96ARyJ_oJbLXkfO8rPgDhLCswgO9koTFA,768
6
6
  langgraph_api/config.py,sha256=jmtO5LXubet2Hl7S2tF2BRyB_q2yqCzFqCwN7n6za4Y,11727
7
7
  langgraph_api/cron_scheduler.py,sha256=i87j4pJrcsmsqMKeKUs69gaAjrGaSM3pM3jnXdN5JDQ,2630
@@ -13,7 +13,7 @@ langgraph_api/metadata.py,sha256=Gx0b6YszLRjdWLDVN8OcVgC_YYQG_nQitPfUfgQx1w8,464
13
13
  langgraph_api/patch.py,sha256=Dgs0PXHytekX4SUL6KsjjN0hHcOtGLvv1GRGbh6PswU,1408
14
14
  langgraph_api/queue_entrypoint.py,sha256=hC8j-A4cUxibusiiPJBlK0mkmChNZxNcXn5GVwL0yic,4889
15
15
  langgraph_api/route.py,sha256=4VBkJMeusfiZtLzyUaKm1HwLHTq0g15y2CRiRhM6xyA,4773
16
- langgraph_api/schema.py,sha256=2711t4PIBk5dky4gmMndrTRC9CVvAgH47C9FKDxhkBo,5444
16
+ langgraph_api/schema.py,sha256=a6it0h9ku4jrTXiW9MhnGok_wignyQ4cXBra67FiryM,5678
17
17
  langgraph_api/serde.py,sha256=8fQXg7T7RVUqj_jgOoSOJrWVpQDW0qJKjAjSsEhPHo4,4803
18
18
  langgraph_api/server.py,sha256=Z_VL-kIphybTRDWBIqHMfRhgCmAFyTRqAGlgnHQF0Zg,6973
19
19
  langgraph_api/sse.py,sha256=F7swfjKBDrlUmXZ_dWuDVHtp-3o1Cpjq1lwp0bJD-nw,4223
@@ -30,7 +30,7 @@ langgraph_api/api/assistants.py,sha256=6IPVKQBlI95-Z4nYdqBY9st9oynGJAocL67cwnDaZ
30
30
  langgraph_api/api/mcp.py,sha256=RvRYgANqRzNQzSmgjNkq4RlKTtoEJYil04ot9lsmEtE,14352
31
31
  langgraph_api/api/meta.py,sha256=MU9Ehdo2M8oaxGVBXVQFNRP6qSTXyrsGXFcndRlnvIE,3924
32
32
  langgraph_api/api/openapi.py,sha256=362m6Ny8wOwZ6HrDK9JAVUzPkyLYWKeV1E71hPOaA0U,11278
33
- langgraph_api/api/runs.py,sha256=9jU9C4myBhgZXyvR9MzNn9KrpNo7DvWbg8uNeWzSmKE,19524
33
+ langgraph_api/api/runs.py,sha256=1rNUbFleakTYAqG20cGtpWyY2TS5EoVgT4Pxe1AQ68E,19692
34
34
  langgraph_api/api/store.py,sha256=TSeMiuMfrifmEnEbL0aObC2DPeseLlmZvAMaMzPgG3Y,5535
35
35
  langgraph_api/api/threads.py,sha256=ogMKmEoiycuaV3fa5kpupDohJ7fwUOfVczt6-WSK4FE,9322
36
36
  langgraph_api/api/ui.py,sha256=2nlipYV2nUGR4T9pceaAbgN1lS3-T2zPBh7Nv3j9eZQ,2479
@@ -85,9 +85,9 @@ langgraph_runtime/retry.py,sha256=V0duD01fO7GUQ_btQkp1aoXcEOFhXooGVP6q4yMfuyY,11
85
85
  langgraph_runtime/store.py,sha256=7mowndlsIroGHv3NpTSOZDJR0lCuaYMBoTnTrewjslw,114
86
86
  LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
87
87
  logging.json,sha256=3RNjSADZmDq38eHePMm1CbP6qZ71AmpBtLwCmKU9Zgo,379
88
- openapi.json,sha256=J4ICw3-W3LdxQOfsTuzcZVYt3e9UFeLb6oPr_a-5iHU,141823
89
- langgraph_api-0.2.67.dist-info/METADATA,sha256=1hZkOLWJ9LVcgf2vwpW_BYo6wNZNdCSUypsirjGyliM,3891
90
- langgraph_api-0.2.67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
- langgraph_api-0.2.67.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
92
- langgraph_api-0.2.67.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
93
- langgraph_api-0.2.67.dist-info/RECORD,,
88
+ openapi.json,sha256=NVgY0hdCu6v5anNus9I-CVYKKcrDLKd1qhILy-kQpq8,142590
89
+ langgraph_api-0.2.69.dist-info/METADATA,sha256=a2RswXbZm_ZyG8o4E0EW82LKP6nUkMFddndgzBYj_0k,3891
90
+ langgraph_api-0.2.69.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
91
+ langgraph_api-0.2.69.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
92
+ langgraph_api-0.2.69.dist-info/licenses/LICENSE,sha256=ZPwVR73Biwm3sK6vR54djCrhaRiM4cAD2zvOQZV8Xis,3859
93
+ langgraph_api-0.2.69.dist-info/RECORD,,
openapi.json CHANGED
@@ -3243,6 +3243,12 @@
3243
3243
  "title": "Schedule",
3244
3244
  "description": "The cron schedule to execute this job on."
3245
3245
  },
3246
+ "end_time": {
3247
+ "type": "string",
3248
+ "format": "date-time",
3249
+ "title": "End Time",
3250
+ "description": "The end date to stop running the cron."
3251
+ },
3246
3252
  "assistant_id": {
3247
3253
  "anyOf": [
3248
3254
  {
@@ -3392,6 +3398,20 @@
3392
3398
  "description": "The number of results to skip.",
3393
3399
  "default": 0,
3394
3400
  "minimum": 0
3401
+ },
3402
+ "sort_by": {
3403
+ "type": "string",
3404
+ "title": "Sort By",
3405
+ "description": "The field to sort by.",
3406
+ "default": "created_at",
3407
+ "enum": ["cron_id", "assistant_id", "thread_id", "next_run_date", "end_time", "created_at", "updated_at"]
3408
+ },
3409
+ "sort_order": {
3410
+ "type": "string",
3411
+ "title": "Sort Order",
3412
+ "description": "The order to sort by.",
3413
+ "default": "desc",
3414
+ "enum": ["asc", "desc"]
3395
3415
  }
3396
3416
  },
3397
3417
  "type": "object",
@@ -3513,13 +3533,14 @@
3513
3533
  "type": "string",
3514
3534
  "enum": [
3515
3535
  "pending",
3536
+ "running",
3516
3537
  "error",
3517
3538
  "success",
3518
3539
  "timeout",
3519
3540
  "interrupted"
3520
3541
  ],
3521
3542
  "title": "Status",
3522
- "description": "The status of the run. One of 'pending', 'error', 'success', 'timeout', 'interrupted'."
3543
+ "description": "The status of the run. One of 'pending', 'running', 'error', 'success', 'timeout', 'interrupted'."
3523
3544
  },
3524
3545
  "metadata": {
3525
3546
  "type": "object",