langgraph-executor 0.0.1a7__py3-none-any.whl → 0.0.1a8__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_executor/__init__.py +1 -1
- langgraph_executor/executor_base.py +47 -15
- {langgraph_executor-0.0.1a7.dist-info → langgraph_executor-0.0.1a8.dist-info}/METADATA +1 -1
- {langgraph_executor-0.0.1a7.dist-info → langgraph_executor-0.0.1a8.dist-info}/RECORD +5 -5
- {langgraph_executor-0.0.1a7.dist-info → langgraph_executor-0.0.1a8.dist-info}/WHEEL +0 -0
langgraph_executor/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.0.
|
1
|
+
__version__ = "0.0.1a8"
|
@@ -91,14 +91,16 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
91
91
|
get_graph: GetGraph,
|
92
92
|
runtime_channel: grpc.Channel | None = None,
|
93
93
|
logger: Logger | None = None,
|
94
|
-
on_message:
|
95
|
-
[
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
94
|
+
on_message: (
|
95
|
+
Callable[
|
96
|
+
[
|
97
|
+
BaseMessageChunk,
|
98
|
+
dict[str, Any],
|
99
|
+
],
|
100
|
+
None,
|
101
|
+
]
|
102
|
+
| None
|
103
|
+
) = None,
|
102
104
|
on_custom: Callable[[Any], None] | None = None,
|
103
105
|
get_store: Callable[[], Awaitable[BaseStore]] | None = None,
|
104
106
|
):
|
@@ -143,7 +145,9 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
143
145
|
) -> executor_pb2.GetGraphResponse: # type: ignore[name-defined]
|
144
146
|
"""Get graph definition."""
|
145
147
|
try:
|
146
|
-
self.logger.debug(
|
148
|
+
self.logger.debug(
|
149
|
+
"GetGraph called", extra={"graph_name": request.graph_name}
|
150
|
+
)
|
147
151
|
graph_name: str = request.graph_name
|
148
152
|
return await self._get_graph_definition(graph_name)
|
149
153
|
|
@@ -183,7 +187,14 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
183
187
|
self, request: Any, context: grpc.aio.ServicerContext
|
184
188
|
) -> executor_pb2.ChannelsFromCheckpointResponse: # type: ignore[name-defined]
|
185
189
|
try:
|
186
|
-
self.logger.debug(
|
190
|
+
self.logger.debug(
|
191
|
+
"ChannelsFromCheckpoint called",
|
192
|
+
extra={
|
193
|
+
"graph_name": request.graph_name,
|
194
|
+
"specs": request.specs,
|
195
|
+
"checkpoint_channel_values": request.checkpoint_channel_values,
|
196
|
+
},
|
197
|
+
)
|
187
198
|
async with self.get_graph(request.graph_name, RunnableConfig()) as graph:
|
188
199
|
# reconstruct specs
|
189
200
|
specs, _ = reconstruct_channels(
|
@@ -215,11 +226,16 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
215
226
|
request_iterator: Iterator[executor_pb2.ExecuteTaskRequest], # type: ignore[name-defined]
|
216
227
|
context: grpc.aio.ServicerContext,
|
217
228
|
) -> AsyncIterator[executor_pb2.ExecuteTaskResponse]: # type: ignore[name-defined]
|
218
|
-
self.logger.debug("ExecuteTask called")
|
219
|
-
|
220
|
-
# Right now, only handle task execution without interrupts, etc
|
221
229
|
try:
|
222
230
|
request = await _get_init_request(request_iterator)
|
231
|
+
self.logger.debug(
|
232
|
+
"ExecuteTask called",
|
233
|
+
extra={
|
234
|
+
"graph_name": request.graph_name,
|
235
|
+
"task": request.task,
|
236
|
+
"stream_modes": request.stream_modes,
|
237
|
+
},
|
238
|
+
)
|
223
239
|
config = reconstruct_config(request.task.config)
|
224
240
|
store = await self.get_store() if self.get_store is not None else None
|
225
241
|
async with self.get_graph(request.graph_name, config) as graph:
|
@@ -338,7 +354,15 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
338
354
|
self, request: Any, context: grpc.aio.ServicerContext
|
339
355
|
) -> executor_pb2.ApplyWritesResponse: # type: ignore[name-defined]
|
340
356
|
# get graph
|
341
|
-
self.logger.debug(
|
357
|
+
self.logger.debug(
|
358
|
+
"ApplyWrites called",
|
359
|
+
extra={
|
360
|
+
"graph_name": request.graph_name,
|
361
|
+
"tasks": request.tasks,
|
362
|
+
"channels": request.channels,
|
363
|
+
"checkpoint": request.checkpoint,
|
364
|
+
},
|
365
|
+
)
|
342
366
|
try:
|
343
367
|
async with self.get_graph(request.graph_name, RunnableConfig()) as graph:
|
344
368
|
channels, _ = reconstruct_channels(
|
@@ -382,7 +406,15 @@ class LangGraphExecutorServicer(executor_pb2_grpc.LangGraphExecutorServicer):
|
|
382
406
|
request: executor_pb2.StateUpdateRequest,
|
383
407
|
context: grpc.aio.ServicerContext,
|
384
408
|
) -> executor_pb2.TaskResult | None:
|
385
|
-
self.logger.debug(
|
409
|
+
self.logger.debug(
|
410
|
+
"StateUpdate called",
|
411
|
+
extra={
|
412
|
+
"graph_name": request.graph_name,
|
413
|
+
"node_name": request.node_name,
|
414
|
+
"task_id": request.task_id,
|
415
|
+
"values": request.values,
|
416
|
+
},
|
417
|
+
)
|
386
418
|
|
387
419
|
try:
|
388
420
|
async with self.get_graph(request.graph_name, RunnableConfig()) as graph:
|
@@ -1,9 +1,9 @@
|
|
1
|
-
langgraph_executor/__init__.py,sha256=
|
1
|
+
langgraph_executor/__init__.py,sha256=KAPJkcGl_qD06MHQn_0nXbx0-og1WAbX5hnxiuRGS9I,24
|
2
2
|
langgraph_executor/common.py,sha256=KXDN25OlISvm1mhKP9SU1z1c01tb_qcq6FVClaqP9Mw,15118
|
3
3
|
langgraph_executor/example.py,sha256=TcfxgC9VfpZFliWnuVdJMllCDa8ji7vrSCRWnmdsUA8,900
|
4
4
|
langgraph_executor/execute_task.py,sha256=_m-WyVODhShI29qzkK0DXSPoTY4E_izbuaT7F_fVZVw,7262
|
5
5
|
langgraph_executor/executor.py,sha256=FkCBiIV9LgsnZopLoJH5enZOVzp6Wds71zYcmB2ng2g,5709
|
6
|
-
langgraph_executor/executor_base.py,sha256=
|
6
|
+
langgraph_executor/executor_base.py,sha256=p5CYYDIHD2MEwg8c9mYNnbAoalRcY0T7kVaGZL3gnTM,24058
|
7
7
|
langgraph_executor/extract_graph.py,sha256=9FJ3W65Bz-b5shewuaOOjc_zawDwovzE8iRJDor460s,6196
|
8
8
|
langgraph_executor/info_logger.py,sha256=kgoVnMxm_aloHal89NHfH_Qb9eixrqD0dHmgnrm_vL4,3110
|
9
9
|
langgraph_executor/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -31,6 +31,6 @@ langgraph_executor/pb/types_pb2.py,sha256=emoEFLS0FdUuGqIjCCINAYFr0LmGcOCyfXRLUX
|
|
31
31
|
langgraph_executor/pb/types_pb2.pyi,sha256=6rnOefB1_ePyOzOKnC2rnlqS2YTmO6brSl6S31jSfSU,45022
|
32
32
|
langgraph_executor/pb/types_pb2_grpc.py,sha256=EPv87wCc-6BNJ2xTNcb9d3ictDerK5cBt7qhd7EmJiQ,886
|
33
33
|
langgraph_executor/pb/types_pb2_grpc.pyi,sha256=Dl8kkjhqb6F1Kt24mcFg7ppish4iKVfjRiiBxEjsMMA,413
|
34
|
-
langgraph_executor-0.0.
|
35
|
-
langgraph_executor-0.0.
|
36
|
-
langgraph_executor-0.0.
|
34
|
+
langgraph_executor-0.0.1a8.dist-info/METADATA,sha256=b1JYG8d_08F4dojuPpv-41iVtmy9I0Qzsqig68GFZkE,433
|
35
|
+
langgraph_executor-0.0.1a8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
36
|
+
langgraph_executor-0.0.1a8.dist-info/RECORD,,
|
File without changes
|