langgraph-api 0.4.40__py3-none-any.whl → 0.5.6__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 +1 -1
- langgraph_api/api/assistants.py +65 -61
- langgraph_api/api/meta.py +6 -0
- langgraph_api/api/threads.py +11 -7
- langgraph_api/auth/custom.py +29 -24
- langgraph_api/cli.py +2 -49
- langgraph_api/config.py +131 -16
- langgraph_api/graph.py +1 -1
- langgraph_api/grpc/client.py +183 -0
- langgraph_api/grpc/config_conversion.py +225 -0
- langgraph_api/grpc/generated/core_api_pb2.py +275 -0
- langgraph_api/{grpc_ops → grpc}/generated/core_api_pb2.pyi +35 -40
- langgraph_api/grpc/generated/engine_common_pb2.py +190 -0
- langgraph_api/grpc/generated/engine_common_pb2.pyi +634 -0
- langgraph_api/grpc/generated/engine_common_pb2_grpc.py +24 -0
- langgraph_api/grpc/ops.py +1045 -0
- langgraph_api/js/build.mts +1 -1
- langgraph_api/js/client.http.mts +1 -1
- langgraph_api/js/client.mts +1 -1
- langgraph_api/js/package.json +12 -12
- langgraph_api/js/src/graph.mts +20 -0
- langgraph_api/js/yarn.lock +176 -234
- langgraph_api/metadata.py +29 -21
- langgraph_api/queue_entrypoint.py +2 -2
- langgraph_api/route.py +14 -4
- langgraph_api/schema.py +2 -2
- langgraph_api/self_hosted_metrics.py +48 -2
- langgraph_api/serde.py +58 -14
- langgraph_api/server.py +16 -2
- langgraph_api/worker.py +1 -1
- {langgraph_api-0.4.40.dist-info → langgraph_api-0.5.6.dist-info}/METADATA +6 -6
- {langgraph_api-0.4.40.dist-info → langgraph_api-0.5.6.dist-info}/RECORD +38 -34
- langgraph_api/grpc_ops/client.py +0 -80
- langgraph_api/grpc_ops/generated/core_api_pb2.py +0 -274
- langgraph_api/grpc_ops/ops.py +0 -610
- /langgraph_api/{grpc_ops → grpc}/__init__.py +0 -0
- /langgraph_api/{grpc_ops → grpc}/generated/__init__.py +0 -0
- /langgraph_api/{grpc_ops → grpc}/generated/core_api_pb2_grpc.py +0 -0
- {langgraph_api-0.4.40.dist-info → langgraph_api-0.5.6.dist-info}/WHEEL +0 -0
- {langgraph_api-0.4.40.dist-info → langgraph_api-0.5.6.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.4.40.dist-info → langgraph_api-0.5.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: engine-common.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'engine-common.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
26
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
27
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x65ngine-common.proto\x12\x0c\x65ngineCommon\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa1\x01\n\x0c\x43hannelValue\x12\x39\n\x10serialized_value\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValueH\x00\x12$\n\x05sends\x18\x03 \x01(\x0b\x32\x13.engineCommon.SendsH\x00\x12)\n\x07missing\x18\x04 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x42\x05\n\x03val\"2\n\x0fSerializedValue\x12\x10\n\x08\x65ncoding\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"a\n\rResponseChunk\x12\x12\n\nnamespaces\x18\x01 \x03(\t\x12\x0c\n\x04mode\x18\x02 \x01(\t\x12.\n\x07payload\x18\x03 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\"C\n\x11ResponseChunkList\x12.\n\tresponses\x18\x01 \x03(\x0b\x32\x1b.engineCommon.ResponseChunk\"!\n\nMessageIds\x12\x13\n\x0bmessage_ids\x18\x01 \x03(\t\"\x8a\x01\n\x08\x43hannels\x12\x36\n\x08\x63hannels\x18\x01 \x03(\x0b\x32$.engineCommon.Channels.ChannelsEntry\x1a\x46\n\rChannelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12$\n\x05value\x18\x02 \x01(\x0b\x32\x15.engineCommon.Channel:\x02\x38\x01\"\x8d\x01\n\x07\x43hannel\x12.\n\nget_result\x18\x01 \x01(\x0b\x32\x1a.engineCommon.ChannelValue\x12\x1b\n\x13is_available_result\x18\x02 \x01(\x08\x12\x35\n\x11\x63heckpoint_result\x18\x03 \x01(\x0b\x32\x1a.engineCommon.ChannelValue\"*\n\x05Sends\x12!\n\x05sends\x18\x01 \x03(\x0b\x32\x12.engineCommon.Send\"@\n\x04Send\x12\x0c\n\x04node\x18\x01 \x01(\t\x12*\n\x03\x61rg\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\"\xf1\x01\n\x07\x43ommand\x12\x12\n\x05graph\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x31\n\x06update\x18\x02 \x03(\x0b\x32!.engineCommon.Command.UpdateEntry\x12$\n\x06resume\x18\x03 \x01(\x0b\x32\x14.engineCommon.Resume\x12!\n\x05gotos\x18\x04 \x03(\x0b\x32\x12.engineCommon.Goto\x1aL\n\x0bUpdateEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValue:\x02\x38\x01\x42\x08\n\x06_graph\"t\n\x06Resume\x12.\n\x05value\x18\x01 \x01(\x0b\x32\x1d.engineCommon.SerializedValueH\x00\x12/\n\x06values\x18\x02 \x01(\x0b\x32\x1d.engineCommon.InterruptValuesH\x00\x42\t\n\x07message\"\x9a\x01\n\x0fInterruptValues\x12\x39\n\x06values\x18\x01 \x03(\x0b\x32).engineCommon.InterruptValues.ValuesEntry\x1aL\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValue:\x02\x38\x01\"J\n\x04Goto\x12\x13\n\tnode_name\x18\x01 \x01(\tH\x00\x12\"\n\x04send\x18\x02 \x01(\x0b\x32\x12.engineCommon.SendH\x00\x42\t\n\x07message\"\x0f\n\rGraphBubbleUp\"V\n\x16UserCodeExecutionError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x11\n\ttraceback\x18\x03 \x01(\t\"=\n\x0eGraphInterrupt\x12+\n\ninterrupts\x18\x01 \x03(\x0b\x32\x17.engineCommon.Interrupt\"E\n\tInterrupt\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\x12\n\n\x02id\x18\x02 \x01(\t\"{\n\x10WrappedInterrupt\x12*\n\tinterrupt\x18\x01 \x01(\x0b\x32\x17.engineCommon.Interrupt\x12;\n\x14serialized_interrupt\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\"C\n\x05Write\x12\x0f\n\x07\x63hannel\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.engineCommon.ChannelValue\"[\n\x0cPendingWrite\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12)\n\x05value\x18\x03 \x01(\x0b\x32\x1a.engineCommon.ChannelValue\"\x97\x01\n\x0f\x43hannelVersions\x12L\n\x10\x63hannel_versions\x18\x01 \x03(\x0b\x32\x32.engineCommon.ChannelVersions.ChannelVersionsEntry\x1a\x36\n\x14\x43hannelVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc1\n\n\x14\x45ngineRunnableConfig\x12\x0c\n\x04tags\x18\x01 \x03(\t\x12K\n\rmetadata_json\x18\x02 \x03(\x0b\x32\x34.engineCommon.EngineRunnableConfig.MetadataJsonEntry\x12\x15\n\x08run_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fmax_concurrency\x18\x04 \x01(\x05H\x01\x88\x01\x01\x12\x1c\n\x0frecursion_limit\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x13\n\x06run_id\x18\x06 \x01(\tH\x03\x88\x01\x01\x12^\n\x17\x65xtra_configurable_json\x18\x07 \x03(\x0b\x32=.engineCommon.EngineRunnableConfig.ExtraConfigurableJsonEntry\x12\x45\n\nextra_json\x18\x08 \x03(\x0b\x32\x31.engineCommon.EngineRunnableConfig.ExtraJsonEntry\x12+\n\x07runtime\x18\t \x01(\x0b\x32\x15.engineCommon.RuntimeH\x04\x88\x01\x01\x12\x15\n\x08resuming\x18\n \x01(\x08H\x05\x88\x01\x01\x12\x14\n\x07task_id\x18\x0b \x01(\tH\x06\x88\x01\x01\x12\x16\n\tthread_id\x18\x0c \x01(\tH\x07\x88\x01\x01\x12M\n\x0e\x63heckpoint_map\x18\r \x03(\x0b\x32\x35.engineCommon.EngineRunnableConfig.CheckpointMapEntry\x12\x1a\n\rcheckpoint_id\x18\x0e \x01(\tH\x08\x88\x01\x01\x12\x1a\n\rcheckpoint_ns\x18\x0f \x01(\tH\t\x88\x01\x01\x12\x31\n\ndurability\x18\x10 \x01(\x0e\x32\x18.engineCommon.DurabilityH\n\x88\x01\x01\x12\x45\n\nresume_map\x18\x11 \x03(\x0b\x32\x31.engineCommon.EngineRunnableConfig.ResumeMapEntry\x12\x15\n\x08graph_id\x18\x12 \x01(\tH\x0b\x88\x01\x01\x12\x18\n\x0brun_attempt\x18\x14 \x01(\x05H\x0c\x88\x01\x01\x12\x1a\n\rserver_run_id\x18\x15 \x01(\tH\r\x88\x01\x01\x1a\x33\n\x11MetadataJsonEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a<\n\x1a\x45xtraConfigurableJsonEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x30\n\x0e\x45xtraJsonEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\x1a\x34\n\x12\x43heckpointMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aO\n\x0eResumeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.engineCommon.SerializedValue:\x02\x38\x01\x42\x0b\n\t_run_nameB\x12\n\x10_max_concurrencyB\x12\n\x10_recursion_limitB\t\n\x07_run_idB\n\n\x08_runtimeB\x0b\n\t_resumingB\n\n\x08_task_idB\x0c\n\n_thread_idB\x10\n\x0e_checkpoint_idB\x10\n\x0e_checkpoint_nsB\r\n\x0b_durabilityB\x0b\n\t_graph_idB\x0e\n\x0c_run_attemptB\x10\n\x0e_server_run_id\"I\n\x07Runtime\x12#\n\x16langgraph_context_json\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x19\n\x17_langgraph_context_json\"\xf0\x03\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x05input\x18\x02 \x03(\x0b\x32\x1d.engineCommon.Task.InputEntry\x12#\n\x06writes\x18\x03 \x03(\x0b\x32\x13.engineCommon.Write\x12\x32\n\x06\x63onfig\x18\x04 \x01(\x0b\x32\".engineCommon.EngineRunnableConfig\x12\x10\n\x08triggers\x18\x05 \x03(\t\x12\n\n\x02id\x18\x06 \x01(\t\x12,\n\ttask_path\x18\x07 \x03(\x0b\x32\x19.engineCommon.PathSegment\x12\x0f\n\x07writers\x18\x08 \x03(\t\x12\x12\n\ngraph_name\x18\t \x01(\t\x12\x32\n\x0epending_writes\x18\n \x03(\x0b\x32\x1a.engineCommon.PendingWrite\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.engineCommon.ChatMessageEnvelope\x12\x18\n\x10stream_subgraphs\x18\x0c \x01(\x08\x12\x15\n\rhas_subgraphs\x18\r \x01(\x08\x1aH\n\nInputEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.engineCommon.ChannelValue:\x02\x38\x01\"\x83\x02\n\x12PregelTaskSnapshot\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\'\n\x04path\x18\x03 \x03(\x0b\x32\x19.engineCommon.PathSegment\x12+\n\ninterrupts\x18\x04 \x03(\x0b\x32\x17.engineCommon.Interrupt\x12&\n\x05state\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06result\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12,\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\"\xde\x03\n\nCheckpoint\x12\t\n\x01v\x18\x01 \x01(\x04\x12\n\n\x02id\x18\x02 \x01(\t\x12\x43\n\x0e\x63hannel_values\x18\x03 \x03(\x0b\x32+.engineCommon.Checkpoint.ChannelValuesEntry\x12G\n\x10\x63hannel_versions\x18\x04 \x03(\x0b\x32-.engineCommon.Checkpoint.ChannelVersionsEntry\x12\x41\n\rversions_seen\x18\x05 \x03(\x0b\x32*.engineCommon.Checkpoint.VersionsSeenEntry\x12\n\n\x02ts\x18\x06 \x01(\t\x1aP\n\x12\x43hannelValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.engineCommon.ChannelValue:\x02\x38\x01\x1a\x36\n\x14\x43hannelVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aR\n\x11VersionsSeenEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.engineCommon.ChannelVersions:\x02\x38\x01\"\xc1\x02\n\x12\x43heckpointMetadata\x12\x41\n\x06source\x18\x01 \x01(\x0e\x32\x31.engineCommon.CheckpointMetadata.CheckpointSource\x12\x0c\n\x04step\x18\x02 \x01(\x05\x12>\n\x07parents\x18\x03 \x03(\x0b\x32-.engineCommon.CheckpointMetadata.ParentsEntry\x12\x13\n\x06run_id\x18\x04 \x01(\tH\x00\x88\x01\x01\x1a.\n\x0cParentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"J\n\x10\x43heckpointSource\x12\x0b\n\x07unknown\x10\x00\x12\x08\n\x04loop\x10\x01\x12\t\n\x05input\x10\x02\x12\n\n\x06update\x10\x03\x12\x08\n\x04\x66ork\x10\x04\x42\t\n\x07_run_id\"\x96\x02\n\x0f\x43heckpointTuple\x12\x32\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\".engineCommon.EngineRunnableConfig\x12,\n\ncheckpoint\x18\x02 \x01(\x0b\x32\x18.engineCommon.Checkpoint\x12\x32\n\x08metadata\x18\x03 \x01(\x0b\x32 .engineCommon.CheckpointMetadata\x12\x39\n\rparent_config\x18\x04 \x01(\x0b\x32\".engineCommon.EngineRunnableConfig\x12\x32\n\x0epending_writes\x18\x05 \x03(\x0b\x32\x1a.engineCommon.PendingWrite\"{\n\x07Updates\x12,\n\ncheckpoint\x18\x01 \x01(\x0b\x32\x18.engineCommon.Checkpoint\x12(\n\x08\x63hannels\x18\x02 \x01(\x0b\x32\x16.engineCommon.Channels\x12\x18\n\x10updated_channels\x18\x03 \x03(\t\"i\n\x08ToolCall\x12\x0c\n\x04name\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12(\n\x02id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xc2\x01\n\rToolCallChunk\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\targs_json\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x02id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x05index\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xc0\x01\n\x0fInvalidToolCall\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x02id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa5\x01\n\x11InputTokenDetails\x12*\n\x05\x61udio\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63\x61\x63he_creation\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\ncache_read\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"p\n\x12OutputTokenDetails\x12*\n\x05\x61udio\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12.\n\treasoning\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xd0\x01\n\rUsageMetadata\x12\x14\n\x0cinput_tokens\x18\x01 \x01(\x03\x12\x15\n\routput_tokens\x18\x02 \x01(\x03\x12\x14\n\x0ctotal_tokens\x18\x03 \x01(\x03\x12<\n\x13input_token_details\x18\x04 \x01(\x0b\x32\x1f.engineCommon.InputTokenDetails\x12>\n\x14output_token_details\x18\x05 \x01(\x0b\x32 .engineCommon.OutputTokenDetails\"9\n\x10ResponseMetadata\x12%\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x84\x03\n\x08\x41IFields\x12\x38\n\x0eusage_metadata\x18\x01 \x01(\x0b\x32\x1b.engineCommon.UsageMetadataH\x00\x88\x01\x01\x12>\n\x11response_metadata\x18\x02 \x01(\x0b\x32\x1e.engineCommon.ResponseMetadataH\x01\x88\x01\x01\x12*\n\ntool_calls\x18\x03 \x03(\x0b\x32\x16.engineCommon.ToolCall\x12\x35\n\x10tool_call_chunks\x18\x04 \x03(\x0b\x32\x1b.engineCommon.ToolCallChunk\x12\x39\n\x12invalid_tool_calls\x18\x05 \x03(\x0b\x32\x1d.engineCommon.InvalidToolCall\x12\x37\n\x11reasoning_content\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x11\n\x0f_usage_metadataB\x14\n\x12_response_metadata\"P\n\nToolFields\x12\x32\n\x0ctool_call_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x0e\n\x06status\x18\x02 \x01(\t\"\r\n\x0bHumanFields\"\xf5\x02\n\x0b\x43hatMessage\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\'\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x16.google.protobuf.Value\x12\x37\n\x11\x61\x64\x64itional_kwargs\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructH\x01\x88\x01\x01\x12$\n\x02\x61i\x18\x06 \x01(\x0b\x32\x16.engineCommon.AIFieldsH\x00\x12(\n\x04tool\x18\x07 \x01(\x0b\x32\x18.engineCommon.ToolFieldsH\x00\x12*\n\x05human\x18\x08 \x01(\x0b\x32\x19.engineCommon.HumanFieldsH\x00\x12\x30\n\nextensions\x18\x14 \x01(\x0b\x32\x17.google.protobuf.StructH\x02\x88\x01\x01\x42\t\n\x07\x64\x65tailsB\x14\n\x12_additional_kwargsB\r\n\x0b_extensions\"\x94\x01\n\x13\x43hatMessageEnvelope\x12\x1a\n\x12is_streaming_chunk\x18\x01 \x01(\x08\x12\x11\n\tnamespace\x18\x02 \x03(\t\x12*\n\x07message\x18\x03 \x01(\x0b\x32\x19.engineCommon.ChatMessage\x12\x15\n\x08metadata\x18\x04 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_metadata\"\x98\x03\n\rStateSnapshot\x12\'\n\x06values\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0c\n\x04next\x18\x02 \x03(\t\x12\x32\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\".engineCommon.EngineRunnableConfig\x12\x37\n\x08metadata\x18\x04 \x01(\x0b\x32 .engineCommon.CheckpointMetadataH\x00\x88\x01\x01\x12\x17\n\ncreated_at\x18\x05 \x01(\tH\x01\x88\x01\x01\x12>\n\rparent_config\x18\x06 \x01(\x0b\x32\".engineCommon.EngineRunnableConfigH\x02\x88\x01\x01\x12/\n\x05tasks\x18\x07 \x03(\x0b\x32 .engineCommon.PregelTaskSnapshot\x12+\n\ninterrupts\x18\x08 \x03(\x0b\x32\x17.engineCommon.InterruptB\x0b\n\t_metadataB\r\n\x0b_created_atB\x10\n\x0e_parent_config\"\x80\x01\n\x0bStateUpdate\x12-\n\x06values\x18\x01 \x01(\x0b\x32\x1d.engineCommon.SerializedValue\x12\x14\n\x07\x61s_node\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07task_id\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\n\n\x08_as_nodeB\n\n\x08_task_id\">\n\x10SuperstepUpdates\x12*\n\x07updates\x18\x01 \x03(\x0b\x32\x19.engineCommon.StateUpdate\"2\n\rStringOrSlice\x12\x0e\n\x06values\x18\x01 \x03(\t\x12\x11\n\tis_string\x18\x02 \x01(\x08\"Y\n\x0bPathSegment\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x13\n\tint_value\x18\x02 \x01(\x03H\x00\x12\x14\n\nbool_value\x18\x03 \x01(\x08H\x00\x42\x07\n\x05value*8\n\nDurability\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41SYNC\x10\x01\x12\x08\n\x04SYNC\x10\x02\x12\x08\n\x04\x45XIT\x10\x03\x42?Z=github.com/langchain-ai/langgraph-api/core/internal/engine/pbb\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'engine_common_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z=github.com/langchain-ai/langgraph-api/core/internal/engine/pb'
|
|
38
|
+
_globals['_CHANNELS_CHANNELSENTRY']._loaded_options = None
|
|
39
|
+
_globals['_CHANNELS_CHANNELSENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_COMMAND_UPDATEENTRY']._loaded_options = None
|
|
41
|
+
_globals['_COMMAND_UPDATEENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_INTERRUPTVALUES_VALUESENTRY']._loaded_options = None
|
|
43
|
+
_globals['_INTERRUPTVALUES_VALUESENTRY']._serialized_options = b'8\001'
|
|
44
|
+
_globals['_CHANNELVERSIONS_CHANNELVERSIONSENTRY']._loaded_options = None
|
|
45
|
+
_globals['_CHANNELVERSIONS_CHANNELVERSIONSENTRY']._serialized_options = b'8\001'
|
|
46
|
+
_globals['_ENGINERUNNABLECONFIG_METADATAJSONENTRY']._loaded_options = None
|
|
47
|
+
_globals['_ENGINERUNNABLECONFIG_METADATAJSONENTRY']._serialized_options = b'8\001'
|
|
48
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRACONFIGURABLEJSONENTRY']._loaded_options = None
|
|
49
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRACONFIGURABLEJSONENTRY']._serialized_options = b'8\001'
|
|
50
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRAJSONENTRY']._loaded_options = None
|
|
51
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRAJSONENTRY']._serialized_options = b'8\001'
|
|
52
|
+
_globals['_ENGINERUNNABLECONFIG_CHECKPOINTMAPENTRY']._loaded_options = None
|
|
53
|
+
_globals['_ENGINERUNNABLECONFIG_CHECKPOINTMAPENTRY']._serialized_options = b'8\001'
|
|
54
|
+
_globals['_ENGINERUNNABLECONFIG_RESUMEMAPENTRY']._loaded_options = None
|
|
55
|
+
_globals['_ENGINERUNNABLECONFIG_RESUMEMAPENTRY']._serialized_options = b'8\001'
|
|
56
|
+
_globals['_TASK_INPUTENTRY']._loaded_options = None
|
|
57
|
+
_globals['_TASK_INPUTENTRY']._serialized_options = b'8\001'
|
|
58
|
+
_globals['_CHECKPOINT_CHANNELVALUESENTRY']._loaded_options = None
|
|
59
|
+
_globals['_CHECKPOINT_CHANNELVALUESENTRY']._serialized_options = b'8\001'
|
|
60
|
+
_globals['_CHECKPOINT_CHANNELVERSIONSENTRY']._loaded_options = None
|
|
61
|
+
_globals['_CHECKPOINT_CHANNELVERSIONSENTRY']._serialized_options = b'8\001'
|
|
62
|
+
_globals['_CHECKPOINT_VERSIONSSEENENTRY']._loaded_options = None
|
|
63
|
+
_globals['_CHECKPOINT_VERSIONSSEENENTRY']._serialized_options = b'8\001'
|
|
64
|
+
_globals['_CHECKPOINTMETADATA_PARENTSENTRY']._loaded_options = None
|
|
65
|
+
_globals['_CHECKPOINTMETADATA_PARENTSENTRY']._serialized_options = b'8\001'
|
|
66
|
+
_globals['_DURABILITY']._serialized_start=8427
|
|
67
|
+
_globals['_DURABILITY']._serialized_end=8483
|
|
68
|
+
_globals['_CHANNELVALUE']._serialized_start=129
|
|
69
|
+
_globals['_CHANNELVALUE']._serialized_end=290
|
|
70
|
+
_globals['_SERIALIZEDVALUE']._serialized_start=292
|
|
71
|
+
_globals['_SERIALIZEDVALUE']._serialized_end=342
|
|
72
|
+
_globals['_RESPONSECHUNK']._serialized_start=344
|
|
73
|
+
_globals['_RESPONSECHUNK']._serialized_end=441
|
|
74
|
+
_globals['_RESPONSECHUNKLIST']._serialized_start=443
|
|
75
|
+
_globals['_RESPONSECHUNKLIST']._serialized_end=510
|
|
76
|
+
_globals['_MESSAGEIDS']._serialized_start=512
|
|
77
|
+
_globals['_MESSAGEIDS']._serialized_end=545
|
|
78
|
+
_globals['_CHANNELS']._serialized_start=548
|
|
79
|
+
_globals['_CHANNELS']._serialized_end=686
|
|
80
|
+
_globals['_CHANNELS_CHANNELSENTRY']._serialized_start=616
|
|
81
|
+
_globals['_CHANNELS_CHANNELSENTRY']._serialized_end=686
|
|
82
|
+
_globals['_CHANNEL']._serialized_start=689
|
|
83
|
+
_globals['_CHANNEL']._serialized_end=830
|
|
84
|
+
_globals['_SENDS']._serialized_start=832
|
|
85
|
+
_globals['_SENDS']._serialized_end=874
|
|
86
|
+
_globals['_SEND']._serialized_start=876
|
|
87
|
+
_globals['_SEND']._serialized_end=940
|
|
88
|
+
_globals['_COMMAND']._serialized_start=943
|
|
89
|
+
_globals['_COMMAND']._serialized_end=1184
|
|
90
|
+
_globals['_COMMAND_UPDATEENTRY']._serialized_start=1098
|
|
91
|
+
_globals['_COMMAND_UPDATEENTRY']._serialized_end=1174
|
|
92
|
+
_globals['_RESUME']._serialized_start=1186
|
|
93
|
+
_globals['_RESUME']._serialized_end=1302
|
|
94
|
+
_globals['_INTERRUPTVALUES']._serialized_start=1305
|
|
95
|
+
_globals['_INTERRUPTVALUES']._serialized_end=1459
|
|
96
|
+
_globals['_INTERRUPTVALUES_VALUESENTRY']._serialized_start=1383
|
|
97
|
+
_globals['_INTERRUPTVALUES_VALUESENTRY']._serialized_end=1459
|
|
98
|
+
_globals['_GOTO']._serialized_start=1461
|
|
99
|
+
_globals['_GOTO']._serialized_end=1535
|
|
100
|
+
_globals['_GRAPHBUBBLEUP']._serialized_start=1537
|
|
101
|
+
_globals['_GRAPHBUBBLEUP']._serialized_end=1552
|
|
102
|
+
_globals['_USERCODEEXECUTIONERROR']._serialized_start=1554
|
|
103
|
+
_globals['_USERCODEEXECUTIONERROR']._serialized_end=1640
|
|
104
|
+
_globals['_GRAPHINTERRUPT']._serialized_start=1642
|
|
105
|
+
_globals['_GRAPHINTERRUPT']._serialized_end=1703
|
|
106
|
+
_globals['_INTERRUPT']._serialized_start=1705
|
|
107
|
+
_globals['_INTERRUPT']._serialized_end=1774
|
|
108
|
+
_globals['_WRAPPEDINTERRUPT']._serialized_start=1776
|
|
109
|
+
_globals['_WRAPPEDINTERRUPT']._serialized_end=1899
|
|
110
|
+
_globals['_WRITE']._serialized_start=1901
|
|
111
|
+
_globals['_WRITE']._serialized_end=1968
|
|
112
|
+
_globals['_PENDINGWRITE']._serialized_start=1970
|
|
113
|
+
_globals['_PENDINGWRITE']._serialized_end=2061
|
|
114
|
+
_globals['_CHANNELVERSIONS']._serialized_start=2064
|
|
115
|
+
_globals['_CHANNELVERSIONS']._serialized_end=2215
|
|
116
|
+
_globals['_CHANNELVERSIONS_CHANNELVERSIONSENTRY']._serialized_start=2161
|
|
117
|
+
_globals['_CHANNELVERSIONS_CHANNELVERSIONSENTRY']._serialized_end=2215
|
|
118
|
+
_globals['_ENGINERUNNABLECONFIG']._serialized_start=2218
|
|
119
|
+
_globals['_ENGINERUNNABLECONFIG']._serialized_end=3563
|
|
120
|
+
_globals['_ENGINERUNNABLECONFIG_METADATAJSONENTRY']._serialized_start=3052
|
|
121
|
+
_globals['_ENGINERUNNABLECONFIG_METADATAJSONENTRY']._serialized_end=3103
|
|
122
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRACONFIGURABLEJSONENTRY']._serialized_start=3105
|
|
123
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRACONFIGURABLEJSONENTRY']._serialized_end=3165
|
|
124
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRAJSONENTRY']._serialized_start=3167
|
|
125
|
+
_globals['_ENGINERUNNABLECONFIG_EXTRAJSONENTRY']._serialized_end=3215
|
|
126
|
+
_globals['_ENGINERUNNABLECONFIG_CHECKPOINTMAPENTRY']._serialized_start=3217
|
|
127
|
+
_globals['_ENGINERUNNABLECONFIG_CHECKPOINTMAPENTRY']._serialized_end=3269
|
|
128
|
+
_globals['_ENGINERUNNABLECONFIG_RESUMEMAPENTRY']._serialized_start=3271
|
|
129
|
+
_globals['_ENGINERUNNABLECONFIG_RESUMEMAPENTRY']._serialized_end=3350
|
|
130
|
+
_globals['_RUNTIME']._serialized_start=3565
|
|
131
|
+
_globals['_RUNTIME']._serialized_end=3638
|
|
132
|
+
_globals['_TASK']._serialized_start=3641
|
|
133
|
+
_globals['_TASK']._serialized_end=4137
|
|
134
|
+
_globals['_TASK_INPUTENTRY']._serialized_start=4065
|
|
135
|
+
_globals['_TASK_INPUTENTRY']._serialized_end=4137
|
|
136
|
+
_globals['_PREGELTASKSNAPSHOT']._serialized_start=4140
|
|
137
|
+
_globals['_PREGELTASKSNAPSHOT']._serialized_end=4399
|
|
138
|
+
_globals['_CHECKPOINT']._serialized_start=4402
|
|
139
|
+
_globals['_CHECKPOINT']._serialized_end=4880
|
|
140
|
+
_globals['_CHECKPOINT_CHANNELVALUESENTRY']._serialized_start=4660
|
|
141
|
+
_globals['_CHECKPOINT_CHANNELVALUESENTRY']._serialized_end=4740
|
|
142
|
+
_globals['_CHECKPOINT_CHANNELVERSIONSENTRY']._serialized_start=2161
|
|
143
|
+
_globals['_CHECKPOINT_CHANNELVERSIONSENTRY']._serialized_end=2215
|
|
144
|
+
_globals['_CHECKPOINT_VERSIONSSEENENTRY']._serialized_start=4798
|
|
145
|
+
_globals['_CHECKPOINT_VERSIONSSEENENTRY']._serialized_end=4880
|
|
146
|
+
_globals['_CHECKPOINTMETADATA']._serialized_start=4883
|
|
147
|
+
_globals['_CHECKPOINTMETADATA']._serialized_end=5204
|
|
148
|
+
_globals['_CHECKPOINTMETADATA_PARENTSENTRY']._serialized_start=5071
|
|
149
|
+
_globals['_CHECKPOINTMETADATA_PARENTSENTRY']._serialized_end=5117
|
|
150
|
+
_globals['_CHECKPOINTMETADATA_CHECKPOINTSOURCE']._serialized_start=5119
|
|
151
|
+
_globals['_CHECKPOINTMETADATA_CHECKPOINTSOURCE']._serialized_end=5193
|
|
152
|
+
_globals['_CHECKPOINTTUPLE']._serialized_start=5207
|
|
153
|
+
_globals['_CHECKPOINTTUPLE']._serialized_end=5485
|
|
154
|
+
_globals['_UPDATES']._serialized_start=5487
|
|
155
|
+
_globals['_UPDATES']._serialized_end=5610
|
|
156
|
+
_globals['_TOOLCALL']._serialized_start=5612
|
|
157
|
+
_globals['_TOOLCALL']._serialized_end=5717
|
|
158
|
+
_globals['_TOOLCALLCHUNK']._serialized_start=5720
|
|
159
|
+
_globals['_TOOLCALLCHUNK']._serialized_end=5914
|
|
160
|
+
_globals['_INVALIDTOOLCALL']._serialized_start=5917
|
|
161
|
+
_globals['_INVALIDTOOLCALL']._serialized_end=6109
|
|
162
|
+
_globals['_INPUTTOKENDETAILS']._serialized_start=6112
|
|
163
|
+
_globals['_INPUTTOKENDETAILS']._serialized_end=6277
|
|
164
|
+
_globals['_OUTPUTTOKENDETAILS']._serialized_start=6279
|
|
165
|
+
_globals['_OUTPUTTOKENDETAILS']._serialized_end=6391
|
|
166
|
+
_globals['_USAGEMETADATA']._serialized_start=6394
|
|
167
|
+
_globals['_USAGEMETADATA']._serialized_end=6602
|
|
168
|
+
_globals['_RESPONSEMETADATA']._serialized_start=6604
|
|
169
|
+
_globals['_RESPONSEMETADATA']._serialized_end=6661
|
|
170
|
+
_globals['_AIFIELDS']._serialized_start=6664
|
|
171
|
+
_globals['_AIFIELDS']._serialized_end=7052
|
|
172
|
+
_globals['_TOOLFIELDS']._serialized_start=7054
|
|
173
|
+
_globals['_TOOLFIELDS']._serialized_end=7134
|
|
174
|
+
_globals['_HUMANFIELDS']._serialized_start=7136
|
|
175
|
+
_globals['_HUMANFIELDS']._serialized_end=7149
|
|
176
|
+
_globals['_CHATMESSAGE']._serialized_start=7152
|
|
177
|
+
_globals['_CHATMESSAGE']._serialized_end=7525
|
|
178
|
+
_globals['_CHATMESSAGEENVELOPE']._serialized_start=7528
|
|
179
|
+
_globals['_CHATMESSAGEENVELOPE']._serialized_end=7676
|
|
180
|
+
_globals['_STATESNAPSHOT']._serialized_start=7679
|
|
181
|
+
_globals['_STATESNAPSHOT']._serialized_end=8087
|
|
182
|
+
_globals['_STATEUPDATE']._serialized_start=8090
|
|
183
|
+
_globals['_STATEUPDATE']._serialized_end=8218
|
|
184
|
+
_globals['_SUPERSTEPUPDATES']._serialized_start=8220
|
|
185
|
+
_globals['_SUPERSTEPUPDATES']._serialized_end=8282
|
|
186
|
+
_globals['_STRINGORSLICE']._serialized_start=8284
|
|
187
|
+
_globals['_STRINGORSLICE']._serialized_end=8334
|
|
188
|
+
_globals['_PATHSEGMENT']._serialized_start=8336
|
|
189
|
+
_globals['_PATHSEGMENT']._serialized_end=8425
|
|
190
|
+
# @@protoc_insertion_point(module_scope)
|