langgraph-executor 0.0.1a7__tar.gz → 0.0.1a8__tar.gz

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.
Files changed (38) hide show
  1. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/PKG-INFO +1 -1
  2. langgraph_executor-0.0.1a8/langgraph_executor/__init__.py +1 -0
  3. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/executor_base.py +47 -15
  4. langgraph_executor-0.0.1a7/langgraph_executor/__init__.py +0 -1
  5. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/.gitignore +0 -0
  6. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/README.md +0 -0
  7. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/client/__init__.py +0 -0
  8. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/client/patch.py +0 -0
  9. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/client/utils.py +0 -0
  10. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/common.py +0 -0
  11. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/example.py +0 -0
  12. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/execute_task.py +0 -0
  13. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/executor.py +0 -0
  14. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/extract_graph.py +0 -0
  15. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/info_logger.py +0 -0
  16. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/__init__.py +0 -0
  17. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/executor_pb2.py +0 -0
  18. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/executor_pb2.pyi +0 -0
  19. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/executor_pb2_grpc.py +0 -0
  20. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/executor_pb2_grpc.pyi +0 -0
  21. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/graph_pb2.py +0 -0
  22. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/graph_pb2.pyi +0 -0
  23. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/graph_pb2_grpc.py +0 -0
  24. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/graph_pb2_grpc.pyi +0 -0
  25. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/runtime_pb2.py +0 -0
  26. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/runtime_pb2.pyi +0 -0
  27. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/runtime_pb2_grpc.py +0 -0
  28. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/runtime_pb2_grpc.pyi +0 -0
  29. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/types_pb2.py +0 -0
  30. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/types_pb2.pyi +0 -0
  31. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/types_pb2_grpc.py +0 -0
  32. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/pb/types_pb2_grpc.pyi +0 -0
  33. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/py.typed +0 -0
  34. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/serde.py +0 -0
  35. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/server.py +0 -0
  36. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/setup.sh +0 -0
  37. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/langgraph_executor/stream_utils.py +0 -0
  38. {langgraph_executor-0.0.1a7 → langgraph_executor-0.0.1a8}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langgraph-executor
3
- Version: 0.0.1a7
3
+ Version: 0.0.1a8
4
4
  Summary: LangGraph python RPC server executable by the langgraph-go orchestrator.
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: grpcio>=1.73.1
@@ -0,0 +1 @@
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: Callable[
95
- [
96
- BaseMessageChunk,
97
- dict[str, Any],
98
- ],
99
- None,
100
- ]
101
- | None = None,
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("GetGraph called")
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("ChannelsFromCheckpoint called")
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("ApplyWrites called")
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("StateUpdate called")
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 +0,0 @@
1
- __version__ = "0.0.1a7"