langgraph-api 0.18.0.dev2__py3-none-any.whl → 0.18.0.dev4__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_api/__init__.py +1 -1
- langgraph_api/api/a2a.py +93 -10
- langgraph_api/api/event_streaming.py +81 -9
- langgraph_api/api/mcp/_calls.py +29 -0
- langgraph_api/api/mcp/_constants.py +15 -6
- langgraph_api/api/mcp/_handlers.py +146 -196
- langgraph_api/api/mcp/_outcome.py +43 -0
- langgraph_api/api/mcp/_protocol.py +224 -0
- langgraph_api/config/__init__.py +38 -4
- langgraph_api/cron_scheduler.py +2 -2
- langgraph_api/drain.py +164 -0
- langgraph_api/event_streaming/service.py +130 -133
- langgraph_api/event_streaming/session.py +11 -6
- langgraph_api/executor/__init__.py +9 -0
- langgraph_api/executor/__main__.py +343 -0
- langgraph_api/feature_flags.py +6 -0
- langgraph_api/graph.py +12 -2
- langgraph_api/grpc/ops/runs.py +41 -5
- langgraph_api/grpc/ops/threads.py +54 -6
- langgraph_api/metrics_otlp.py +8 -0
- langgraph_api/models/run.py +11 -3
- langgraph_api/queue_entrypoint.py +13 -1
- langgraph_api/self_hosted_logs.py +3 -1
- langgraph_api/self_hosted_metrics.py +1 -1
- langgraph_api/stream.py +49 -3
- langgraph_api/timing/__init__.py +16 -0
- langgraph_api/timing/startup.py +184 -0
- langgraph_api/timing/timer.py +16 -2
- langgraph_api/utils/headers.py +20 -3
- langgraph_api/validation.py +11 -5
- langgraph_api/worker.py +146 -13
- langgraph_api/worker_runtime.py +124 -4
- {langgraph_api-0.18.0.dev2.dist-info → langgraph_api-0.18.0.dev4.dist-info}/METADATA +1 -1
- {langgraph_api-0.18.0.dev2.dist-info → langgraph_api-0.18.0.dev4.dist-info}/RECORD +43 -38
- langgraph_grpc_common/proto/__init__.py +4 -4
- langgraph_grpc_common/proto/orchestrator_pb2.py +50 -0
- langgraph_grpc_common/proto/{runner_pb2.pyi → orchestrator_pb2.pyi} +4 -4
- langgraph_grpc_common/proto/orchestrator_pb2_grpc.py +108 -0
- langgraph_grpc_common/proto/orchestrator_pb2_grpc.pyi +82 -0
- openapi.json +20 -0
- langgraph_api/runner/__init__.py +0 -10
- langgraph_api/runner/__main__.py +0 -275
- langgraph_grpc_common/proto/runner_pb2.py +0 -50
- langgraph_grpc_common/proto/runner_pb2_grpc.py +0 -108
- langgraph_grpc_common/proto/runner_pb2_grpc.pyi +0 -73
- {langgraph_api-0.18.0.dev2.dist-info → langgraph_api-0.18.0.dev4.dist-info}/WHEEL +0 -0
- {langgraph_api-0.18.0.dev2.dist-info → langgraph_api-0.18.0.dev4.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.18.0.dev2.dist-info → langgraph_api-0.18.0.dev4.dist-info}/licenses/LICENSE +0 -0
langgraph_api/worker.py
CHANGED
|
@@ -2,8 +2,9 @@ import asyncio
|
|
|
2
2
|
import time
|
|
3
3
|
import uuid
|
|
4
4
|
from contextlib import suppress
|
|
5
|
+
from dataclasses import dataclass
|
|
5
6
|
from datetime import UTC, datetime
|
|
6
|
-
from typing import Any
|
|
7
|
+
from typing import Any, Literal
|
|
7
8
|
|
|
8
9
|
import structlog
|
|
9
10
|
from langgraph.errors import GraphRecursionError
|
|
@@ -11,7 +12,12 @@ from langgraph.pregel.debug import CheckpointPayload
|
|
|
11
12
|
from starlette.exceptions import HTTPException
|
|
12
13
|
from typing_extensions import TypedDict
|
|
13
14
|
|
|
14
|
-
from langgraph_api.config import
|
|
15
|
+
from langgraph_api.config import (
|
|
16
|
+
BG_JOB_MAX_DRAINS,
|
|
17
|
+
BG_JOB_MAX_RETRIES,
|
|
18
|
+
BG_JOB_TIMEOUT_SECS,
|
|
19
|
+
RESUME_DRAINED_RUNS,
|
|
20
|
+
)
|
|
15
21
|
from langgraph_api.encryption.context import set_encryption_context
|
|
16
22
|
from langgraph_api.errors import UserInterrupt, UserRollback, UserTimeout
|
|
17
23
|
from langgraph_api.feature_flags import IS_POSTGRES_OR_GRPC_BACKEND
|
|
@@ -21,7 +27,9 @@ from langgraph_api.metrics_otlp import (
|
|
|
21
27
|
COUNTER_GRAPH_RECURSION_LIMIT_ERROR,
|
|
22
28
|
COUNTER_RUN_ATTEMPT_STARTED,
|
|
23
29
|
COUNTER_RUN_CANCELED_BY_REQUEST,
|
|
30
|
+
COUNTER_RUN_DRAINED,
|
|
24
31
|
COUNTER_RUN_EXCEED_MAX_ATTEMPTS_AT_START,
|
|
32
|
+
COUNTER_RUN_EXCEED_MAX_DRAINS_AT_START,
|
|
25
33
|
COUNTER_RUN_FAILED_AFTER_RETRY,
|
|
26
34
|
COUNTER_RUN_FAILED_RETRIABLE,
|
|
27
35
|
COUNTER_RUN_SET_STATUS_ERROR,
|
|
@@ -34,8 +42,10 @@ from langgraph_api.serde import json_dumpb
|
|
|
34
42
|
from langgraph_api.stream import AnyStream, consume
|
|
35
43
|
from langgraph_api.worker_runtime import (
|
|
36
44
|
ALL_RETRIABLE_EXCEPTIONS,
|
|
45
|
+
DRAIN_POLICY,
|
|
37
46
|
RunCheckpointTracker,
|
|
38
47
|
cleanup_custom_checkpointer_for_run,
|
|
48
|
+
fetch_checkpoint_after_failure,
|
|
39
49
|
fetch_missing_checkpoint,
|
|
40
50
|
set_run_logging_context,
|
|
41
51
|
stream_run,
|
|
@@ -66,6 +76,8 @@ async def worker(
|
|
|
66
76
|
main_loop: asyncio.AbstractEventLoop,
|
|
67
77
|
*,
|
|
68
78
|
encryption_context: dict[str, Any] | None = None,
|
|
79
|
+
drains: int = 0,
|
|
80
|
+
control: Any | None = None,
|
|
69
81
|
) -> WorkerResult:
|
|
70
82
|
reporter = get_otlp_metrics_reporter()
|
|
71
83
|
run_id = run["run_id"]
|
|
@@ -131,7 +143,9 @@ async def worker(
|
|
|
131
143
|
stream, run_id, resumable, stream_modes, thread_id=run["thread_id"]
|
|
132
144
|
)
|
|
133
145
|
except Exception as e:
|
|
134
|
-
if not isinstance(
|
|
146
|
+
if not isinstance(
|
|
147
|
+
e, UserRollback | UserInterrupt
|
|
148
|
+
) and not DRAIN_POLICY.is_drain(e):
|
|
135
149
|
logger.exception(
|
|
136
150
|
f"Run encountered an error in graph: {type(e)}({e})",
|
|
137
151
|
run_id=str(run_id),
|
|
@@ -143,9 +157,11 @@ async def worker(
|
|
|
143
157
|
|
|
144
158
|
tracker = RunCheckpointTracker()
|
|
145
159
|
async with Runs.enter(run_id, run["thread_id"], main_loop, resumable) as done:
|
|
160
|
+
claim = RunClaim.from_counters(attempt, DRAIN_POLICY.counted_drains(drains))
|
|
146
161
|
# attempt the run
|
|
147
162
|
try:
|
|
148
|
-
|
|
163
|
+
exceeded = claim.exceeded_limit()
|
|
164
|
+
if exceeded == "retries":
|
|
149
165
|
reporter.inc_counter(COUNTER_RUN_EXCEED_MAX_ATTEMPTS_AT_START)
|
|
150
166
|
await logger.aerror(
|
|
151
167
|
"Run exceeded max attempts",
|
|
@@ -161,10 +177,35 @@ async def worker(
|
|
|
161
177
|
f"Run {run['run_id']} exceeded max attempts ({BG_JOB_MAX_RETRIES}).\n\n"
|
|
162
178
|
"This usually means the pod processing the run became unhealthy and the run was re-queued repeatedly. "
|
|
163
179
|
"Check for OOM kills, pod restarts, liveness/readiness probe failures, or other signs of pod instability "
|
|
164
|
-
"in your deployment's logs and metrics
|
|
180
|
+
"in your deployment's logs and metrics."
|
|
181
|
+
+ (
|
|
182
|
+
" For temporary (threadless) runs, drains count as "
|
|
183
|
+
"attempts too.\n\n"
|
|
184
|
+
if RESUME_DRAINED_RUNS
|
|
185
|
+
else "\n\n"
|
|
186
|
+
)
|
|
165
187
|
)
|
|
166
188
|
|
|
167
189
|
raise RuntimeError(error_message)
|
|
190
|
+
if exceeded == "drains":
|
|
191
|
+
reporter.inc_counter(COUNTER_RUN_EXCEED_MAX_DRAINS_AT_START)
|
|
192
|
+
await logger.aerror(
|
|
193
|
+
"Run exceeded max drains",
|
|
194
|
+
run_id=str(run["run_id"]),
|
|
195
|
+
drains=claim.drains,
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
raise RuntimeError(
|
|
199
|
+
f"Run {run['run_id']} was drained {claim.drains} times without finishing, "
|
|
200
|
+
f"more than BG_JOB_MAX_DRAINS ({BG_JOB_MAX_DRAINS}) allows. "
|
|
201
|
+
"This means the graph keeps requesting drains instead of completing; "
|
|
202
|
+
"check what is calling request_drain() in the graph or how often pods "
|
|
203
|
+
"are being stopped mid-run."
|
|
204
|
+
)
|
|
205
|
+
# Whether this claim continues an earlier one of the same run is
|
|
206
|
+
# read from Postgres, not from the counters: Redis holds only
|
|
207
|
+
# ephemeral data and can lose them between claims.
|
|
208
|
+
resume = await DRAIN_POLICY.resumes_from_checkpoint(run)
|
|
168
209
|
stream_modes: set[StreamMode] = set(run["kwargs"].get("stream_mode", []))
|
|
169
210
|
await asyncio.wait_for(
|
|
170
211
|
wrap_user_errors(
|
|
@@ -173,6 +214,10 @@ async def worker(
|
|
|
173
214
|
attempt,
|
|
174
215
|
done,
|
|
175
216
|
tracker=tracker,
|
|
217
|
+
control=control,
|
|
218
|
+
# Continue from the run's own latest checkpoint
|
|
219
|
+
# instead of re-sending its original input or command.
|
|
220
|
+
resume_from_checkpoint=resume,
|
|
176
221
|
),
|
|
177
222
|
run_id,
|
|
178
223
|
resumable,
|
|
@@ -223,8 +268,8 @@ async def worker(
|
|
|
223
268
|
"Background run succeeded",
|
|
224
269
|
**log_info,
|
|
225
270
|
)
|
|
226
|
-
#
|
|
227
|
-
#
|
|
271
|
+
# Python graphs under Protocol v2 never feed the tracker, nor does a
|
|
272
|
+
# retry that resumed right at the end
|
|
228
273
|
if checkpoint is None and not temporary:
|
|
229
274
|
await logger.ainfo(
|
|
230
275
|
"Fetching missing checkpoint for webhook",
|
|
@@ -260,7 +305,9 @@ async def worker(
|
|
|
260
305
|
run_id,
|
|
261
306
|
status,
|
|
262
307
|
graph_id=graph_id,
|
|
263
|
-
checkpoint=
|
|
308
|
+
checkpoint=await fetch_checkpoint_after_failure(
|
|
309
|
+
run, claim.failed_attempts, checkpoint, temporary=temporary
|
|
310
|
+
),
|
|
264
311
|
exception=exception,
|
|
265
312
|
)
|
|
266
313
|
elif isinstance(exception, UserRollback):
|
|
@@ -316,9 +363,44 @@ async def worker(
|
|
|
316
363
|
run_id,
|
|
317
364
|
status,
|
|
318
365
|
graph_id,
|
|
319
|
-
|
|
366
|
+
await fetch_checkpoint_after_failure(
|
|
367
|
+
run, claim.failed_attempts, checkpoint, temporary=temporary
|
|
368
|
+
),
|
|
320
369
|
exception,
|
|
321
370
|
)
|
|
371
|
+
elif DRAIN_POLICY.is_drain(exception):
|
|
372
|
+
status = "retry"
|
|
373
|
+
# A drained run isn't finished; it notifies on completion.
|
|
374
|
+
webhook = None
|
|
375
|
+
reporter.inc_counter(
|
|
376
|
+
COUNTER_RUN_DRAINED, attributes={"temporary": temporary}
|
|
377
|
+
)
|
|
378
|
+
# Don't update thread status: the run continues on the next
|
|
379
|
+
# worker that claims it.
|
|
380
|
+
try:
|
|
381
|
+
if temporary:
|
|
382
|
+
# No checkpointer, so nothing to resume from: the run
|
|
383
|
+
# restarts from its input, which is a retry, and counts
|
|
384
|
+
# against the retry limit like one.
|
|
385
|
+
await logger.awarning(
|
|
386
|
+
"Temporary run drained; it has no checkpoint, so it "
|
|
387
|
+
"restarts from its input and counts as a failed attempt",
|
|
388
|
+
reason=exception.reason,
|
|
389
|
+
**log_info,
|
|
390
|
+
)
|
|
391
|
+
await Runs.set_status(conn, run_id, "pending")
|
|
392
|
+
else:
|
|
393
|
+
await logger.ainfo(
|
|
394
|
+
"Run drained at a superstep boundary; re-queued to resume",
|
|
395
|
+
reason=exception.reason,
|
|
396
|
+
**log_info,
|
|
397
|
+
)
|
|
398
|
+
# Requeue counts the drain before making the run
|
|
399
|
+
# claimable, so the drain doesn't use up a retry.
|
|
400
|
+
await Runs.requeue(conn, run_id, exception.reason or "")
|
|
401
|
+
except Exception:
|
|
402
|
+
reporter.inc_counter(COUNTER_RUN_SET_STATUS_ERROR)
|
|
403
|
+
raise
|
|
322
404
|
elif isinstance(exception, ALL_RETRIABLE_EXCEPTIONS):
|
|
323
405
|
status = "retry"
|
|
324
406
|
reporter.inc_counter(COUNTER_RUN_FAILED_RETRIABLE)
|
|
@@ -382,12 +464,14 @@ async def worker(
|
|
|
382
464
|
run_id,
|
|
383
465
|
status,
|
|
384
466
|
graph_id,
|
|
385
|
-
|
|
467
|
+
await fetch_checkpoint_after_failure(
|
|
468
|
+
run, claim.failed_attempts, checkpoint, temporary=temporary
|
|
469
|
+
),
|
|
386
470
|
exception,
|
|
387
471
|
)
|
|
388
472
|
|
|
389
473
|
# delete thread if it's temporary and we don't want to retry
|
|
390
|
-
if temporary and not isinstance(exception,
|
|
474
|
+
if temporary and not isinstance(exception, DRAIN_POLICY.requeue_exceptions):
|
|
391
475
|
await Threads.delete(conn, run["thread_id"])
|
|
392
476
|
|
|
393
477
|
reporter.record_latency(
|
|
@@ -396,8 +480,11 @@ async def worker(
|
|
|
396
480
|
attributes={"status": status or "unknown"},
|
|
397
481
|
)
|
|
398
482
|
|
|
399
|
-
if isinstance(exception,
|
|
400
|
-
|
|
483
|
+
if isinstance(exception, DRAIN_POLICY.requeue_exceptions):
|
|
484
|
+
if DRAIN_POLICY.is_drain(exception):
|
|
485
|
+
await logger.ainfo("Run drained; will resume when re-claimed")
|
|
486
|
+
else:
|
|
487
|
+
await logger.awarning("RETRYING", exc_info=exception)
|
|
401
488
|
# re-raise so Runs.enter knows not to mark as done
|
|
402
489
|
# Runs.enter will catch the exception, but what triggers the retry
|
|
403
490
|
# is setting the status to "pending"
|
|
@@ -414,5 +501,51 @@ async def worker(
|
|
|
414
501
|
)
|
|
415
502
|
|
|
416
503
|
|
|
504
|
+
@dataclass(frozen=True)
|
|
505
|
+
class RunClaim:
|
|
506
|
+
"""A run's claim counters, as of one claim.
|
|
507
|
+
|
|
508
|
+
Built via `from_counters` so the clamping of the drain count to the
|
|
509
|
+
claims before this one lives in one place.
|
|
510
|
+
"""
|
|
511
|
+
|
|
512
|
+
attempt: int
|
|
513
|
+
drains: int
|
|
514
|
+
|
|
515
|
+
@classmethod
|
|
516
|
+
def from_counters(cls, attempt: int, drains: int) -> "RunClaim":
|
|
517
|
+
"""Clamp the drain count to the claims before this one.
|
|
518
|
+
|
|
519
|
+
The attempt and drain counters are stored separately, so a stale
|
|
520
|
+
drain value can't be allowed to exceed the claims that came before
|
|
521
|
+
this one.
|
|
522
|
+
"""
|
|
523
|
+
return cls(
|
|
524
|
+
attempt=attempt,
|
|
525
|
+
drains=max(0, min(drains, attempt - 1)),
|
|
526
|
+
)
|
|
527
|
+
|
|
528
|
+
@property
|
|
529
|
+
def failed_attempts(self) -> int:
|
|
530
|
+
"""Claims that were not cooperative handoffs."""
|
|
531
|
+
return self.attempt - self.drains
|
|
532
|
+
|
|
533
|
+
def exceeded_limit(self) -> Literal["retries", "drains"] | None:
|
|
534
|
+
"""Return which limit this claim exceeds, if any.
|
|
535
|
+
|
|
536
|
+
Drains are handoffs, not failures: only failed attempts (claims that
|
|
537
|
+
were not drains) count against the retry limit. A run fails once it
|
|
538
|
+
has drained more than BG_JOB_MAX_DRAINS times.
|
|
539
|
+
"""
|
|
540
|
+
if self.failed_attempts > BG_JOB_MAX_RETRIES:
|
|
541
|
+
return "retries"
|
|
542
|
+
# A claim that never drained can't exceed the drain limit (also keeps
|
|
543
|
+
# a nonsensical negative limit from failing flag-off claims, which
|
|
544
|
+
# carry no drains at all).
|
|
545
|
+
if self.drains > 0 and self.drains > BG_JOB_MAX_DRAINS:
|
|
546
|
+
return "drains"
|
|
547
|
+
return None
|
|
548
|
+
|
|
549
|
+
|
|
417
550
|
def ms(after: datetime, before: datetime) -> int:
|
|
418
551
|
return int((after - before).total_seconds() * 1000)
|
langgraph_api/worker_runtime.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Shared graph execution setup for single-process worker and multi-process
|
|
1
|
+
"""Shared graph execution setup for single-process worker and multi-process executor."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
@@ -10,8 +10,15 @@ from typing import TYPE_CHECKING, Any
|
|
|
10
10
|
import structlog
|
|
11
11
|
|
|
12
12
|
import langgraph_api.logging as lg_logging
|
|
13
|
+
from langgraph_api import _checkpointer as api_checkpointer
|
|
13
14
|
from langgraph_api.auth.custom import SimpleUser, normalize_user
|
|
14
|
-
from langgraph_api.config import
|
|
15
|
+
from langgraph_api.config import (
|
|
16
|
+
BG_JOB_MAX_RETRIES,
|
|
17
|
+
RESUME_DRAINED_RUNS,
|
|
18
|
+
USE_CUSTOM_CHECKPOINTER,
|
|
19
|
+
)
|
|
20
|
+
from langgraph_api.drain import GraphDrained, ServerRunControl, new_run_control
|
|
21
|
+
from langgraph_api.event_streaming.constants import EVENT_STREAMING_V2_CONFIG_KEY
|
|
15
22
|
from langgraph_api.feature_flags import (
|
|
16
23
|
IS_POSTGRES_OR_GRPC_BACKEND,
|
|
17
24
|
PREFER_GRPC_CHECKPOINTER,
|
|
@@ -49,6 +56,14 @@ ALL_RETRIABLE_EXCEPTIONS = (
|
|
|
49
56
|
*GRPC_RETRIABLE_EXCEPTIONS,
|
|
50
57
|
)
|
|
51
58
|
|
|
59
|
+
# Exceptions after which the run goes back to the queue when drained runs are
|
|
60
|
+
# resumed (ResumeDrainedRuns). GraphDrained stays out of
|
|
61
|
+
# ALL_RETRIABLE_EXCEPTIONS because a drain isn't a failure.
|
|
62
|
+
REQUEUE_EXCEPTIONS = (
|
|
63
|
+
*ALL_RETRIABLE_EXCEPTIONS,
|
|
64
|
+
GraphDrained,
|
|
65
|
+
)
|
|
66
|
+
|
|
52
67
|
|
|
53
68
|
@asynccontextmanager
|
|
54
69
|
async def set_auth_ctx_for_run(
|
|
@@ -142,10 +157,17 @@ async def fetch_missing_checkpoint(
|
|
|
142
157
|
else:
|
|
143
158
|
from langgraph_runtime.ops import Threads # noqa: PLC0415
|
|
144
159
|
|
|
160
|
+
# A forked run's config still pins the checkpoint it started from. Drop the
|
|
161
|
+
# pin so the read returns the state the run left behind; ``checkpoint_ns``
|
|
162
|
+
# stays, since the run writes its checkpoints under it.
|
|
163
|
+
config = run["kwargs"]["config"]
|
|
164
|
+
configurable = dict(config["configurable"])
|
|
165
|
+
configurable.pop("checkpoint_id", None)
|
|
166
|
+
configurable.pop("checkpoint_map", None)
|
|
145
167
|
try:
|
|
146
168
|
async with connect(supports_core_api=PREFER_GRPC_CHECKPOINTER) as conn:
|
|
147
169
|
state_snapshot = await Threads.State.get(
|
|
148
|
-
conn,
|
|
170
|
+
conn, {**config, "configurable": configurable}, subgraphs=False
|
|
149
171
|
)
|
|
150
172
|
return state_snapshot_to_thread_state(state_snapshot)
|
|
151
173
|
except Exception:
|
|
@@ -157,6 +179,99 @@ async def fetch_missing_checkpoint(
|
|
|
157
179
|
return checkpoint
|
|
158
180
|
|
|
159
181
|
|
|
182
|
+
async def run_resumes_from_checkpoint(run: Run) -> bool:
|
|
183
|
+
"""Whether this claim of the run continues from a checkpoint.
|
|
184
|
+
|
|
185
|
+
The run continues from the thread's latest checkpoint if it wrote that
|
|
186
|
+
checkpoint itself: an earlier claim of the run got that far, then drained
|
|
187
|
+
or crashed. Postgres records this durably, unlike the Redis attempt and
|
|
188
|
+
drain counters, which can be lost.
|
|
189
|
+
"""
|
|
190
|
+
if run["kwargs"].get("temporary", False):
|
|
191
|
+
# Temporary runs have no checkpointer: nothing to resume from.
|
|
192
|
+
return False
|
|
193
|
+
# We don't swallow read errors: the run's input could be re-sent.
|
|
194
|
+
checkpointer = await api_checkpointer.get_checkpointer()
|
|
195
|
+
latest = await checkpointer.aget_tuple(
|
|
196
|
+
{"configurable": {"thread_id": str(run["thread_id"]), "checkpoint_ns": ""}}
|
|
197
|
+
)
|
|
198
|
+
if latest is None:
|
|
199
|
+
return False
|
|
200
|
+
# Another run wrote it when this run hasn't checkpointed yet (e.g. its
|
|
201
|
+
# first claim): the claim sends its input as usual.
|
|
202
|
+
return str(latest.metadata.get("run_id")) == str(run["run_id"])
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class DrainPolicy:
|
|
206
|
+
"""How the worker treats drained runs: as on main, a drain is an error."""
|
|
207
|
+
|
|
208
|
+
requeue_exceptions: tuple[type[BaseException], ...] = ALL_RETRIABLE_EXCEPTIONS
|
|
209
|
+
|
|
210
|
+
def is_drain(self, exc: BaseException) -> bool:
|
|
211
|
+
return False
|
|
212
|
+
|
|
213
|
+
def counted_drains(self, drains: int) -> int:
|
|
214
|
+
"""The drains counted against the retry and drain limits."""
|
|
215
|
+
# The counters can carry drains from when drained runs were resumed:
|
|
216
|
+
# the retry limit counts raw attempts.
|
|
217
|
+
return 0
|
|
218
|
+
|
|
219
|
+
async def resumes_from_checkpoint(self, run: Run) -> bool:
|
|
220
|
+
return False
|
|
221
|
+
|
|
222
|
+
def new_control(self) -> ServerRunControl | None:
|
|
223
|
+
return None
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
class ResumeDrainedRuns(DrainPolicy):
|
|
227
|
+
"""A drained run goes back to the queue and continues from its checkpoint."""
|
|
228
|
+
|
|
229
|
+
requeue_exceptions = REQUEUE_EXCEPTIONS
|
|
230
|
+
|
|
231
|
+
def is_drain(self, exc: BaseException) -> bool:
|
|
232
|
+
return isinstance(exc, GraphDrained)
|
|
233
|
+
|
|
234
|
+
def counted_drains(self, drains: int) -> int:
|
|
235
|
+
return drains
|
|
236
|
+
|
|
237
|
+
async def resumes_from_checkpoint(self, run: Run) -> bool:
|
|
238
|
+
return await run_resumes_from_checkpoint(run)
|
|
239
|
+
|
|
240
|
+
def new_control(self) -> ServerRunControl | None:
|
|
241
|
+
return new_run_control()
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
DRAIN_POLICY: DrainPolicy = (
|
|
245
|
+
ResumeDrainedRuns() if RESUME_DRAINED_RUNS else DrainPolicy()
|
|
246
|
+
)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
async def fetch_checkpoint_after_failure(
|
|
250
|
+
run: Run,
|
|
251
|
+
failed_attempts: int,
|
|
252
|
+
checkpoint: CheckpointPayload | None,
|
|
253
|
+
*,
|
|
254
|
+
temporary: bool,
|
|
255
|
+
) -> CheckpointPayload | None:
|
|
256
|
+
"""Return the state a failed, timed-out or cancelled run left behind.
|
|
257
|
+
|
|
258
|
+
The tracker only sees checkpoints from ``debug`` events, which Python
|
|
259
|
+
graphs under Protocol v2 don't emit, so a v2 run reaches finalization with
|
|
260
|
+
no checkpoint even if it raised interrupts, and the thread row that
|
|
261
|
+
``input.respond`` validates against only learns them from this read. Other
|
|
262
|
+
runs keep the tracker's checkpoint. A run over its retry limit never
|
|
263
|
+
started, so there is nothing new to read, and reading could repeat
|
|
264
|
+
whatever crashed it. Drains don't count toward that limit, so callers pass
|
|
265
|
+
the claim's failed attempts rather than its attempt number.
|
|
266
|
+
"""
|
|
267
|
+
configurable = run["kwargs"]["config"]["configurable"]
|
|
268
|
+
if failed_attempts > BG_JOB_MAX_RETRIES or not configurable.get(
|
|
269
|
+
EVENT_STREAMING_V2_CONFIG_KEY
|
|
270
|
+
):
|
|
271
|
+
return checkpoint
|
|
272
|
+
return await fetch_missing_checkpoint(run, checkpoint, temporary=temporary)
|
|
273
|
+
|
|
274
|
+
|
|
160
275
|
async def cleanup_custom_checkpointer_for_run(run_id: str) -> None:
|
|
161
276
|
if not USE_CUSTOM_CHECKPOINTER:
|
|
162
277
|
return
|
|
@@ -178,6 +293,9 @@ async def stream_run(
|
|
|
178
293
|
attempt: int,
|
|
179
294
|
cancel: ValueEvent,
|
|
180
295
|
tracker: RunCheckpointTracker,
|
|
296
|
+
*,
|
|
297
|
+
control: Any | None = None,
|
|
298
|
+
resume_from_checkpoint: bool = False,
|
|
181
299
|
) -> AsyncIterator[tuple[str, Any]]:
|
|
182
300
|
"""Yield stream events with worker-parity ambient setup."""
|
|
183
301
|
temporary = run["kwargs"].get("temporary", False)
|
|
@@ -193,7 +311,7 @@ async def stream_run(
|
|
|
193
311
|
restore_dd_trace_context(configurable, run_id=run_id, thread_id=thread_id),
|
|
194
312
|
):
|
|
195
313
|
if temporary:
|
|
196
|
-
stream = astream_state(run, attempt, cancel)
|
|
314
|
+
stream = astream_state(run, attempt, cancel, control=control)
|
|
197
315
|
else:
|
|
198
316
|
stream = astream_state(
|
|
199
317
|
run,
|
|
@@ -201,6 +319,8 @@ async def stream_run(
|
|
|
201
319
|
cancel,
|
|
202
320
|
on_checkpoint=tracker.on_checkpoint,
|
|
203
321
|
on_task_result=tracker.on_task_result,
|
|
322
|
+
control=control,
|
|
323
|
+
resume_from_checkpoint=resume_from_checkpoint,
|
|
204
324
|
)
|
|
205
325
|
async for mode, payload in stream:
|
|
206
326
|
yield mode, payload
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
langgraph_api/__init__.py,sha256=
|
|
1
|
+
langgraph_api/__init__.py,sha256=lKV0HWITd9TkyE-O95yarED1frbG86ds67s3ivE3cFk,28
|
|
2
2
|
langgraph_api/_factory_utils.py,sha256=_FqW0olMu2PGLsnRq0ylt3a4jDCe12YIFHExMXI6Nyo,5976
|
|
3
3
|
langgraph_api/asgi_transport.py,sha256=XApY3lIWBZTMbbsl8dDJzl0cLGirmAGE0SifqZUnXvs,11896
|
|
4
4
|
langgraph_api/asyncio.py,sha256=-p-Vx89TnErypdPcWb-2EdbsSvhdIdHfriCFG7UP7ls,12444
|
|
@@ -6,46 +6,47 @@ langgraph_api/beacon_data_plane_jwt_auth.py,sha256=SoX2M-_u7oas6zWyss2LBs83E6ynB
|
|
|
6
6
|
langgraph_api/cache.py,sha256=xtBTkEQOP0GJ0wb9EH_BdIvaDfRxPG5DPNnEh2Zmcmg,16198
|
|
7
7
|
langgraph_api/cli.py,sha256=ATtS9s9Cx7QNiGPJceKnMCko29A25ZA-xz39fdxmgfg,22389
|
|
8
8
|
langgraph_api/command.py,sha256=d-k8h6H4ix1n7fSZ-Zb01NbSkEyqrD6cMKfDFXEIYEw,821
|
|
9
|
-
langgraph_api/cron_scheduler.py,sha256=
|
|
9
|
+
langgraph_api/cron_scheduler.py,sha256=H1jPymC68A1MYyjfdApX4-hELiGBlJpGgSOsN8qhc-8,5595
|
|
10
|
+
langgraph_api/drain.py,sha256=MLUm3fDq3R8yxrZ-1W3TeCfhNzgNSzUA7TvB-D6K2_s,6108
|
|
10
11
|
langgraph_api/errors.py,sha256=QJSriNZn3VMnMzcxbTNmUgT8u1a0GddpMXamJ4A_a6o,2583
|
|
11
|
-
langgraph_api/feature_flags.py,sha256=
|
|
12
|
-
langgraph_api/graph.py,sha256=
|
|
12
|
+
langgraph_api/feature_flags.py,sha256=AWkWe--MlzoF7O0tazXNxFJYa9P9CZSxPSpt7hL9p6o,3938
|
|
13
|
+
langgraph_api/graph.py,sha256=uQaC_yOWRFZIZwQt5WGdjnVW5iB0WaaBniUcUV82Y5Q,40594
|
|
13
14
|
langgraph_api/http.py,sha256=7hPxKbj-xoAKcm7iucBpT5nM_hXOgGVCPbBsCD693Cw,6977
|
|
14
15
|
langgraph_api/http_metrics.py,sha256=etxbZNmYxdb58DVLNkHP7S-N6njXPTiQh2OWKMaIZi8,5336
|
|
15
16
|
langgraph_api/http_metrics_utils.py,sha256=sjxF7SYGTzY0Wz_G0dzatsYNnWr31S6ujej4JmBG2yo,866
|
|
16
17
|
langgraph_api/logging.py,sha256=V1RCnqVLuMvJtrBiyMMLfaEdbS3k5A2M8Unhr4FUUdQ,6801
|
|
17
18
|
langgraph_api/metadata.py,sha256=CPFftSAGV5_0wCJrIsI2Jcw_5a6lN93A5DVlY59vIdk,11472
|
|
18
19
|
langgraph_api/metrics_collector.py,sha256=ALUyirKew3uqtXVrCwpBc7wCM_viNhT13wZVMUVyva0,8495
|
|
19
|
-
langgraph_api/metrics_otlp.py,sha256=
|
|
20
|
+
langgraph_api/metrics_otlp.py,sha256=JucxN4i4qn79jP4td0A_T6ycFpLP1G7GThvQTczfpAA,30850
|
|
20
21
|
langgraph_api/otel_context.py,sha256=DWFwW4Yu88QY4W2J0IRcURR450Th9J2DupvDDkSkMBA,7166
|
|
21
22
|
langgraph_api/patch.py,sha256=ViUknYvyQWS6y0f5XuaEoci2qB_mQv8vZl-oaUxsI6M,1448
|
|
22
|
-
langgraph_api/queue_entrypoint.py,sha256=
|
|
23
|
+
langgraph_api/queue_entrypoint.py,sha256=2RBMV65LwEANdXHLTw-HHY6-V_eWP3X2JLPKgyOncc4,11668
|
|
23
24
|
langgraph_api/release_tags.py,sha256=XOiX829Bi8eVpKGWg8TiHyidjGfz1p3Pqj0elrAsj8w,10377
|
|
24
25
|
langgraph_api/route.py,sha256=_KE8A8Q-J-QfqjGlyM2Kc6n5cirmgt8xmI5-pI8kVEE,8837
|
|
25
26
|
langgraph_api/schema.py,sha256=OSYEHVHJB0C9wBPX7y4zlbR179IVgiVPbDKdddV0x3E,10845
|
|
26
|
-
langgraph_api/self_hosted_logs.py,sha256=
|
|
27
|
-
langgraph_api/self_hosted_metrics.py,sha256=
|
|
27
|
+
langgraph_api/self_hosted_logs.py,sha256=CSWJH-Qrt99AFQw1-8u78wgKDkbyByQ-0tXfP2PDzGs,6096
|
|
28
|
+
langgraph_api/self_hosted_metrics.py,sha256=pv2E70kWxShO90N5fsIPOg28HGiOD7_zlvVV9FmZ7eY,16806
|
|
28
29
|
langgraph_api/serde.py,sha256=sMjrORY2WCNmZEXDaE3lydi1un686qR1E_Wxw4mFgjU,9144
|
|
29
30
|
langgraph_api/server.py,sha256=L1jGWkvK0fDewyus0xYvYmwQ6k775uNn_mXSKUnIOK0,11245
|
|
30
31
|
langgraph_api/sse.py,sha256=cChZ7raQUHp8p5BreE_5wMBR8lFO0n7746sV8_HQOrc,4822
|
|
31
32
|
langgraph_api/state.py,sha256=SC6kOmKXVV2puU37rc3yYveZFgnqP5uI_WidDyE5oXQ,4763
|
|
32
33
|
langgraph_api/store.py,sha256=OXcdQSVCDKOzfS8S2aJHXbfuI5iYRoQBiW9WYKnCyx8,7122
|
|
33
|
-
langgraph_api/stream.py,sha256=
|
|
34
|
+
langgraph_api/stream.py,sha256=SMrditrbTJ7QtKW-ThpYAPiVsQD-ot_tQeGJIp9PKGI,36519
|
|
34
35
|
langgraph_api/stream_v2.py,sha256=cmbE566boEgKkjcqqf8OvDqjWh8VzvCCsTTlvUF5Drg,10762
|
|
35
36
|
langgraph_api/traceblock.py,sha256=GhgAtLhAQ8Z8LHtRQq3par-rfPpRBQp2Q7WBACJq1NI,677
|
|
36
37
|
langgraph_api/tracing_session.py,sha256=gmfv-BW1XRar6suVur1P4rTVKWkjElDEb2hhkBduWOs,728
|
|
37
|
-
langgraph_api/validation.py,sha256=
|
|
38
|
+
langgraph_api/validation.py,sha256=_fmqjbETfsrc4KKJLtfhVjELD-1WzEVrK6G1pfDrmtk,14930
|
|
38
39
|
langgraph_api/webhook.py,sha256=qXEtkE6orek2POeOQmPRsEarJgXIYp-LBrZB-OwITxc,9572
|
|
39
|
-
langgraph_api/worker.py,sha256=
|
|
40
|
-
langgraph_api/worker_runtime.py,sha256=
|
|
40
|
+
langgraph_api/worker.py,sha256=Y6bsWW5shcfqYw-vwRV3H9D8XLXltPSJMOxBMOJyZzw,22201
|
|
41
|
+
langgraph_api/worker_runtime.py,sha256=zzVW7A4vHyJE6DRxdjRZIa2U334Eh5oO157SyWmQ3G8,11861
|
|
41
42
|
langgraph_api/_checkpointer/__init__.py,sha256=ofJTJLGy7Hsuzhj-2dpfDvrDloM0BzlhTzvZOdR9K8U,2223
|
|
42
43
|
langgraph_api/_checkpointer/_adapter.py,sha256=idGYL-FwyVtUXcmhvfYboARfQAkoj0aFD40L5h9N7F8,22289
|
|
43
44
|
langgraph_api/_checkpointer/protocol.py,sha256=udgYKMNtKWG_eLDwYkHXV3b2bZLZg8Rsfm3fjkhU-rU,3635
|
|
44
45
|
langgraph_api/api/__init__.py,sha256=E95h8fdtBERIRsEEoRu_n3INZc1vb5LK5eHvR9ss-V8,11131
|
|
45
|
-
langgraph_api/api/a2a.py,sha256=
|
|
46
|
+
langgraph_api/api/a2a.py,sha256=dYuxX4HhU0RlsOWKraA1gYD58FyyVXeR0QihLn4xNfg,148659
|
|
46
47
|
langgraph_api/api/a2ui.py,sha256=Dx9qwwIOmQ0MfgOwL-UZabBI0F7DEvz3qG1cFkjvnjE,3108
|
|
47
48
|
langgraph_api/api/assistants.py,sha256=iWrmWsAXpO9kgAb2ihKuJPCABYYf_7I9BPEITwwBsrA,19822
|
|
48
|
-
langgraph_api/api/event_streaming.py,sha256=
|
|
49
|
+
langgraph_api/api/event_streaming.py,sha256=0Nu2WQdTz1f-uxmZ01mz2cr_Bx2IqZnvOiqADN0wH1o,22063
|
|
49
50
|
langgraph_api/api/meta.py,sha256=5s017GfMs-Ghq6Z5K6yW4UjbVFzCsmeXKn4UEJmfs98,4757
|
|
50
51
|
langgraph_api/api/openapi.py,sha256=Zkdlb9mjrQyHro1TtrDIWVuaBDovxx-uGWJ1fZMOg54,12604
|
|
51
52
|
langgraph_api/api/profile.py,sha256=CA1ZkHALOuP8orYTICnEhcG_JnnA2wnyjbWyeb117jA,3455
|
|
@@ -59,9 +60,12 @@ langgraph_api/api/a2ui_schemas/client_data_model.json,sha256=hhX1IFXhgFALZQzixRg
|
|
|
59
60
|
langgraph_api/api/a2ui_schemas/client_to_server.json,sha256=XPzrGGIiN9sSUdUfUDmBgxXCHOHyDJdCgDp8H2N7sIE,1616
|
|
60
61
|
langgraph_api/api/a2ui_schemas/server_to_client.json,sha256=kMuDXVY1fjnsBhY0ivhckxqbtqsTw5wTgG0RojGkLys,2642
|
|
61
62
|
langgraph_api/api/mcp/__init__.py,sha256=T9W88PH9OqQtnjP7eFFa_163pFulDGU_AXk_PYBfEJA,469
|
|
62
|
-
langgraph_api/api/mcp/
|
|
63
|
-
langgraph_api/api/mcp/
|
|
63
|
+
langgraph_api/api/mcp/_calls.py,sha256=v1sjij5TjKHNHfZq5Rulah71MQhw6dJNs46eUb74E9A,905
|
|
64
|
+
langgraph_api/api/mcp/_constants.py,sha256=O2-6zsmlzJ3y5ytEp_QiZ5JrmWoQXfIQLdUSTbLFH2Y,795
|
|
65
|
+
langgraph_api/api/mcp/_handlers.py,sha256=fkVtUvs6Kc48lTgnsugMMQquMPMcnq0y6ilq1mW_uYs,11625
|
|
64
66
|
langgraph_api/api/mcp/_models.py,sha256=uVzpGetNAHGFP3PaZdMYbuqO2x3-2del67CHwXPLaGU,618
|
|
67
|
+
langgraph_api/api/mcp/_outcome.py,sha256=rRcvAbULo-w6c6OW60ZqK71Oqi2EpjdnI9ebe6267Ck,1089
|
|
68
|
+
langgraph_api/api/mcp/_protocol.py,sha256=DdmOAjwj7t-3iP7S5hGm9Ib1WE7LBxJsNEbSDCAMv74,7495
|
|
65
69
|
langgraph_api/api/mcp/_routes.py,sha256=y8gCPZAJc3YrjHA0a6PtqHKJ17HeN9oGKAYqC4ZBqaA,1057
|
|
66
70
|
langgraph_api/api/mcp/_sanitizers.py,sha256=CmfM3cHtzSbrnZeYf4GcTqVPgZV99Y0kZ7mAzDCART8,2403
|
|
67
71
|
langgraph_api/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -73,7 +77,7 @@ langgraph_api/auth/studio_user.py,sha256=Lx3eMsRA8gxZ3--ApL09hDW84A6qIncaZoBZjSg
|
|
|
73
77
|
langgraph_api/auth/langsmith/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
78
|
langgraph_api/auth/langsmith/backend.py,sha256=gaSuZC8JO32XHe8IdqttNpBGO6PCVrtXaq1Negc7vX0,3857
|
|
75
79
|
langgraph_api/auth/langsmith/client.py,sha256=79kwCVeHU64nsHsxWipfZhf44lM6vfs2nlfTxlJF6LU,4142
|
|
76
|
-
langgraph_api/config/__init__.py,sha256
|
|
80
|
+
langgraph_api/config/__init__.py,sha256=-BOsd7Xqrtw89dPYnqM71i2GdGRzEPspOBJOCJ9HfWk,31699
|
|
77
81
|
langgraph_api/config/_parse.py,sha256=RpfZgFAPJlRMv13AzGr3kAYbIrqHcgjzO8IgeboTw4A,3922
|
|
78
82
|
langgraph_api/config/schemas.py,sha256=RaV-huiOALaJDsGi-wVp7Ghz8aE7UDXgL9YB2TYvQKA,21439
|
|
79
83
|
langgraph_api/encryption/__init__.py,sha256=gaCZ00CocSbqSqrDn6XJHaSp2CZCnC8qnrD9G4fbzyI,363
|
|
@@ -87,10 +91,12 @@ langgraph_api/event_streaming/capabilities.py,sha256=qjVbhCjl1VEQPGeiDxeJAhYGI_7
|
|
|
87
91
|
langgraph_api/event_streaming/constants.py,sha256=eGsm-NvOlqV3gNxDO5vlr00FdngmgEQf59zuHSi_74E,1378
|
|
88
92
|
langgraph_api/event_streaming/event_normalizers.py,sha256=5bVSqGPW-Uh7WX91qgTfwpK433pCSv_wchpbzW8TLi4,2794
|
|
89
93
|
langgraph_api/event_streaming/namespace.py,sha256=aJDFt45Or2_bQdRpKJgdFhBgTDj6PYl7Coz5GzfbM84,1509
|
|
90
|
-
langgraph_api/event_streaming/service.py,sha256=
|
|
91
|
-
langgraph_api/event_streaming/session.py,sha256=
|
|
94
|
+
langgraph_api/event_streaming/service.py,sha256=t739MpvrkBrrRjdMw1ln3w-Lz1F52HcKiuinoNSELLU,52216
|
|
95
|
+
langgraph_api/event_streaming/session.py,sha256=sw5orsEKDTADaxCBURd9TNRAyhqqcWrp0yDkWuBrsY0,76170
|
|
92
96
|
langgraph_api/event_streaming/state_normalizers.py,sha256=vgT4O4tJPr9VDBMn1EP994ieDGDYP43sROnOyLjkEAE,13659
|
|
93
97
|
langgraph_api/event_streaming/types.py,sha256=RyZqfqgH-jmmmmAFQj5f6nH9M1rGK93zVG7nlmvqZgc,3647
|
|
98
|
+
langgraph_api/executor/__init__.py,sha256=mZBT8HSqe9pMlBpE7sw6DMI4ULB4xwNPWGkN9zp1B7k,302
|
|
99
|
+
langgraph_api/executor/__main__.py,sha256=uFbTwXVqlFIC-dnMzttEo0_POQVcOonGiNS9fNI4vBs,11175
|
|
94
100
|
langgraph_api/grpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
95
101
|
langgraph_api/grpc/client.py,sha256=ypSgZWclK7OCKLGW8gD_LZwwgsgQEahJqc8mBWF8Rug,15578
|
|
96
102
|
langgraph_api/grpc/server.py,sha256=Fknr6BJbdSK38wF7B1vPDplK25KB_UfMB9Fp1er6DPU,8366
|
|
@@ -99,8 +105,8 @@ langgraph_api/grpc/ops/__init__.py,sha256=KQL4w0xjvkCVz4j770QQVuP7MQh6qPaTZnxlO3
|
|
|
99
105
|
langgraph_api/grpc/ops/assistants.py,sha256=hLDZrAahpGSjzWNzr8nQidTW_4MoCR6sZy5VWB7oRxo,14080
|
|
100
106
|
langgraph_api/grpc/ops/cache.py,sha256=MoPAmSuOwbt2Cud1YZJm_YJeaDHPFy1IiV4m0PDImgg,1399
|
|
101
107
|
langgraph_api/grpc/ops/crons.py,sha256=aDlvNVYIfSP8gtr5NptLiAj-bfMtJOuMWYIA2NifWm0,19713
|
|
102
|
-
langgraph_api/grpc/ops/runs.py,sha256=
|
|
103
|
-
langgraph_api/grpc/ops/threads.py,sha256=
|
|
108
|
+
langgraph_api/grpc/ops/runs.py,sha256=ID0oOVvwZEZKdLSNfPUVcA8k3fNrTra62jy0JElMjss,43832
|
|
109
|
+
langgraph_api/grpc/ops/threads.py,sha256=nWp2qrt4FxxM_SEW5GBEeiOiKk6qdTPmY2hPTcYgsjY,50912
|
|
104
110
|
langgraph_api/grpc/servicers/__init__.py,sha256=l8yqTA_gMbIj0xHw5-RZYo0JbjL-EpFD8RxPMgW_-bA,422
|
|
105
111
|
langgraph_api/grpc/servicers/checkpointer.py,sha256=kn9J3HQEmqggtOGiDxpEAeBVkVi4qDCJikj2bXo5k4g,10543
|
|
106
112
|
langgraph_api/grpc/servicers/encryption.py,sha256=ddAjRZ9btWBf4MPa7yd793japdCEi-DfEPi1Ynt8gzk,10563
|
|
@@ -141,12 +147,11 @@ langgraph_api/middleware/http_logger.py,sha256=79iMlqKdSP5sS6G-iuEAHl2h0Z2ygYDxs
|
|
|
141
147
|
langgraph_api/middleware/private_network.py,sha256=eQEzWI8epBNUCiNsMu9O27ofHBQ45M0p2OZy5YdUYos,2097
|
|
142
148
|
langgraph_api/middleware/request_id.py,sha256=-p230Q5jDJAJLmSZRqQvB4dFFkJS9B4Vwg6pUgQtI24,1259
|
|
143
149
|
langgraph_api/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
144
|
-
langgraph_api/models/run.py,sha256=
|
|
145
|
-
langgraph_api/
|
|
146
|
-
langgraph_api/runner/__main__.py,sha256=0XWX8JuvyuJ1zRYyRUJd94dnsXMJLlAHxii2mtug4Vs,8826
|
|
147
|
-
langgraph_api/timing/__init__.py,sha256=lWXHCGh71I8ouF0wUznYRMKHAQ-8VQHF9gf9jkeV5dg,526
|
|
150
|
+
langgraph_api/models/run.py,sha256=MW7Q17G3veh3WCPwwyDVA9qkk-ih8MPo3QKqY-_Wyho,15795
|
|
151
|
+
langgraph_api/timing/__init__.py,sha256=UDMuNBmc5NqX0m5T-9PUFioCa1lNvd4Wv4juPIBRb-w,877
|
|
148
152
|
langgraph_api/timing/profiler.py,sha256=_n0qJYJMjCGo95RDuH5z8FIzePGNSNbnm3cvGmcgn6A,6186
|
|
149
|
-
langgraph_api/timing/
|
|
153
|
+
langgraph_api/timing/startup.py,sha256=1Jp4-tquBhiE5glWQhXGX5XS2_006myJXHHZMOi15ng,6161
|
|
154
|
+
langgraph_api/timing/timer.py,sha256=krpgATGXkZR4Kd5g9EVVG6ULt-G-6C9QzdkP_TMXXNk,10080
|
|
150
155
|
langgraph_api/tunneling/cloudflare.py,sha256=g8dtul6qavOnpxiqoD41yDUExEKvLdhJRdJiXJw9hpM,4221
|
|
151
156
|
langgraph_api/utils/__init__.py,sha256=cazI1xx2fJfgbQ1wTyf3_9Eg6y9LkNhF1_6XGjas85I,7780
|
|
152
157
|
langgraph_api/utils/cache.py,sha256=5UQbw4JVlm34edqUGxuYn3lovKtFv5GhwzJ7S0V1xpM,3898
|
|
@@ -154,7 +159,7 @@ langgraph_api/utils/config.py,sha256=tyxWNnJhw_PbQ-18ekSFZxsN23d2COf6SmpNsU9X3m8
|
|
|
154
159
|
langgraph_api/utils/errors.py,sha256=51WNBkbk1JHlTvA-J2lgkA3PDj3BEGcnhIECwAihWgU,2728
|
|
155
160
|
langgraph_api/utils/extract.py,sha256=KaBzFc_WosmzRTtN9L5z4UAzJzGqCmcV_eGk9ATUg-o,3873
|
|
156
161
|
langgraph_api/utils/future.py,sha256=coCKJiRZCgoF_pEijVLR4v6mGGOjx_057vEkNwAC5gU,7414
|
|
157
|
-
langgraph_api/utils/headers.py,sha256=
|
|
162
|
+
langgraph_api/utils/headers.py,sha256=4012Nup4FRR8fxbDdqpX7eVJQtNUBqVwfAdUaNQKLnk,6563
|
|
158
163
|
langgraph_api/utils/network.py,sha256=CO0H95QO6R6xxBPQNU_TVaf4z3XbO7oX4qDdwbpmaZY,1190
|
|
159
164
|
langgraph_api/utils/retriable_client.py,sha256=WKdjquy6eIdeNuyO68AxVyskSgBAF_ViO-K-tmRCdDs,2551
|
|
160
165
|
langgraph_api/utils/stream_codec.py,sha256=rt7Vz2AMPetwBdson1Suof3IzM4m3UaPW7_o7TuCgeo,10243
|
|
@@ -175,7 +180,7 @@ langgraph_runtime/store.py,sha256=7mowndlsIroGHv3NpTSOZDJR0lCuaYMBoTnTrewjslw,11
|
|
|
175
180
|
LICENSE,sha256=SCVQGLQfwOllsRFa9-Z3m8IYu4pnR9Vh2oANUCJiKqI,3860
|
|
176
181
|
hatch_build.py,sha256=Nn9N-EFfVqmH5q3iCUrhqX6zc7qT1jLI3gWSBN2xgYQ,1738
|
|
177
182
|
logging.json,sha256=sBy8HDDPuucpLbLUD6e8t5fsiQjJoklZsbVHi2qQ7aQ,367
|
|
178
|
-
openapi.json,sha256=
|
|
183
|
+
openapi.json,sha256=yxvwPZ74Y-uXRR5di9YcP_3cVxE5RR_MOWba-50tCmk,226652
|
|
179
184
|
langgraph_grpc_common/__init__.py,sha256=sO7jFHekQxt6zZPhTPZAWLYLB_S8w7-VuJ7NyWFlFNo,97
|
|
180
185
|
langgraph_grpc_common/checkpointer.py,sha256=qNUrdS8veKuxy-S4-soCvsiB_P0SpoS5jdJ5q6JAzRg,15620
|
|
181
186
|
langgraph_grpc_common/serde.py,sha256=8q290nZ6TdxbEhCTzwEs44XGi2b-3pfrUeMYY5WGlTY,6179
|
|
@@ -188,7 +193,7 @@ langgraph_grpc_common/conversion/durability.py,sha256=FWhqjzVN4JrrsAL9AwsJkvIorQ
|
|
|
188
193
|
langgraph_grpc_common/conversion/store.py,sha256=uftOtzpQ8VuYXMtmEOz-q6N9GpBRKxah4obncVdVky4,15361
|
|
189
194
|
langgraph_grpc_common/conversion/struct.py,sha256=yk4jpPdywzn8UosAohun21lU5D_IIglOY9rkBhiG-gA,2072
|
|
190
195
|
langgraph_grpc_common/conversion/value.py,sha256=KW-z0gvpvCq8iWUjjtx8F3XQGM7XsL-D9GzPzdtuMsA,10206
|
|
191
|
-
langgraph_grpc_common/proto/__init__.py,sha256=
|
|
196
|
+
langgraph_grpc_common/proto/__init__.py,sha256=IQUTdf5m77MdpKoEl0nGYKUbs5FOQEjtZZMLggjlQRg,1495
|
|
192
197
|
langgraph_grpc_common/proto/checkpointer_pb2.py,sha256=zt24iOYdp1JxkEPedaadztVVegrbGaTTBR2T2nxn-MA,10807
|
|
193
198
|
langgraph_grpc_common/proto/checkpointer_pb2.pyi,sha256=98wdF_yAZBbmrzb4iAOB2rnughbjg__RqSgBkzB1Dgw,26648
|
|
194
199
|
langgraph_grpc_common/proto/checkpointer_pb2_grpc.py,sha256=FQJK-lC8alOkLltA51aq1ABam62rVerTZRZccTFqUjw,20152
|
|
@@ -245,16 +250,16 @@ langgraph_grpc_common/proto/errors_pb2.py,sha256=b9RXbUmBpxuUSrBF6tSFAThRlKan3PB
|
|
|
245
250
|
langgraph_grpc_common/proto/errors_pb2.pyi,sha256=rd3-BYUH8V-aO66taL7OOblaLgdrDtf1Vcd38GUoVVM,2181
|
|
246
251
|
langgraph_grpc_common/proto/errors_pb2_grpc.py,sha256=ipvQ8CSnoewtfA_Y7uT14d6nrr-Q86f71vF-TfSrJl0,886
|
|
247
252
|
langgraph_grpc_common/proto/errors_pb2_grpc.pyi,sha256=uC9Wnq6uyg488QiONpJ0ba1s_iouQCOYsjd_FDd1XUM,495
|
|
248
|
-
langgraph_grpc_common/proto/
|
|
249
|
-
langgraph_grpc_common/proto/
|
|
250
|
-
langgraph_grpc_common/proto/
|
|
251
|
-
langgraph_grpc_common/proto/
|
|
253
|
+
langgraph_grpc_common/proto/orchestrator_pb2.py,sha256=Ez2TDptxCdBspdoKSYAGbhs25aBZ1-hzJlvxXkB3x-c,3079
|
|
254
|
+
langgraph_grpc_common/proto/orchestrator_pb2.pyi,sha256=NWG6Ce1AhIGnhorXnQdkKTZpjEUjBthyX24fiMV-yFs,6597
|
|
255
|
+
langgraph_grpc_common/proto/orchestrator_pb2_grpc.py,sha256=yLDridJv07vkuoJGggBPCgwjkP85TONgBiJUW_SRgTk,3986
|
|
256
|
+
langgraph_grpc_common/proto/orchestrator_pb2_grpc.pyi,sha256=V_7dijDBXxRO-5CrvtTKWOHeGd_0arAEiWaRFuToWwg,3465
|
|
252
257
|
langgraph_grpc_common/proto/store_pb2.py,sha256=VWJ7wtzL9pVmZZKbxMzOzCoiFn58bB2g8L6F7aT63Ow,8260
|
|
253
258
|
langgraph_grpc_common/proto/store_pb2.pyi,sha256=atXejijuYEb9tE0stGQdZcfA9ucMFj-ytTMwvkxwviM,29322
|
|
254
259
|
langgraph_grpc_common/proto/store_pb2_grpc.py,sha256=Kyt8eV2NXkjh3be_BYytGdD19kNf74961cruonMvCrw,3300
|
|
255
260
|
langgraph_grpc_common/proto/store_pb2_grpc.pyi,sha256=oS1h2cDoq2OjyM8xazcmc8LwRDC5oCAD0zto2QUmPQw,2027
|
|
256
|
-
langgraph_api-0.18.0.
|
|
257
|
-
langgraph_api-0.18.0.
|
|
258
|
-
langgraph_api-0.18.0.
|
|
259
|
-
langgraph_api-0.18.0.
|
|
260
|
-
langgraph_api-0.18.0.
|
|
261
|
+
langgraph_api-0.18.0.dev4.dist-info/METADATA,sha256=ivAuNjWbJAU_vF-F9u0At8L6u09I9C8Pz2NU8vXFeds,5879
|
|
262
|
+
langgraph_api-0.18.0.dev4.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
263
|
+
langgraph_api-0.18.0.dev4.dist-info/entry_points.txt,sha256=hGedv8n7cgi41PypMfinwS_HfCwA7xJIfS0jAp8htV8,78
|
|
264
|
+
langgraph_api-0.18.0.dev4.dist-info/licenses/LICENSE,sha256=SCVQGLQfwOllsRFa9-Z3m8IYu4pnR9Vh2oANUCJiKqI,3860
|
|
265
|
+
langgraph_api-0.18.0.dev4.dist-info/RECORD,,
|