langgraph-api 0.4.1__py3-none-any.whl → 0.7.3__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.
Files changed (135) hide show
  1. langgraph_api/__init__.py +1 -1
  2. langgraph_api/api/__init__.py +111 -51
  3. langgraph_api/api/a2a.py +1610 -0
  4. langgraph_api/api/assistants.py +212 -89
  5. langgraph_api/api/mcp.py +3 -3
  6. langgraph_api/api/meta.py +52 -28
  7. langgraph_api/api/openapi.py +27 -17
  8. langgraph_api/api/profile.py +108 -0
  9. langgraph_api/api/runs.py +342 -195
  10. langgraph_api/api/store.py +19 -2
  11. langgraph_api/api/threads.py +209 -27
  12. langgraph_api/asgi_transport.py +14 -9
  13. langgraph_api/asyncio.py +14 -4
  14. langgraph_api/auth/custom.py +52 -37
  15. langgraph_api/auth/langsmith/backend.py +4 -3
  16. langgraph_api/auth/langsmith/client.py +13 -8
  17. langgraph_api/cli.py +230 -133
  18. langgraph_api/command.py +5 -3
  19. langgraph_api/config/__init__.py +532 -0
  20. langgraph_api/config/_parse.py +58 -0
  21. langgraph_api/config/schemas.py +431 -0
  22. langgraph_api/cron_scheduler.py +17 -1
  23. langgraph_api/encryption/__init__.py +15 -0
  24. langgraph_api/encryption/aes_json.py +158 -0
  25. langgraph_api/encryption/context.py +35 -0
  26. langgraph_api/encryption/custom.py +280 -0
  27. langgraph_api/encryption/middleware.py +632 -0
  28. langgraph_api/encryption/shared.py +63 -0
  29. langgraph_api/errors.py +12 -1
  30. langgraph_api/executor_entrypoint.py +11 -6
  31. langgraph_api/feature_flags.py +29 -0
  32. langgraph_api/graph.py +176 -76
  33. langgraph_api/grpc/client.py +313 -0
  34. langgraph_api/grpc/config_conversion.py +231 -0
  35. langgraph_api/grpc/generated/__init__.py +29 -0
  36. langgraph_api/grpc/generated/checkpointer_pb2.py +63 -0
  37. langgraph_api/grpc/generated/checkpointer_pb2.pyi +99 -0
  38. langgraph_api/grpc/generated/checkpointer_pb2_grpc.py +329 -0
  39. langgraph_api/grpc/generated/core_api_pb2.py +216 -0
  40. langgraph_api/grpc/generated/core_api_pb2.pyi +905 -0
  41. langgraph_api/grpc/generated/core_api_pb2_grpc.py +1621 -0
  42. langgraph_api/grpc/generated/engine_common_pb2.py +219 -0
  43. langgraph_api/grpc/generated/engine_common_pb2.pyi +722 -0
  44. langgraph_api/grpc/generated/engine_common_pb2_grpc.py +24 -0
  45. langgraph_api/grpc/generated/enum_cancel_run_action_pb2.py +37 -0
  46. langgraph_api/grpc/generated/enum_cancel_run_action_pb2.pyi +12 -0
  47. langgraph_api/grpc/generated/enum_cancel_run_action_pb2_grpc.py +24 -0
  48. langgraph_api/grpc/generated/enum_control_signal_pb2.py +37 -0
  49. langgraph_api/grpc/generated/enum_control_signal_pb2.pyi +16 -0
  50. langgraph_api/grpc/generated/enum_control_signal_pb2_grpc.py +24 -0
  51. langgraph_api/grpc/generated/enum_durability_pb2.py +37 -0
  52. langgraph_api/grpc/generated/enum_durability_pb2.pyi +16 -0
  53. langgraph_api/grpc/generated/enum_durability_pb2_grpc.py +24 -0
  54. langgraph_api/grpc/generated/enum_multitask_strategy_pb2.py +37 -0
  55. langgraph_api/grpc/generated/enum_multitask_strategy_pb2.pyi +16 -0
  56. langgraph_api/grpc/generated/enum_multitask_strategy_pb2_grpc.py +24 -0
  57. langgraph_api/grpc/generated/enum_run_status_pb2.py +37 -0
  58. langgraph_api/grpc/generated/enum_run_status_pb2.pyi +22 -0
  59. langgraph_api/grpc/generated/enum_run_status_pb2_grpc.py +24 -0
  60. langgraph_api/grpc/generated/enum_stream_mode_pb2.py +37 -0
  61. langgraph_api/grpc/generated/enum_stream_mode_pb2.pyi +28 -0
  62. langgraph_api/grpc/generated/enum_stream_mode_pb2_grpc.py +24 -0
  63. langgraph_api/grpc/generated/enum_thread_status_pb2.py +37 -0
  64. langgraph_api/grpc/generated/enum_thread_status_pb2.pyi +16 -0
  65. langgraph_api/grpc/generated/enum_thread_status_pb2_grpc.py +24 -0
  66. langgraph_api/grpc/generated/enum_thread_stream_mode_pb2.py +37 -0
  67. langgraph_api/grpc/generated/enum_thread_stream_mode_pb2.pyi +16 -0
  68. langgraph_api/grpc/generated/enum_thread_stream_mode_pb2_grpc.py +24 -0
  69. langgraph_api/grpc/generated/errors_pb2.py +39 -0
  70. langgraph_api/grpc/generated/errors_pb2.pyi +21 -0
  71. langgraph_api/grpc/generated/errors_pb2_grpc.py +24 -0
  72. langgraph_api/grpc/ops/__init__.py +370 -0
  73. langgraph_api/grpc/ops/assistants.py +424 -0
  74. langgraph_api/grpc/ops/runs.py +792 -0
  75. langgraph_api/grpc/ops/threads.py +1013 -0
  76. langgraph_api/http.py +16 -5
  77. langgraph_api/http_metrics.py +15 -35
  78. langgraph_api/http_metrics_utils.py +38 -0
  79. langgraph_api/js/build.mts +1 -1
  80. langgraph_api/js/client.http.mts +13 -7
  81. langgraph_api/js/client.mts +2 -5
  82. langgraph_api/js/package.json +29 -28
  83. langgraph_api/js/remote.py +56 -30
  84. langgraph_api/js/src/graph.mts +20 -0
  85. langgraph_api/js/sse.py +2 -2
  86. langgraph_api/js/ui.py +1 -1
  87. langgraph_api/js/yarn.lock +1204 -1006
  88. langgraph_api/logging.py +29 -2
  89. langgraph_api/metadata.py +99 -28
  90. langgraph_api/middleware/http_logger.py +7 -2
  91. langgraph_api/middleware/private_network.py +7 -7
  92. langgraph_api/models/run.py +54 -93
  93. langgraph_api/otel_context.py +205 -0
  94. langgraph_api/patch.py +5 -3
  95. langgraph_api/queue_entrypoint.py +154 -65
  96. langgraph_api/route.py +47 -5
  97. langgraph_api/schema.py +88 -10
  98. langgraph_api/self_hosted_logs.py +124 -0
  99. langgraph_api/self_hosted_metrics.py +450 -0
  100. langgraph_api/serde.py +79 -37
  101. langgraph_api/server.py +138 -60
  102. langgraph_api/state.py +4 -3
  103. langgraph_api/store.py +25 -16
  104. langgraph_api/stream.py +80 -29
  105. langgraph_api/thread_ttl.py +31 -13
  106. langgraph_api/timing/__init__.py +25 -0
  107. langgraph_api/timing/profiler.py +200 -0
  108. langgraph_api/timing/timer.py +318 -0
  109. langgraph_api/utils/__init__.py +53 -8
  110. langgraph_api/utils/cache.py +47 -10
  111. langgraph_api/utils/config.py +2 -1
  112. langgraph_api/utils/errors.py +77 -0
  113. langgraph_api/utils/future.py +10 -6
  114. langgraph_api/utils/headers.py +76 -2
  115. langgraph_api/utils/retriable_client.py +74 -0
  116. langgraph_api/utils/stream_codec.py +315 -0
  117. langgraph_api/utils/uuids.py +29 -62
  118. langgraph_api/validation.py +9 -0
  119. langgraph_api/webhook.py +120 -6
  120. langgraph_api/worker.py +55 -24
  121. {langgraph_api-0.4.1.dist-info → langgraph_api-0.7.3.dist-info}/METADATA +16 -8
  122. langgraph_api-0.7.3.dist-info/RECORD +168 -0
  123. {langgraph_api-0.4.1.dist-info → langgraph_api-0.7.3.dist-info}/WHEEL +1 -1
  124. langgraph_runtime/__init__.py +1 -0
  125. langgraph_runtime/routes.py +11 -0
  126. logging.json +1 -3
  127. openapi.json +839 -478
  128. langgraph_api/config.py +0 -387
  129. langgraph_api/js/isolate-0x130008000-46649-46649-v8.log +0 -4430
  130. langgraph_api/js/isolate-0x138008000-44681-44681-v8.log +0 -4430
  131. langgraph_api/js/package-lock.json +0 -3308
  132. langgraph_api-0.4.1.dist-info/RECORD +0 -107
  133. /langgraph_api/{utils.py → grpc/__init__.py} +0 -0
  134. {langgraph_api-0.4.1.dist-info → langgraph_api-0.7.3.dist-info}/entry_points.txt +0 -0
  135. {langgraph_api-0.4.1.dist-info → langgraph_api-0.7.3.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,1621 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from . import core_api_pb2 as core__api__pb2
7
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
8
+
9
+ GRPC_GENERATED_VERSION = '1.75.1'
10
+ GRPC_VERSION = grpc.__version__
11
+ _version_not_supported = False
12
+
13
+ try:
14
+ from grpc._utilities import first_version_is_lower
15
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16
+ except ImportError:
17
+ _version_not_supported = True
18
+
19
+ if _version_not_supported:
20
+ raise RuntimeError(
21
+ f'The grpc package installed is at version {GRPC_VERSION},'
22
+ + f' but the generated code in core_api_pb2_grpc.py depends on'
23
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
24
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26
+ )
27
+
28
+
29
+ class AssistantsStub(object):
30
+ """Missing associated documentation comment in .proto file."""
31
+
32
+ def __init__(self, channel):
33
+ """Constructor.
34
+
35
+ Args:
36
+ channel: A grpc.Channel.
37
+ """
38
+ self.Get = channel.unary_unary(
39
+ '/coreApi.Assistants/Get',
40
+ request_serializer=core__api__pb2.GetAssistantRequest.SerializeToString,
41
+ response_deserializer=core__api__pb2.Assistant.FromString,
42
+ _registered_method=True)
43
+ self.Create = channel.unary_unary(
44
+ '/coreApi.Assistants/Create',
45
+ request_serializer=core__api__pb2.CreateAssistantRequest.SerializeToString,
46
+ response_deserializer=core__api__pb2.Assistant.FromString,
47
+ _registered_method=True)
48
+ self.Patch = channel.unary_unary(
49
+ '/coreApi.Assistants/Patch',
50
+ request_serializer=core__api__pb2.PatchAssistantRequest.SerializeToString,
51
+ response_deserializer=core__api__pb2.Assistant.FromString,
52
+ _registered_method=True)
53
+ self.Delete = channel.unary_unary(
54
+ '/coreApi.Assistants/Delete',
55
+ request_serializer=core__api__pb2.DeleteAssistantRequest.SerializeToString,
56
+ response_deserializer=core__api__pb2.DeleteAssistantsResponse.FromString,
57
+ _registered_method=True)
58
+ self.Search = channel.unary_unary(
59
+ '/coreApi.Assistants/Search',
60
+ request_serializer=core__api__pb2.SearchAssistantsRequest.SerializeToString,
61
+ response_deserializer=core__api__pb2.SearchAssistantsResponse.FromString,
62
+ _registered_method=True)
63
+ self.SetLatest = channel.unary_unary(
64
+ '/coreApi.Assistants/SetLatest',
65
+ request_serializer=core__api__pb2.SetLatestAssistantRequest.SerializeToString,
66
+ response_deserializer=core__api__pb2.Assistant.FromString,
67
+ _registered_method=True)
68
+ self.GetVersions = channel.unary_unary(
69
+ '/coreApi.Assistants/GetVersions',
70
+ request_serializer=core__api__pb2.GetAssistantVersionsRequest.SerializeToString,
71
+ response_deserializer=core__api__pb2.GetAssistantVersionsResponse.FromString,
72
+ _registered_method=True)
73
+ self.Count = channel.unary_unary(
74
+ '/coreApi.Assistants/Count',
75
+ request_serializer=core__api__pb2.CountAssistantsRequest.SerializeToString,
76
+ response_deserializer=core__api__pb2.CountResponse.FromString,
77
+ _registered_method=True)
78
+
79
+
80
+ class AssistantsServicer(object):
81
+ """Missing associated documentation comment in .proto file."""
82
+
83
+ def Get(self, request, context):
84
+ """Missing associated documentation comment in .proto file."""
85
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
+ context.set_details('Method not implemented!')
87
+ raise NotImplementedError('Method not implemented!')
88
+
89
+ def Create(self, request, context):
90
+ """Missing associated documentation comment in .proto file."""
91
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
92
+ context.set_details('Method not implemented!')
93
+ raise NotImplementedError('Method not implemented!')
94
+
95
+ def Patch(self, request, context):
96
+ """Missing associated documentation comment in .proto file."""
97
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
98
+ context.set_details('Method not implemented!')
99
+ raise NotImplementedError('Method not implemented!')
100
+
101
+ def Delete(self, request, context):
102
+ """Missing associated documentation comment in .proto file."""
103
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
104
+ context.set_details('Method not implemented!')
105
+ raise NotImplementedError('Method not implemented!')
106
+
107
+ def Search(self, request, context):
108
+ """Missing associated documentation comment in .proto file."""
109
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110
+ context.set_details('Method not implemented!')
111
+ raise NotImplementedError('Method not implemented!')
112
+
113
+ def SetLatest(self, request, context):
114
+ """Missing associated documentation comment in .proto file."""
115
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
+ context.set_details('Method not implemented!')
117
+ raise NotImplementedError('Method not implemented!')
118
+
119
+ def GetVersions(self, request, context):
120
+ """Missing associated documentation comment in .proto file."""
121
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
122
+ context.set_details('Method not implemented!')
123
+ raise NotImplementedError('Method not implemented!')
124
+
125
+ def Count(self, request, context):
126
+ """Missing associated documentation comment in .proto file."""
127
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
128
+ context.set_details('Method not implemented!')
129
+ raise NotImplementedError('Method not implemented!')
130
+
131
+
132
+ def add_AssistantsServicer_to_server(servicer, server):
133
+ rpc_method_handlers = {
134
+ 'Get': grpc.unary_unary_rpc_method_handler(
135
+ servicer.Get,
136
+ request_deserializer=core__api__pb2.GetAssistantRequest.FromString,
137
+ response_serializer=core__api__pb2.Assistant.SerializeToString,
138
+ ),
139
+ 'Create': grpc.unary_unary_rpc_method_handler(
140
+ servicer.Create,
141
+ request_deserializer=core__api__pb2.CreateAssistantRequest.FromString,
142
+ response_serializer=core__api__pb2.Assistant.SerializeToString,
143
+ ),
144
+ 'Patch': grpc.unary_unary_rpc_method_handler(
145
+ servicer.Patch,
146
+ request_deserializer=core__api__pb2.PatchAssistantRequest.FromString,
147
+ response_serializer=core__api__pb2.Assistant.SerializeToString,
148
+ ),
149
+ 'Delete': grpc.unary_unary_rpc_method_handler(
150
+ servicer.Delete,
151
+ request_deserializer=core__api__pb2.DeleteAssistantRequest.FromString,
152
+ response_serializer=core__api__pb2.DeleteAssistantsResponse.SerializeToString,
153
+ ),
154
+ 'Search': grpc.unary_unary_rpc_method_handler(
155
+ servicer.Search,
156
+ request_deserializer=core__api__pb2.SearchAssistantsRequest.FromString,
157
+ response_serializer=core__api__pb2.SearchAssistantsResponse.SerializeToString,
158
+ ),
159
+ 'SetLatest': grpc.unary_unary_rpc_method_handler(
160
+ servicer.SetLatest,
161
+ request_deserializer=core__api__pb2.SetLatestAssistantRequest.FromString,
162
+ response_serializer=core__api__pb2.Assistant.SerializeToString,
163
+ ),
164
+ 'GetVersions': grpc.unary_unary_rpc_method_handler(
165
+ servicer.GetVersions,
166
+ request_deserializer=core__api__pb2.GetAssistantVersionsRequest.FromString,
167
+ response_serializer=core__api__pb2.GetAssistantVersionsResponse.SerializeToString,
168
+ ),
169
+ 'Count': grpc.unary_unary_rpc_method_handler(
170
+ servicer.Count,
171
+ request_deserializer=core__api__pb2.CountAssistantsRequest.FromString,
172
+ response_serializer=core__api__pb2.CountResponse.SerializeToString,
173
+ ),
174
+ }
175
+ generic_handler = grpc.method_handlers_generic_handler(
176
+ 'coreApi.Assistants', rpc_method_handlers)
177
+ server.add_generic_rpc_handlers((generic_handler,))
178
+ server.add_registered_method_handlers('coreApi.Assistants', rpc_method_handlers)
179
+
180
+
181
+ # This class is part of an EXPERIMENTAL API.
182
+ class Assistants(object):
183
+ """Missing associated documentation comment in .proto file."""
184
+
185
+ @staticmethod
186
+ def Get(request,
187
+ target,
188
+ options=(),
189
+ channel_credentials=None,
190
+ call_credentials=None,
191
+ insecure=False,
192
+ compression=None,
193
+ wait_for_ready=None,
194
+ timeout=None,
195
+ metadata=None):
196
+ return grpc.experimental.unary_unary(
197
+ request,
198
+ target,
199
+ '/coreApi.Assistants/Get',
200
+ core__api__pb2.GetAssistantRequest.SerializeToString,
201
+ core__api__pb2.Assistant.FromString,
202
+ options,
203
+ channel_credentials,
204
+ insecure,
205
+ call_credentials,
206
+ compression,
207
+ wait_for_ready,
208
+ timeout,
209
+ metadata,
210
+ _registered_method=True)
211
+
212
+ @staticmethod
213
+ def Create(request,
214
+ target,
215
+ options=(),
216
+ channel_credentials=None,
217
+ call_credentials=None,
218
+ insecure=False,
219
+ compression=None,
220
+ wait_for_ready=None,
221
+ timeout=None,
222
+ metadata=None):
223
+ return grpc.experimental.unary_unary(
224
+ request,
225
+ target,
226
+ '/coreApi.Assistants/Create',
227
+ core__api__pb2.CreateAssistantRequest.SerializeToString,
228
+ core__api__pb2.Assistant.FromString,
229
+ options,
230
+ channel_credentials,
231
+ insecure,
232
+ call_credentials,
233
+ compression,
234
+ wait_for_ready,
235
+ timeout,
236
+ metadata,
237
+ _registered_method=True)
238
+
239
+ @staticmethod
240
+ def Patch(request,
241
+ target,
242
+ options=(),
243
+ channel_credentials=None,
244
+ call_credentials=None,
245
+ insecure=False,
246
+ compression=None,
247
+ wait_for_ready=None,
248
+ timeout=None,
249
+ metadata=None):
250
+ return grpc.experimental.unary_unary(
251
+ request,
252
+ target,
253
+ '/coreApi.Assistants/Patch',
254
+ core__api__pb2.PatchAssistantRequest.SerializeToString,
255
+ core__api__pb2.Assistant.FromString,
256
+ options,
257
+ channel_credentials,
258
+ insecure,
259
+ call_credentials,
260
+ compression,
261
+ wait_for_ready,
262
+ timeout,
263
+ metadata,
264
+ _registered_method=True)
265
+
266
+ @staticmethod
267
+ def Delete(request,
268
+ target,
269
+ options=(),
270
+ channel_credentials=None,
271
+ call_credentials=None,
272
+ insecure=False,
273
+ compression=None,
274
+ wait_for_ready=None,
275
+ timeout=None,
276
+ metadata=None):
277
+ return grpc.experimental.unary_unary(
278
+ request,
279
+ target,
280
+ '/coreApi.Assistants/Delete',
281
+ core__api__pb2.DeleteAssistantRequest.SerializeToString,
282
+ core__api__pb2.DeleteAssistantsResponse.FromString,
283
+ options,
284
+ channel_credentials,
285
+ insecure,
286
+ call_credentials,
287
+ compression,
288
+ wait_for_ready,
289
+ timeout,
290
+ metadata,
291
+ _registered_method=True)
292
+
293
+ @staticmethod
294
+ def Search(request,
295
+ target,
296
+ options=(),
297
+ channel_credentials=None,
298
+ call_credentials=None,
299
+ insecure=False,
300
+ compression=None,
301
+ wait_for_ready=None,
302
+ timeout=None,
303
+ metadata=None):
304
+ return grpc.experimental.unary_unary(
305
+ request,
306
+ target,
307
+ '/coreApi.Assistants/Search',
308
+ core__api__pb2.SearchAssistantsRequest.SerializeToString,
309
+ core__api__pb2.SearchAssistantsResponse.FromString,
310
+ options,
311
+ channel_credentials,
312
+ insecure,
313
+ call_credentials,
314
+ compression,
315
+ wait_for_ready,
316
+ timeout,
317
+ metadata,
318
+ _registered_method=True)
319
+
320
+ @staticmethod
321
+ def SetLatest(request,
322
+ target,
323
+ options=(),
324
+ channel_credentials=None,
325
+ call_credentials=None,
326
+ insecure=False,
327
+ compression=None,
328
+ wait_for_ready=None,
329
+ timeout=None,
330
+ metadata=None):
331
+ return grpc.experimental.unary_unary(
332
+ request,
333
+ target,
334
+ '/coreApi.Assistants/SetLatest',
335
+ core__api__pb2.SetLatestAssistantRequest.SerializeToString,
336
+ core__api__pb2.Assistant.FromString,
337
+ options,
338
+ channel_credentials,
339
+ insecure,
340
+ call_credentials,
341
+ compression,
342
+ wait_for_ready,
343
+ timeout,
344
+ metadata,
345
+ _registered_method=True)
346
+
347
+ @staticmethod
348
+ def GetVersions(request,
349
+ target,
350
+ options=(),
351
+ channel_credentials=None,
352
+ call_credentials=None,
353
+ insecure=False,
354
+ compression=None,
355
+ wait_for_ready=None,
356
+ timeout=None,
357
+ metadata=None):
358
+ return grpc.experimental.unary_unary(
359
+ request,
360
+ target,
361
+ '/coreApi.Assistants/GetVersions',
362
+ core__api__pb2.GetAssistantVersionsRequest.SerializeToString,
363
+ core__api__pb2.GetAssistantVersionsResponse.FromString,
364
+ options,
365
+ channel_credentials,
366
+ insecure,
367
+ call_credentials,
368
+ compression,
369
+ wait_for_ready,
370
+ timeout,
371
+ metadata,
372
+ _registered_method=True)
373
+
374
+ @staticmethod
375
+ def Count(request,
376
+ target,
377
+ options=(),
378
+ channel_credentials=None,
379
+ call_credentials=None,
380
+ insecure=False,
381
+ compression=None,
382
+ wait_for_ready=None,
383
+ timeout=None,
384
+ metadata=None):
385
+ return grpc.experimental.unary_unary(
386
+ request,
387
+ target,
388
+ '/coreApi.Assistants/Count',
389
+ core__api__pb2.CountAssistantsRequest.SerializeToString,
390
+ core__api__pb2.CountResponse.FromString,
391
+ options,
392
+ channel_credentials,
393
+ insecure,
394
+ call_credentials,
395
+ compression,
396
+ wait_for_ready,
397
+ timeout,
398
+ metadata,
399
+ _registered_method=True)
400
+
401
+
402
+ class AdminStub(object):
403
+ """Global database admin operations.
404
+ """
405
+
406
+ def __init__(self, channel):
407
+ """Constructor.
408
+
409
+ Args:
410
+ channel: A grpc.Channel.
411
+ """
412
+ self.Truncate = channel.unary_unary(
413
+ '/coreApi.Admin/Truncate',
414
+ request_serializer=core__api__pb2.TruncateRequest.SerializeToString,
415
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
416
+ _registered_method=True)
417
+
418
+
419
+ class AdminServicer(object):
420
+ """Global database admin operations.
421
+ """
422
+
423
+ def Truncate(self, request, context):
424
+ """Truncate all RDBMS data (supported in dev only!)
425
+ """
426
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
427
+ context.set_details('Method not implemented!')
428
+ raise NotImplementedError('Method not implemented!')
429
+
430
+
431
+ def add_AdminServicer_to_server(servicer, server):
432
+ rpc_method_handlers = {
433
+ 'Truncate': grpc.unary_unary_rpc_method_handler(
434
+ servicer.Truncate,
435
+ request_deserializer=core__api__pb2.TruncateRequest.FromString,
436
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
437
+ ),
438
+ }
439
+ generic_handler = grpc.method_handlers_generic_handler(
440
+ 'coreApi.Admin', rpc_method_handlers)
441
+ server.add_generic_rpc_handlers((generic_handler,))
442
+ server.add_registered_method_handlers('coreApi.Admin', rpc_method_handlers)
443
+
444
+
445
+ # This class is part of an EXPERIMENTAL API.
446
+ class Admin(object):
447
+ """Global database admin operations.
448
+ """
449
+
450
+ @staticmethod
451
+ def Truncate(request,
452
+ target,
453
+ options=(),
454
+ channel_credentials=None,
455
+ call_credentials=None,
456
+ insecure=False,
457
+ compression=None,
458
+ wait_for_ready=None,
459
+ timeout=None,
460
+ metadata=None):
461
+ return grpc.experimental.unary_unary(
462
+ request,
463
+ target,
464
+ '/coreApi.Admin/Truncate',
465
+ core__api__pb2.TruncateRequest.SerializeToString,
466
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
467
+ options,
468
+ channel_credentials,
469
+ insecure,
470
+ call_credentials,
471
+ compression,
472
+ wait_for_ready,
473
+ timeout,
474
+ metadata,
475
+ _registered_method=True)
476
+
477
+
478
+ class ThreadsStub(object):
479
+ """Missing associated documentation comment in .proto file."""
480
+
481
+ def __init__(self, channel):
482
+ """Constructor.
483
+
484
+ Args:
485
+ channel: A grpc.Channel.
486
+ """
487
+ self.Create = channel.unary_unary(
488
+ '/coreApi.Threads/Create',
489
+ request_serializer=core__api__pb2.CreateThreadRequest.SerializeToString,
490
+ response_deserializer=core__api__pb2.Thread.FromString,
491
+ _registered_method=True)
492
+ self.Get = channel.unary_unary(
493
+ '/coreApi.Threads/Get',
494
+ request_serializer=core__api__pb2.GetThreadRequest.SerializeToString,
495
+ response_deserializer=core__api__pb2.Thread.FromString,
496
+ _registered_method=True)
497
+ self.Patch = channel.unary_unary(
498
+ '/coreApi.Threads/Patch',
499
+ request_serializer=core__api__pb2.PatchThreadRequest.SerializeToString,
500
+ response_deserializer=core__api__pb2.Thread.FromString,
501
+ _registered_method=True)
502
+ self.Delete = channel.unary_unary(
503
+ '/coreApi.Threads/Delete',
504
+ request_serializer=core__api__pb2.DeleteThreadRequest.SerializeToString,
505
+ response_deserializer=core__api__pb2.UUID.FromString,
506
+ _registered_method=True)
507
+ self.Search = channel.unary_unary(
508
+ '/coreApi.Threads/Search',
509
+ request_serializer=core__api__pb2.SearchThreadsRequest.SerializeToString,
510
+ response_deserializer=core__api__pb2.SearchThreadsResponse.FromString,
511
+ _registered_method=True)
512
+ self.Count = channel.unary_unary(
513
+ '/coreApi.Threads/Count',
514
+ request_serializer=core__api__pb2.CountThreadsRequest.SerializeToString,
515
+ response_deserializer=core__api__pb2.CountResponse.FromString,
516
+ _registered_method=True)
517
+ self.Copy = channel.unary_unary(
518
+ '/coreApi.Threads/Copy',
519
+ request_serializer=core__api__pb2.CopyThreadRequest.SerializeToString,
520
+ response_deserializer=core__api__pb2.Thread.FromString,
521
+ _registered_method=True)
522
+ self.SetStatus = channel.unary_unary(
523
+ '/coreApi.Threads/SetStatus',
524
+ request_serializer=core__api__pb2.SetThreadStatusRequest.SerializeToString,
525
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
526
+ _registered_method=True)
527
+ self.Stream = channel.unary_stream(
528
+ '/coreApi.Threads/Stream',
529
+ request_serializer=core__api__pb2.StreamThreadRequest.SerializeToString,
530
+ response_deserializer=core__api__pb2.StreamEvent.FromString,
531
+ _registered_method=True)
532
+ self.SetJointStatus = channel.unary_unary(
533
+ '/coreApi.Threads/SetJointStatus',
534
+ request_serializer=core__api__pb2.SetThreadJointStatusRequest.SerializeToString,
535
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
536
+ _registered_method=True)
537
+ self.SweepTTL = channel.unary_unary(
538
+ '/coreApi.Threads/SweepTTL',
539
+ request_serializer=core__api__pb2.SweepThreadsTTLRequest.SerializeToString,
540
+ response_deserializer=core__api__pb2.SweepThreadsTTLResponse.FromString,
541
+ _registered_method=True)
542
+ self.GetGraphID = channel.unary_unary(
543
+ '/coreApi.Threads/GetGraphID',
544
+ request_serializer=core__api__pb2.GetGraphIDRequest.SerializeToString,
545
+ response_deserializer=core__api__pb2.GetGraphIDResponse.FromString,
546
+ _registered_method=True)
547
+
548
+
549
+ class ThreadsServicer(object):
550
+ """Missing associated documentation comment in .proto file."""
551
+
552
+ def Create(self, request, context):
553
+ """Missing associated documentation comment in .proto file."""
554
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
555
+ context.set_details('Method not implemented!')
556
+ raise NotImplementedError('Method not implemented!')
557
+
558
+ def Get(self, request, context):
559
+ """Missing associated documentation comment in .proto file."""
560
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
561
+ context.set_details('Method not implemented!')
562
+ raise NotImplementedError('Method not implemented!')
563
+
564
+ def Patch(self, request, context):
565
+ """Missing associated documentation comment in .proto file."""
566
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
567
+ context.set_details('Method not implemented!')
568
+ raise NotImplementedError('Method not implemented!')
569
+
570
+ def Delete(self, request, context):
571
+ """Missing associated documentation comment in .proto file."""
572
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
573
+ context.set_details('Method not implemented!')
574
+ raise NotImplementedError('Method not implemented!')
575
+
576
+ def Search(self, request, context):
577
+ """Missing associated documentation comment in .proto file."""
578
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
579
+ context.set_details('Method not implemented!')
580
+ raise NotImplementedError('Method not implemented!')
581
+
582
+ def Count(self, request, context):
583
+ """Missing associated documentation comment in .proto file."""
584
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
585
+ context.set_details('Method not implemented!')
586
+ raise NotImplementedError('Method not implemented!')
587
+
588
+ def Copy(self, request, context):
589
+ """Missing associated documentation comment in .proto file."""
590
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
591
+ context.set_details('Method not implemented!')
592
+ raise NotImplementedError('Method not implemented!')
593
+
594
+ def SetStatus(self, request, context):
595
+ """Missing associated documentation comment in .proto file."""
596
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
597
+ context.set_details('Method not implemented!')
598
+ raise NotImplementedError('Method not implemented!')
599
+
600
+ def Stream(self, request, context):
601
+ """Stream run events for all runs associated with the thread.
602
+ """
603
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
604
+ context.set_details('Method not implemented!')
605
+ raise NotImplementedError('Method not implemented!')
606
+
607
+ def SetJointStatus(self, request, context):
608
+ """Set the status of a thread and run atomically.
609
+ """
610
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
611
+ context.set_details('Method not implemented!')
612
+ raise NotImplementedError('Method not implemented!')
613
+
614
+ def SweepTTL(self, request, context):
615
+ """Delete expired threads (based on TTL configurations).
616
+ """
617
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
618
+ context.set_details('Method not implemented!')
619
+ raise NotImplementedError('Method not implemented!')
620
+
621
+ def GetGraphID(self, request, context):
622
+ """Get graph ID for the latest run in a thread (internal method, no auth).
623
+ """
624
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
625
+ context.set_details('Method not implemented!')
626
+ raise NotImplementedError('Method not implemented!')
627
+
628
+
629
+ def add_ThreadsServicer_to_server(servicer, server):
630
+ rpc_method_handlers = {
631
+ 'Create': grpc.unary_unary_rpc_method_handler(
632
+ servicer.Create,
633
+ request_deserializer=core__api__pb2.CreateThreadRequest.FromString,
634
+ response_serializer=core__api__pb2.Thread.SerializeToString,
635
+ ),
636
+ 'Get': grpc.unary_unary_rpc_method_handler(
637
+ servicer.Get,
638
+ request_deserializer=core__api__pb2.GetThreadRequest.FromString,
639
+ response_serializer=core__api__pb2.Thread.SerializeToString,
640
+ ),
641
+ 'Patch': grpc.unary_unary_rpc_method_handler(
642
+ servicer.Patch,
643
+ request_deserializer=core__api__pb2.PatchThreadRequest.FromString,
644
+ response_serializer=core__api__pb2.Thread.SerializeToString,
645
+ ),
646
+ 'Delete': grpc.unary_unary_rpc_method_handler(
647
+ servicer.Delete,
648
+ request_deserializer=core__api__pb2.DeleteThreadRequest.FromString,
649
+ response_serializer=core__api__pb2.UUID.SerializeToString,
650
+ ),
651
+ 'Search': grpc.unary_unary_rpc_method_handler(
652
+ servicer.Search,
653
+ request_deserializer=core__api__pb2.SearchThreadsRequest.FromString,
654
+ response_serializer=core__api__pb2.SearchThreadsResponse.SerializeToString,
655
+ ),
656
+ 'Count': grpc.unary_unary_rpc_method_handler(
657
+ servicer.Count,
658
+ request_deserializer=core__api__pb2.CountThreadsRequest.FromString,
659
+ response_serializer=core__api__pb2.CountResponse.SerializeToString,
660
+ ),
661
+ 'Copy': grpc.unary_unary_rpc_method_handler(
662
+ servicer.Copy,
663
+ request_deserializer=core__api__pb2.CopyThreadRequest.FromString,
664
+ response_serializer=core__api__pb2.Thread.SerializeToString,
665
+ ),
666
+ 'SetStatus': grpc.unary_unary_rpc_method_handler(
667
+ servicer.SetStatus,
668
+ request_deserializer=core__api__pb2.SetThreadStatusRequest.FromString,
669
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
670
+ ),
671
+ 'Stream': grpc.unary_stream_rpc_method_handler(
672
+ servicer.Stream,
673
+ request_deserializer=core__api__pb2.StreamThreadRequest.FromString,
674
+ response_serializer=core__api__pb2.StreamEvent.SerializeToString,
675
+ ),
676
+ 'SetJointStatus': grpc.unary_unary_rpc_method_handler(
677
+ servicer.SetJointStatus,
678
+ request_deserializer=core__api__pb2.SetThreadJointStatusRequest.FromString,
679
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
680
+ ),
681
+ 'SweepTTL': grpc.unary_unary_rpc_method_handler(
682
+ servicer.SweepTTL,
683
+ request_deserializer=core__api__pb2.SweepThreadsTTLRequest.FromString,
684
+ response_serializer=core__api__pb2.SweepThreadsTTLResponse.SerializeToString,
685
+ ),
686
+ 'GetGraphID': grpc.unary_unary_rpc_method_handler(
687
+ servicer.GetGraphID,
688
+ request_deserializer=core__api__pb2.GetGraphIDRequest.FromString,
689
+ response_serializer=core__api__pb2.GetGraphIDResponse.SerializeToString,
690
+ ),
691
+ }
692
+ generic_handler = grpc.method_handlers_generic_handler(
693
+ 'coreApi.Threads', rpc_method_handlers)
694
+ server.add_generic_rpc_handlers((generic_handler,))
695
+ server.add_registered_method_handlers('coreApi.Threads', rpc_method_handlers)
696
+
697
+
698
+ # This class is part of an EXPERIMENTAL API.
699
+ class Threads(object):
700
+ """Missing associated documentation comment in .proto file."""
701
+
702
+ @staticmethod
703
+ def Create(request,
704
+ target,
705
+ options=(),
706
+ channel_credentials=None,
707
+ call_credentials=None,
708
+ insecure=False,
709
+ compression=None,
710
+ wait_for_ready=None,
711
+ timeout=None,
712
+ metadata=None):
713
+ return grpc.experimental.unary_unary(
714
+ request,
715
+ target,
716
+ '/coreApi.Threads/Create',
717
+ core__api__pb2.CreateThreadRequest.SerializeToString,
718
+ core__api__pb2.Thread.FromString,
719
+ options,
720
+ channel_credentials,
721
+ insecure,
722
+ call_credentials,
723
+ compression,
724
+ wait_for_ready,
725
+ timeout,
726
+ metadata,
727
+ _registered_method=True)
728
+
729
+ @staticmethod
730
+ def Get(request,
731
+ target,
732
+ options=(),
733
+ channel_credentials=None,
734
+ call_credentials=None,
735
+ insecure=False,
736
+ compression=None,
737
+ wait_for_ready=None,
738
+ timeout=None,
739
+ metadata=None):
740
+ return grpc.experimental.unary_unary(
741
+ request,
742
+ target,
743
+ '/coreApi.Threads/Get',
744
+ core__api__pb2.GetThreadRequest.SerializeToString,
745
+ core__api__pb2.Thread.FromString,
746
+ options,
747
+ channel_credentials,
748
+ insecure,
749
+ call_credentials,
750
+ compression,
751
+ wait_for_ready,
752
+ timeout,
753
+ metadata,
754
+ _registered_method=True)
755
+
756
+ @staticmethod
757
+ def Patch(request,
758
+ target,
759
+ options=(),
760
+ channel_credentials=None,
761
+ call_credentials=None,
762
+ insecure=False,
763
+ compression=None,
764
+ wait_for_ready=None,
765
+ timeout=None,
766
+ metadata=None):
767
+ return grpc.experimental.unary_unary(
768
+ request,
769
+ target,
770
+ '/coreApi.Threads/Patch',
771
+ core__api__pb2.PatchThreadRequest.SerializeToString,
772
+ core__api__pb2.Thread.FromString,
773
+ options,
774
+ channel_credentials,
775
+ insecure,
776
+ call_credentials,
777
+ compression,
778
+ wait_for_ready,
779
+ timeout,
780
+ metadata,
781
+ _registered_method=True)
782
+
783
+ @staticmethod
784
+ def Delete(request,
785
+ target,
786
+ options=(),
787
+ channel_credentials=None,
788
+ call_credentials=None,
789
+ insecure=False,
790
+ compression=None,
791
+ wait_for_ready=None,
792
+ timeout=None,
793
+ metadata=None):
794
+ return grpc.experimental.unary_unary(
795
+ request,
796
+ target,
797
+ '/coreApi.Threads/Delete',
798
+ core__api__pb2.DeleteThreadRequest.SerializeToString,
799
+ core__api__pb2.UUID.FromString,
800
+ options,
801
+ channel_credentials,
802
+ insecure,
803
+ call_credentials,
804
+ compression,
805
+ wait_for_ready,
806
+ timeout,
807
+ metadata,
808
+ _registered_method=True)
809
+
810
+ @staticmethod
811
+ def Search(request,
812
+ target,
813
+ options=(),
814
+ channel_credentials=None,
815
+ call_credentials=None,
816
+ insecure=False,
817
+ compression=None,
818
+ wait_for_ready=None,
819
+ timeout=None,
820
+ metadata=None):
821
+ return grpc.experimental.unary_unary(
822
+ request,
823
+ target,
824
+ '/coreApi.Threads/Search',
825
+ core__api__pb2.SearchThreadsRequest.SerializeToString,
826
+ core__api__pb2.SearchThreadsResponse.FromString,
827
+ options,
828
+ channel_credentials,
829
+ insecure,
830
+ call_credentials,
831
+ compression,
832
+ wait_for_ready,
833
+ timeout,
834
+ metadata,
835
+ _registered_method=True)
836
+
837
+ @staticmethod
838
+ def Count(request,
839
+ target,
840
+ options=(),
841
+ channel_credentials=None,
842
+ call_credentials=None,
843
+ insecure=False,
844
+ compression=None,
845
+ wait_for_ready=None,
846
+ timeout=None,
847
+ metadata=None):
848
+ return grpc.experimental.unary_unary(
849
+ request,
850
+ target,
851
+ '/coreApi.Threads/Count',
852
+ core__api__pb2.CountThreadsRequest.SerializeToString,
853
+ core__api__pb2.CountResponse.FromString,
854
+ options,
855
+ channel_credentials,
856
+ insecure,
857
+ call_credentials,
858
+ compression,
859
+ wait_for_ready,
860
+ timeout,
861
+ metadata,
862
+ _registered_method=True)
863
+
864
+ @staticmethod
865
+ def Copy(request,
866
+ target,
867
+ options=(),
868
+ channel_credentials=None,
869
+ call_credentials=None,
870
+ insecure=False,
871
+ compression=None,
872
+ wait_for_ready=None,
873
+ timeout=None,
874
+ metadata=None):
875
+ return grpc.experimental.unary_unary(
876
+ request,
877
+ target,
878
+ '/coreApi.Threads/Copy',
879
+ core__api__pb2.CopyThreadRequest.SerializeToString,
880
+ core__api__pb2.Thread.FromString,
881
+ options,
882
+ channel_credentials,
883
+ insecure,
884
+ call_credentials,
885
+ compression,
886
+ wait_for_ready,
887
+ timeout,
888
+ metadata,
889
+ _registered_method=True)
890
+
891
+ @staticmethod
892
+ def SetStatus(request,
893
+ target,
894
+ options=(),
895
+ channel_credentials=None,
896
+ call_credentials=None,
897
+ insecure=False,
898
+ compression=None,
899
+ wait_for_ready=None,
900
+ timeout=None,
901
+ metadata=None):
902
+ return grpc.experimental.unary_unary(
903
+ request,
904
+ target,
905
+ '/coreApi.Threads/SetStatus',
906
+ core__api__pb2.SetThreadStatusRequest.SerializeToString,
907
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
908
+ options,
909
+ channel_credentials,
910
+ insecure,
911
+ call_credentials,
912
+ compression,
913
+ wait_for_ready,
914
+ timeout,
915
+ metadata,
916
+ _registered_method=True)
917
+
918
+ @staticmethod
919
+ def Stream(request,
920
+ target,
921
+ options=(),
922
+ channel_credentials=None,
923
+ call_credentials=None,
924
+ insecure=False,
925
+ compression=None,
926
+ wait_for_ready=None,
927
+ timeout=None,
928
+ metadata=None):
929
+ return grpc.experimental.unary_stream(
930
+ request,
931
+ target,
932
+ '/coreApi.Threads/Stream',
933
+ core__api__pb2.StreamThreadRequest.SerializeToString,
934
+ core__api__pb2.StreamEvent.FromString,
935
+ options,
936
+ channel_credentials,
937
+ insecure,
938
+ call_credentials,
939
+ compression,
940
+ wait_for_ready,
941
+ timeout,
942
+ metadata,
943
+ _registered_method=True)
944
+
945
+ @staticmethod
946
+ def SetJointStatus(request,
947
+ target,
948
+ options=(),
949
+ channel_credentials=None,
950
+ call_credentials=None,
951
+ insecure=False,
952
+ compression=None,
953
+ wait_for_ready=None,
954
+ timeout=None,
955
+ metadata=None):
956
+ return grpc.experimental.unary_unary(
957
+ request,
958
+ target,
959
+ '/coreApi.Threads/SetJointStatus',
960
+ core__api__pb2.SetThreadJointStatusRequest.SerializeToString,
961
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
962
+ options,
963
+ channel_credentials,
964
+ insecure,
965
+ call_credentials,
966
+ compression,
967
+ wait_for_ready,
968
+ timeout,
969
+ metadata,
970
+ _registered_method=True)
971
+
972
+ @staticmethod
973
+ def SweepTTL(request,
974
+ target,
975
+ options=(),
976
+ channel_credentials=None,
977
+ call_credentials=None,
978
+ insecure=False,
979
+ compression=None,
980
+ wait_for_ready=None,
981
+ timeout=None,
982
+ metadata=None):
983
+ return grpc.experimental.unary_unary(
984
+ request,
985
+ target,
986
+ '/coreApi.Threads/SweepTTL',
987
+ core__api__pb2.SweepThreadsTTLRequest.SerializeToString,
988
+ core__api__pb2.SweepThreadsTTLResponse.FromString,
989
+ options,
990
+ channel_credentials,
991
+ insecure,
992
+ call_credentials,
993
+ compression,
994
+ wait_for_ready,
995
+ timeout,
996
+ metadata,
997
+ _registered_method=True)
998
+
999
+ @staticmethod
1000
+ def GetGraphID(request,
1001
+ target,
1002
+ options=(),
1003
+ channel_credentials=None,
1004
+ call_credentials=None,
1005
+ insecure=False,
1006
+ compression=None,
1007
+ wait_for_ready=None,
1008
+ timeout=None,
1009
+ metadata=None):
1010
+ return grpc.experimental.unary_unary(
1011
+ request,
1012
+ target,
1013
+ '/coreApi.Threads/GetGraphID',
1014
+ core__api__pb2.GetGraphIDRequest.SerializeToString,
1015
+ core__api__pb2.GetGraphIDResponse.FromString,
1016
+ options,
1017
+ channel_credentials,
1018
+ insecure,
1019
+ call_credentials,
1020
+ compression,
1021
+ wait_for_ready,
1022
+ timeout,
1023
+ metadata,
1024
+ _registered_method=True)
1025
+
1026
+
1027
+ class RunsStub(object):
1028
+ """Missing associated documentation comment in .proto file."""
1029
+
1030
+ def __init__(self, channel):
1031
+ """Constructor.
1032
+
1033
+ Args:
1034
+ channel: A grpc.Channel.
1035
+ """
1036
+ self.Create = channel.unary_unary(
1037
+ '/coreApi.Runs/Create',
1038
+ request_serializer=core__api__pb2.CreateRunRequest.SerializeToString,
1039
+ response_deserializer=core__api__pb2.CreateRunResponse.FromString,
1040
+ _registered_method=True)
1041
+ self.Get = channel.unary_unary(
1042
+ '/coreApi.Runs/Get',
1043
+ request_serializer=core__api__pb2.GetRunRequest.SerializeToString,
1044
+ response_deserializer=core__api__pb2.Run.FromString,
1045
+ _registered_method=True)
1046
+ self.Delete = channel.unary_unary(
1047
+ '/coreApi.Runs/Delete',
1048
+ request_serializer=core__api__pb2.DeleteRunRequest.SerializeToString,
1049
+ response_deserializer=core__api__pb2.UUID.FromString,
1050
+ _registered_method=True)
1051
+ self.Search = channel.unary_unary(
1052
+ '/coreApi.Runs/Search',
1053
+ request_serializer=core__api__pb2.SearchRunsRequest.SerializeToString,
1054
+ response_deserializer=core__api__pb2.SearchRunsResponse.FromString,
1055
+ _registered_method=True)
1056
+ self.Cancel = channel.unary_unary(
1057
+ '/coreApi.Runs/Cancel',
1058
+ request_serializer=core__api__pb2.CancelRunRequest.SerializeToString,
1059
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1060
+ _registered_method=True)
1061
+ self.SetStatus = channel.unary_unary(
1062
+ '/coreApi.Runs/SetStatus',
1063
+ request_serializer=core__api__pb2.SetRunStatusRequest.SerializeToString,
1064
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1065
+ _registered_method=True)
1066
+ self.Stream = channel.unary_stream(
1067
+ '/coreApi.Runs/Stream',
1068
+ request_serializer=core__api__pb2.StreamRunRequest.SerializeToString,
1069
+ response_deserializer=core__api__pb2.StreamEvent.FromString,
1070
+ _registered_method=True)
1071
+ self.Enter = channel.unary_stream(
1072
+ '/coreApi.Runs/Enter',
1073
+ request_serializer=core__api__pb2.EnterRunRequest.SerializeToString,
1074
+ response_deserializer=core__api__pb2.ControlEvent.FromString,
1075
+ _registered_method=True)
1076
+ self.MarkDone = channel.unary_unary(
1077
+ '/coreApi.Runs/MarkDone',
1078
+ request_serializer=core__api__pb2.MarkRunDoneRequest.SerializeToString,
1079
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1080
+ _registered_method=True)
1081
+ self.Stats = channel.unary_unary(
1082
+ '/coreApi.Runs/Stats',
1083
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1084
+ response_deserializer=core__api__pb2.RunStats.FromString,
1085
+ _registered_method=True)
1086
+ self.Count = channel.unary_unary(
1087
+ '/coreApi.Runs/Count',
1088
+ request_serializer=core__api__pb2.CountRunsRequest.SerializeToString,
1089
+ response_deserializer=core__api__pb2.CountResponse.FromString,
1090
+ _registered_method=True)
1091
+ self.Next = channel.unary_unary(
1092
+ '/coreApi.Runs/Next',
1093
+ request_serializer=core__api__pb2.NextRunRequest.SerializeToString,
1094
+ response_deserializer=core__api__pb2.NextRunResponse.FromString,
1095
+ _registered_method=True)
1096
+ self.Sweep = channel.unary_unary(
1097
+ '/coreApi.Runs/Sweep',
1098
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1099
+ response_deserializer=core__api__pb2.SweepRunsResponse.FromString,
1100
+ _registered_method=True)
1101
+
1102
+
1103
+ class RunsServicer(object):
1104
+ """Missing associated documentation comment in .proto file."""
1105
+
1106
+ def Create(self, request, context):
1107
+ """Missing associated documentation comment in .proto file."""
1108
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1109
+ context.set_details('Method not implemented!')
1110
+ raise NotImplementedError('Method not implemented!')
1111
+
1112
+ def Get(self, request, context):
1113
+ """Missing associated documentation comment in .proto file."""
1114
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1115
+ context.set_details('Method not implemented!')
1116
+ raise NotImplementedError('Method not implemented!')
1117
+
1118
+ def Delete(self, request, context):
1119
+ """Missing associated documentation comment in .proto file."""
1120
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1121
+ context.set_details('Method not implemented!')
1122
+ raise NotImplementedError('Method not implemented!')
1123
+
1124
+ def Search(self, request, context):
1125
+ """Missing associated documentation comment in .proto file."""
1126
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1127
+ context.set_details('Method not implemented!')
1128
+ raise NotImplementedError('Method not implemented!')
1129
+
1130
+ def Cancel(self, request, context):
1131
+ """Missing associated documentation comment in .proto file."""
1132
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1133
+ context.set_details('Method not implemented!')
1134
+ raise NotImplementedError('Method not implemented!')
1135
+
1136
+ def SetStatus(self, request, context):
1137
+ """Missing associated documentation comment in .proto file."""
1138
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1139
+ context.set_details('Method not implemented!')
1140
+ raise NotImplementedError('Method not implemented!')
1141
+
1142
+ def Stream(self, request, context):
1143
+ """Stream run events.
1144
+ """
1145
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1146
+ context.set_details('Method not implemented!')
1147
+ raise NotImplementedError('Method not implemented!')
1148
+
1149
+ def Enter(self, request, context):
1150
+ """Enter a run - starts heartbeat and streams control signals (internal worker method)
1151
+ Returns a stream of interrupt/rollback signals for the specified run
1152
+ """
1153
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1154
+ context.set_details('Method not implemented!')
1155
+ raise NotImplementedError('Method not implemented!')
1156
+
1157
+ def MarkDone(self, request, context):
1158
+ """Mark a run as done (internal worker method)
1159
+ """
1160
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1161
+ context.set_details('Method not implemented!')
1162
+ raise NotImplementedError('Method not implemented!')
1163
+
1164
+ def Stats(self, request, context):
1165
+ """Get run statistics (internal method, no auth)
1166
+ """
1167
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1168
+ context.set_details('Method not implemented!')
1169
+ raise NotImplementedError('Method not implemented!')
1170
+
1171
+ def Count(self, request, context):
1172
+ """Count runs matching criteria (internal method, no auth)
1173
+ """
1174
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1175
+ context.set_details('Method not implemented!')
1176
+ raise NotImplementedError('Method not implemented!')
1177
+
1178
+ def Next(self, request, context):
1179
+ """Get next run from queue (internal worker method, no auth)
1180
+ TODO: come back
1181
+ """
1182
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1183
+ context.set_details('Method not implemented!')
1184
+ raise NotImplementedError('Method not implemented!')
1185
+
1186
+ def Sweep(self, request, context):
1187
+ """Sweep abandoned runs (internal method, no auth)
1188
+ """
1189
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1190
+ context.set_details('Method not implemented!')
1191
+ raise NotImplementedError('Method not implemented!')
1192
+
1193
+
1194
+ def add_RunsServicer_to_server(servicer, server):
1195
+ rpc_method_handlers = {
1196
+ 'Create': grpc.unary_unary_rpc_method_handler(
1197
+ servicer.Create,
1198
+ request_deserializer=core__api__pb2.CreateRunRequest.FromString,
1199
+ response_serializer=core__api__pb2.CreateRunResponse.SerializeToString,
1200
+ ),
1201
+ 'Get': grpc.unary_unary_rpc_method_handler(
1202
+ servicer.Get,
1203
+ request_deserializer=core__api__pb2.GetRunRequest.FromString,
1204
+ response_serializer=core__api__pb2.Run.SerializeToString,
1205
+ ),
1206
+ 'Delete': grpc.unary_unary_rpc_method_handler(
1207
+ servicer.Delete,
1208
+ request_deserializer=core__api__pb2.DeleteRunRequest.FromString,
1209
+ response_serializer=core__api__pb2.UUID.SerializeToString,
1210
+ ),
1211
+ 'Search': grpc.unary_unary_rpc_method_handler(
1212
+ servicer.Search,
1213
+ request_deserializer=core__api__pb2.SearchRunsRequest.FromString,
1214
+ response_serializer=core__api__pb2.SearchRunsResponse.SerializeToString,
1215
+ ),
1216
+ 'Cancel': grpc.unary_unary_rpc_method_handler(
1217
+ servicer.Cancel,
1218
+ request_deserializer=core__api__pb2.CancelRunRequest.FromString,
1219
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1220
+ ),
1221
+ 'SetStatus': grpc.unary_unary_rpc_method_handler(
1222
+ servicer.SetStatus,
1223
+ request_deserializer=core__api__pb2.SetRunStatusRequest.FromString,
1224
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1225
+ ),
1226
+ 'Stream': grpc.unary_stream_rpc_method_handler(
1227
+ servicer.Stream,
1228
+ request_deserializer=core__api__pb2.StreamRunRequest.FromString,
1229
+ response_serializer=core__api__pb2.StreamEvent.SerializeToString,
1230
+ ),
1231
+ 'Enter': grpc.unary_stream_rpc_method_handler(
1232
+ servicer.Enter,
1233
+ request_deserializer=core__api__pb2.EnterRunRequest.FromString,
1234
+ response_serializer=core__api__pb2.ControlEvent.SerializeToString,
1235
+ ),
1236
+ 'MarkDone': grpc.unary_unary_rpc_method_handler(
1237
+ servicer.MarkDone,
1238
+ request_deserializer=core__api__pb2.MarkRunDoneRequest.FromString,
1239
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1240
+ ),
1241
+ 'Stats': grpc.unary_unary_rpc_method_handler(
1242
+ servicer.Stats,
1243
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1244
+ response_serializer=core__api__pb2.RunStats.SerializeToString,
1245
+ ),
1246
+ 'Count': grpc.unary_unary_rpc_method_handler(
1247
+ servicer.Count,
1248
+ request_deserializer=core__api__pb2.CountRunsRequest.FromString,
1249
+ response_serializer=core__api__pb2.CountResponse.SerializeToString,
1250
+ ),
1251
+ 'Next': grpc.unary_unary_rpc_method_handler(
1252
+ servicer.Next,
1253
+ request_deserializer=core__api__pb2.NextRunRequest.FromString,
1254
+ response_serializer=core__api__pb2.NextRunResponse.SerializeToString,
1255
+ ),
1256
+ 'Sweep': grpc.unary_unary_rpc_method_handler(
1257
+ servicer.Sweep,
1258
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1259
+ response_serializer=core__api__pb2.SweepRunsResponse.SerializeToString,
1260
+ ),
1261
+ }
1262
+ generic_handler = grpc.method_handlers_generic_handler(
1263
+ 'coreApi.Runs', rpc_method_handlers)
1264
+ server.add_generic_rpc_handlers((generic_handler,))
1265
+ server.add_registered_method_handlers('coreApi.Runs', rpc_method_handlers)
1266
+
1267
+
1268
+ # This class is part of an EXPERIMENTAL API.
1269
+ class Runs(object):
1270
+ """Missing associated documentation comment in .proto file."""
1271
+
1272
+ @staticmethod
1273
+ def Create(request,
1274
+ target,
1275
+ options=(),
1276
+ channel_credentials=None,
1277
+ call_credentials=None,
1278
+ insecure=False,
1279
+ compression=None,
1280
+ wait_for_ready=None,
1281
+ timeout=None,
1282
+ metadata=None):
1283
+ return grpc.experimental.unary_unary(
1284
+ request,
1285
+ target,
1286
+ '/coreApi.Runs/Create',
1287
+ core__api__pb2.CreateRunRequest.SerializeToString,
1288
+ core__api__pb2.CreateRunResponse.FromString,
1289
+ options,
1290
+ channel_credentials,
1291
+ insecure,
1292
+ call_credentials,
1293
+ compression,
1294
+ wait_for_ready,
1295
+ timeout,
1296
+ metadata,
1297
+ _registered_method=True)
1298
+
1299
+ @staticmethod
1300
+ def Get(request,
1301
+ target,
1302
+ options=(),
1303
+ channel_credentials=None,
1304
+ call_credentials=None,
1305
+ insecure=False,
1306
+ compression=None,
1307
+ wait_for_ready=None,
1308
+ timeout=None,
1309
+ metadata=None):
1310
+ return grpc.experimental.unary_unary(
1311
+ request,
1312
+ target,
1313
+ '/coreApi.Runs/Get',
1314
+ core__api__pb2.GetRunRequest.SerializeToString,
1315
+ core__api__pb2.Run.FromString,
1316
+ options,
1317
+ channel_credentials,
1318
+ insecure,
1319
+ call_credentials,
1320
+ compression,
1321
+ wait_for_ready,
1322
+ timeout,
1323
+ metadata,
1324
+ _registered_method=True)
1325
+
1326
+ @staticmethod
1327
+ def Delete(request,
1328
+ target,
1329
+ options=(),
1330
+ channel_credentials=None,
1331
+ call_credentials=None,
1332
+ insecure=False,
1333
+ compression=None,
1334
+ wait_for_ready=None,
1335
+ timeout=None,
1336
+ metadata=None):
1337
+ return grpc.experimental.unary_unary(
1338
+ request,
1339
+ target,
1340
+ '/coreApi.Runs/Delete',
1341
+ core__api__pb2.DeleteRunRequest.SerializeToString,
1342
+ core__api__pb2.UUID.FromString,
1343
+ options,
1344
+ channel_credentials,
1345
+ insecure,
1346
+ call_credentials,
1347
+ compression,
1348
+ wait_for_ready,
1349
+ timeout,
1350
+ metadata,
1351
+ _registered_method=True)
1352
+
1353
+ @staticmethod
1354
+ def Search(request,
1355
+ target,
1356
+ options=(),
1357
+ channel_credentials=None,
1358
+ call_credentials=None,
1359
+ insecure=False,
1360
+ compression=None,
1361
+ wait_for_ready=None,
1362
+ timeout=None,
1363
+ metadata=None):
1364
+ return grpc.experimental.unary_unary(
1365
+ request,
1366
+ target,
1367
+ '/coreApi.Runs/Search',
1368
+ core__api__pb2.SearchRunsRequest.SerializeToString,
1369
+ core__api__pb2.SearchRunsResponse.FromString,
1370
+ options,
1371
+ channel_credentials,
1372
+ insecure,
1373
+ call_credentials,
1374
+ compression,
1375
+ wait_for_ready,
1376
+ timeout,
1377
+ metadata,
1378
+ _registered_method=True)
1379
+
1380
+ @staticmethod
1381
+ def Cancel(request,
1382
+ target,
1383
+ options=(),
1384
+ channel_credentials=None,
1385
+ call_credentials=None,
1386
+ insecure=False,
1387
+ compression=None,
1388
+ wait_for_ready=None,
1389
+ timeout=None,
1390
+ metadata=None):
1391
+ return grpc.experimental.unary_unary(
1392
+ request,
1393
+ target,
1394
+ '/coreApi.Runs/Cancel',
1395
+ core__api__pb2.CancelRunRequest.SerializeToString,
1396
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1397
+ options,
1398
+ channel_credentials,
1399
+ insecure,
1400
+ call_credentials,
1401
+ compression,
1402
+ wait_for_ready,
1403
+ timeout,
1404
+ metadata,
1405
+ _registered_method=True)
1406
+
1407
+ @staticmethod
1408
+ def SetStatus(request,
1409
+ target,
1410
+ options=(),
1411
+ channel_credentials=None,
1412
+ call_credentials=None,
1413
+ insecure=False,
1414
+ compression=None,
1415
+ wait_for_ready=None,
1416
+ timeout=None,
1417
+ metadata=None):
1418
+ return grpc.experimental.unary_unary(
1419
+ request,
1420
+ target,
1421
+ '/coreApi.Runs/SetStatus',
1422
+ core__api__pb2.SetRunStatusRequest.SerializeToString,
1423
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1424
+ options,
1425
+ channel_credentials,
1426
+ insecure,
1427
+ call_credentials,
1428
+ compression,
1429
+ wait_for_ready,
1430
+ timeout,
1431
+ metadata,
1432
+ _registered_method=True)
1433
+
1434
+ @staticmethod
1435
+ def Stream(request,
1436
+ target,
1437
+ options=(),
1438
+ channel_credentials=None,
1439
+ call_credentials=None,
1440
+ insecure=False,
1441
+ compression=None,
1442
+ wait_for_ready=None,
1443
+ timeout=None,
1444
+ metadata=None):
1445
+ return grpc.experimental.unary_stream(
1446
+ request,
1447
+ target,
1448
+ '/coreApi.Runs/Stream',
1449
+ core__api__pb2.StreamRunRequest.SerializeToString,
1450
+ core__api__pb2.StreamEvent.FromString,
1451
+ options,
1452
+ channel_credentials,
1453
+ insecure,
1454
+ call_credentials,
1455
+ compression,
1456
+ wait_for_ready,
1457
+ timeout,
1458
+ metadata,
1459
+ _registered_method=True)
1460
+
1461
+ @staticmethod
1462
+ def Enter(request,
1463
+ target,
1464
+ options=(),
1465
+ channel_credentials=None,
1466
+ call_credentials=None,
1467
+ insecure=False,
1468
+ compression=None,
1469
+ wait_for_ready=None,
1470
+ timeout=None,
1471
+ metadata=None):
1472
+ return grpc.experimental.unary_stream(
1473
+ request,
1474
+ target,
1475
+ '/coreApi.Runs/Enter',
1476
+ core__api__pb2.EnterRunRequest.SerializeToString,
1477
+ core__api__pb2.ControlEvent.FromString,
1478
+ options,
1479
+ channel_credentials,
1480
+ insecure,
1481
+ call_credentials,
1482
+ compression,
1483
+ wait_for_ready,
1484
+ timeout,
1485
+ metadata,
1486
+ _registered_method=True)
1487
+
1488
+ @staticmethod
1489
+ def MarkDone(request,
1490
+ target,
1491
+ options=(),
1492
+ channel_credentials=None,
1493
+ call_credentials=None,
1494
+ insecure=False,
1495
+ compression=None,
1496
+ wait_for_ready=None,
1497
+ timeout=None,
1498
+ metadata=None):
1499
+ return grpc.experimental.unary_unary(
1500
+ request,
1501
+ target,
1502
+ '/coreApi.Runs/MarkDone',
1503
+ core__api__pb2.MarkRunDoneRequest.SerializeToString,
1504
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1505
+ options,
1506
+ channel_credentials,
1507
+ insecure,
1508
+ call_credentials,
1509
+ compression,
1510
+ wait_for_ready,
1511
+ timeout,
1512
+ metadata,
1513
+ _registered_method=True)
1514
+
1515
+ @staticmethod
1516
+ def Stats(request,
1517
+ target,
1518
+ options=(),
1519
+ channel_credentials=None,
1520
+ call_credentials=None,
1521
+ insecure=False,
1522
+ compression=None,
1523
+ wait_for_ready=None,
1524
+ timeout=None,
1525
+ metadata=None):
1526
+ return grpc.experimental.unary_unary(
1527
+ request,
1528
+ target,
1529
+ '/coreApi.Runs/Stats',
1530
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1531
+ core__api__pb2.RunStats.FromString,
1532
+ options,
1533
+ channel_credentials,
1534
+ insecure,
1535
+ call_credentials,
1536
+ compression,
1537
+ wait_for_ready,
1538
+ timeout,
1539
+ metadata,
1540
+ _registered_method=True)
1541
+
1542
+ @staticmethod
1543
+ def Count(request,
1544
+ target,
1545
+ options=(),
1546
+ channel_credentials=None,
1547
+ call_credentials=None,
1548
+ insecure=False,
1549
+ compression=None,
1550
+ wait_for_ready=None,
1551
+ timeout=None,
1552
+ metadata=None):
1553
+ return grpc.experimental.unary_unary(
1554
+ request,
1555
+ target,
1556
+ '/coreApi.Runs/Count',
1557
+ core__api__pb2.CountRunsRequest.SerializeToString,
1558
+ core__api__pb2.CountResponse.FromString,
1559
+ options,
1560
+ channel_credentials,
1561
+ insecure,
1562
+ call_credentials,
1563
+ compression,
1564
+ wait_for_ready,
1565
+ timeout,
1566
+ metadata,
1567
+ _registered_method=True)
1568
+
1569
+ @staticmethod
1570
+ def Next(request,
1571
+ target,
1572
+ options=(),
1573
+ channel_credentials=None,
1574
+ call_credentials=None,
1575
+ insecure=False,
1576
+ compression=None,
1577
+ wait_for_ready=None,
1578
+ timeout=None,
1579
+ metadata=None):
1580
+ return grpc.experimental.unary_unary(
1581
+ request,
1582
+ target,
1583
+ '/coreApi.Runs/Next',
1584
+ core__api__pb2.NextRunRequest.SerializeToString,
1585
+ core__api__pb2.NextRunResponse.FromString,
1586
+ options,
1587
+ channel_credentials,
1588
+ insecure,
1589
+ call_credentials,
1590
+ compression,
1591
+ wait_for_ready,
1592
+ timeout,
1593
+ metadata,
1594
+ _registered_method=True)
1595
+
1596
+ @staticmethod
1597
+ def Sweep(request,
1598
+ target,
1599
+ options=(),
1600
+ channel_credentials=None,
1601
+ call_credentials=None,
1602
+ insecure=False,
1603
+ compression=None,
1604
+ wait_for_ready=None,
1605
+ timeout=None,
1606
+ metadata=None):
1607
+ return grpc.experimental.unary_unary(
1608
+ request,
1609
+ target,
1610
+ '/coreApi.Runs/Sweep',
1611
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1612
+ core__api__pb2.SweepRunsResponse.FromString,
1613
+ options,
1614
+ channel_credentials,
1615
+ insecure,
1616
+ call_credentials,
1617
+ compression,
1618
+ wait_for_ready,
1619
+ timeout,
1620
+ metadata,
1621
+ _registered_method=True)