nominal-api-protos 0.967.1__py3-none-any.whl → 0.985.0__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 nominal-api-protos might be problematic. Click here for more details.
- nominal_api_protos/nominal/ai/v1/ai_agent_pb2.py +121 -0
- nominal_api_protos/nominal/ai/v1/ai_agent_pb2.pyi +345 -0
- nominal_api_protos/nominal/ai/v1/ai_agent_pb2_grpc.py +321 -0
- nominal_api_protos/nominal/ai/v1/ai_features_pb2.py +40 -0
- nominal_api_protos/nominal/ai/v1/ai_features_pb2.pyi +15 -0
- nominal_api_protos/nominal/ai/v1/ai_features_pb2_grpc.py +101 -0
- nominal_api_protos/nominal/ai/v1/workbook_agent_pb2.py +8 -57
- nominal_api_protos/nominal/ai/v1/workbook_agent_pb2.pyi +15 -214
- nominal_api_protos/nominal/ai/v1/workbook_agent_pb2_grpc.py +230 -6
- nominal_api_protos/nominal/data_connector/v1/data_connector_pb2.py +137 -0
- nominal_api_protos/nominal/data_connector/v1/data_connector_pb2.pyi +222 -0
- nominal_api_protos/nominal/data_connector/v1/data_connector_pb2_grpc.py +368 -0
- nominal_api_protos/nominal/data_connector/v1/opc_ua_connector_pb2.py +117 -0
- nominal_api_protos/nominal/data_connector/v1/opc_ua_connector_pb2.pyi +282 -0
- nominal_api_protos/nominal/data_connector/v1/opc_ua_connector_pb2_grpc.py +24 -0
- nominal_api_protos/nominal/direct_channel_writer/v2/direct_nominal_channel_writer_pb2.py +25 -23
- nominal_api_protos/nominal/direct_channel_writer/v2/direct_nominal_channel_writer_pb2.pyi +10 -2
- nominal_api_protos/nominal/procedures/executions/v1/procedure_executions_pb2.py +92 -82
- nominal_api_protos/nominal/procedures/executions/v1/procedure_executions_pb2.pyi +34 -4
- nominal_api_protos/nominal/procedures/v1/procedures_pb2.py +228 -208
- nominal_api_protos/nominal/procedures/v1/procedures_pb2.pyi +54 -8
- nominal_api_protos/nominal/streaming_connection_service/v1/opc_ua_pb2.py +12 -12
- nominal_api_protos/nominal/streaming_connection_service/v1/opc_ua_pb2.pyi +0 -2
- nominal_api_protos/nominal_write_pb2.py +24 -14
- nominal_api_protos/nominal_write_pb2.pyi +40 -2
- {nominal_api_protos-0.967.1.dist-info → nominal_api_protos-0.985.0.dist-info}/METADATA +3 -1
- {nominal_api_protos-0.967.1.dist-info → nominal_api_protos-0.985.0.dist-info}/RECORD +29 -17
- {nominal_api_protos-0.967.1.dist-info → nominal_api_protos-0.985.0.dist-info}/WHEEL +0 -0
- {nominal_api_protos-0.967.1.dist-info → nominal_api_protos-0.985.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,321 @@
|
|
|
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 nominal.ai.v1 import ai_agent_pb2 as nominal_dot_ai_dot_v1_dot_ai__agent__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in nominal/ai/v1/ai_agent_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AIAgentServiceStub(object):
|
|
29
|
+
"""AIAgentService provides AI-powered assistance for general operations
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.StreamChat = channel.unary_stream(
|
|
39
|
+
'/nominal.ai.v1.AIAgentService/StreamChat',
|
|
40
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatRequest.SerializeToString,
|
|
41
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
self.GetConversation = channel.unary_unary(
|
|
44
|
+
'/nominal.ai.v1.AIAgentService/GetConversation',
|
|
45
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.SerializeToString,
|
|
46
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.FromString,
|
|
47
|
+
_registered_method=True)
|
|
48
|
+
self.ListConversations = channel.unary_unary(
|
|
49
|
+
'/nominal.ai.v1.AIAgentService/ListConversations',
|
|
50
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.SerializeToString,
|
|
51
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.FromString,
|
|
52
|
+
_registered_method=True)
|
|
53
|
+
self.CreateConversation = channel.unary_unary(
|
|
54
|
+
'/nominal.ai.v1.AIAgentService/CreateConversation',
|
|
55
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.SerializeToString,
|
|
56
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.FromString,
|
|
57
|
+
_registered_method=True)
|
|
58
|
+
self.UpdateConversationMetadata = channel.unary_unary(
|
|
59
|
+
'/nominal.ai.v1.AIAgentService/UpdateConversationMetadata',
|
|
60
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.SerializeToString,
|
|
61
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.FromString,
|
|
62
|
+
_registered_method=True)
|
|
63
|
+
self.DeleteConversation = channel.unary_unary(
|
|
64
|
+
'/nominal.ai.v1.AIAgentService/DeleteConversation',
|
|
65
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.SerializeToString,
|
|
66
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.FromString,
|
|
67
|
+
_registered_method=True)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class AIAgentServiceServicer(object):
|
|
71
|
+
"""AIAgentService provides AI-powered assistance for general operations
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
def StreamChat(self, request, context):
|
|
75
|
+
"""StreamChat handles bidirectional streaming chat for AI agent
|
|
76
|
+
"""
|
|
77
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
78
|
+
context.set_details('Method not implemented!')
|
|
79
|
+
raise NotImplementedError('Method not implemented!')
|
|
80
|
+
|
|
81
|
+
def GetConversation(self, request, context):
|
|
82
|
+
"""GetConversation handles getting a complete conversation list, with an optional limit on number of messages returned
|
|
83
|
+
"""
|
|
84
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
85
|
+
context.set_details('Method not implemented!')
|
|
86
|
+
raise NotImplementedError('Method not implemented!')
|
|
87
|
+
|
|
88
|
+
def ListConversations(self, request, context):
|
|
89
|
+
"""ListConversations handles getting the list of conversation ids ordered by most recently updated
|
|
90
|
+
"""
|
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
92
|
+
context.set_details('Method not implemented!')
|
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
|
94
|
+
|
|
95
|
+
def CreateConversation(self, request, context):
|
|
96
|
+
"""CreateConversation handles creating a conversation and assigning it a conversation rid
|
|
97
|
+
"""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details('Method not implemented!')
|
|
100
|
+
raise NotImplementedError('Method not implemented!')
|
|
101
|
+
|
|
102
|
+
def UpdateConversationMetadata(self, request, context):
|
|
103
|
+
"""UpdateConversationMetadata handles updating any metadata associated with a conversation
|
|
104
|
+
"""
|
|
105
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
106
|
+
context.set_details('Method not implemented!')
|
|
107
|
+
raise NotImplementedError('Method not implemented!')
|
|
108
|
+
|
|
109
|
+
def DeleteConversation(self, request, context):
|
|
110
|
+
"""DeleteConversation handles deleting a specific conversation by conversation rid
|
|
111
|
+
"""
|
|
112
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
113
|
+
context.set_details('Method not implemented!')
|
|
114
|
+
raise NotImplementedError('Method not implemented!')
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def add_AIAgentServiceServicer_to_server(servicer, server):
|
|
118
|
+
rpc_method_handlers = {
|
|
119
|
+
'StreamChat': grpc.unary_stream_rpc_method_handler(
|
|
120
|
+
servicer.StreamChat,
|
|
121
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatRequest.FromString,
|
|
122
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.SerializeToString,
|
|
123
|
+
),
|
|
124
|
+
'GetConversation': grpc.unary_unary_rpc_method_handler(
|
|
125
|
+
servicer.GetConversation,
|
|
126
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.FromString,
|
|
127
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.SerializeToString,
|
|
128
|
+
),
|
|
129
|
+
'ListConversations': grpc.unary_unary_rpc_method_handler(
|
|
130
|
+
servicer.ListConversations,
|
|
131
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.FromString,
|
|
132
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.SerializeToString,
|
|
133
|
+
),
|
|
134
|
+
'CreateConversation': grpc.unary_unary_rpc_method_handler(
|
|
135
|
+
servicer.CreateConversation,
|
|
136
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.FromString,
|
|
137
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.SerializeToString,
|
|
138
|
+
),
|
|
139
|
+
'UpdateConversationMetadata': grpc.unary_unary_rpc_method_handler(
|
|
140
|
+
servicer.UpdateConversationMetadata,
|
|
141
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.FromString,
|
|
142
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.SerializeToString,
|
|
143
|
+
),
|
|
144
|
+
'DeleteConversation': grpc.unary_unary_rpc_method_handler(
|
|
145
|
+
servicer.DeleteConversation,
|
|
146
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.FromString,
|
|
147
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.SerializeToString,
|
|
148
|
+
),
|
|
149
|
+
}
|
|
150
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
151
|
+
'nominal.ai.v1.AIAgentService', rpc_method_handlers)
|
|
152
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
153
|
+
server.add_registered_method_handlers('nominal.ai.v1.AIAgentService', rpc_method_handlers)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# This class is part of an EXPERIMENTAL API.
|
|
157
|
+
class AIAgentService(object):
|
|
158
|
+
"""AIAgentService provides AI-powered assistance for general operations
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def StreamChat(request,
|
|
163
|
+
target,
|
|
164
|
+
options=(),
|
|
165
|
+
channel_credentials=None,
|
|
166
|
+
call_credentials=None,
|
|
167
|
+
insecure=False,
|
|
168
|
+
compression=None,
|
|
169
|
+
wait_for_ready=None,
|
|
170
|
+
timeout=None,
|
|
171
|
+
metadata=None):
|
|
172
|
+
return grpc.experimental.unary_stream(
|
|
173
|
+
request,
|
|
174
|
+
target,
|
|
175
|
+
'/nominal.ai.v1.AIAgentService/StreamChat',
|
|
176
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatRequest.SerializeToString,
|
|
177
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.FromString,
|
|
178
|
+
options,
|
|
179
|
+
channel_credentials,
|
|
180
|
+
insecure,
|
|
181
|
+
call_credentials,
|
|
182
|
+
compression,
|
|
183
|
+
wait_for_ready,
|
|
184
|
+
timeout,
|
|
185
|
+
metadata,
|
|
186
|
+
_registered_method=True)
|
|
187
|
+
|
|
188
|
+
@staticmethod
|
|
189
|
+
def GetConversation(request,
|
|
190
|
+
target,
|
|
191
|
+
options=(),
|
|
192
|
+
channel_credentials=None,
|
|
193
|
+
call_credentials=None,
|
|
194
|
+
insecure=False,
|
|
195
|
+
compression=None,
|
|
196
|
+
wait_for_ready=None,
|
|
197
|
+
timeout=None,
|
|
198
|
+
metadata=None):
|
|
199
|
+
return grpc.experimental.unary_unary(
|
|
200
|
+
request,
|
|
201
|
+
target,
|
|
202
|
+
'/nominal.ai.v1.AIAgentService/GetConversation',
|
|
203
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.SerializeToString,
|
|
204
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.FromString,
|
|
205
|
+
options,
|
|
206
|
+
channel_credentials,
|
|
207
|
+
insecure,
|
|
208
|
+
call_credentials,
|
|
209
|
+
compression,
|
|
210
|
+
wait_for_ready,
|
|
211
|
+
timeout,
|
|
212
|
+
metadata,
|
|
213
|
+
_registered_method=True)
|
|
214
|
+
|
|
215
|
+
@staticmethod
|
|
216
|
+
def ListConversations(request,
|
|
217
|
+
target,
|
|
218
|
+
options=(),
|
|
219
|
+
channel_credentials=None,
|
|
220
|
+
call_credentials=None,
|
|
221
|
+
insecure=False,
|
|
222
|
+
compression=None,
|
|
223
|
+
wait_for_ready=None,
|
|
224
|
+
timeout=None,
|
|
225
|
+
metadata=None):
|
|
226
|
+
return grpc.experimental.unary_unary(
|
|
227
|
+
request,
|
|
228
|
+
target,
|
|
229
|
+
'/nominal.ai.v1.AIAgentService/ListConversations',
|
|
230
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.SerializeToString,
|
|
231
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.FromString,
|
|
232
|
+
options,
|
|
233
|
+
channel_credentials,
|
|
234
|
+
insecure,
|
|
235
|
+
call_credentials,
|
|
236
|
+
compression,
|
|
237
|
+
wait_for_ready,
|
|
238
|
+
timeout,
|
|
239
|
+
metadata,
|
|
240
|
+
_registered_method=True)
|
|
241
|
+
|
|
242
|
+
@staticmethod
|
|
243
|
+
def CreateConversation(request,
|
|
244
|
+
target,
|
|
245
|
+
options=(),
|
|
246
|
+
channel_credentials=None,
|
|
247
|
+
call_credentials=None,
|
|
248
|
+
insecure=False,
|
|
249
|
+
compression=None,
|
|
250
|
+
wait_for_ready=None,
|
|
251
|
+
timeout=None,
|
|
252
|
+
metadata=None):
|
|
253
|
+
return grpc.experimental.unary_unary(
|
|
254
|
+
request,
|
|
255
|
+
target,
|
|
256
|
+
'/nominal.ai.v1.AIAgentService/CreateConversation',
|
|
257
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.SerializeToString,
|
|
258
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.FromString,
|
|
259
|
+
options,
|
|
260
|
+
channel_credentials,
|
|
261
|
+
insecure,
|
|
262
|
+
call_credentials,
|
|
263
|
+
compression,
|
|
264
|
+
wait_for_ready,
|
|
265
|
+
timeout,
|
|
266
|
+
metadata,
|
|
267
|
+
_registered_method=True)
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def UpdateConversationMetadata(request,
|
|
271
|
+
target,
|
|
272
|
+
options=(),
|
|
273
|
+
channel_credentials=None,
|
|
274
|
+
call_credentials=None,
|
|
275
|
+
insecure=False,
|
|
276
|
+
compression=None,
|
|
277
|
+
wait_for_ready=None,
|
|
278
|
+
timeout=None,
|
|
279
|
+
metadata=None):
|
|
280
|
+
return grpc.experimental.unary_unary(
|
|
281
|
+
request,
|
|
282
|
+
target,
|
|
283
|
+
'/nominal.ai.v1.AIAgentService/UpdateConversationMetadata',
|
|
284
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.SerializeToString,
|
|
285
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.FromString,
|
|
286
|
+
options,
|
|
287
|
+
channel_credentials,
|
|
288
|
+
insecure,
|
|
289
|
+
call_credentials,
|
|
290
|
+
compression,
|
|
291
|
+
wait_for_ready,
|
|
292
|
+
timeout,
|
|
293
|
+
metadata,
|
|
294
|
+
_registered_method=True)
|
|
295
|
+
|
|
296
|
+
@staticmethod
|
|
297
|
+
def DeleteConversation(request,
|
|
298
|
+
target,
|
|
299
|
+
options=(),
|
|
300
|
+
channel_credentials=None,
|
|
301
|
+
call_credentials=None,
|
|
302
|
+
insecure=False,
|
|
303
|
+
compression=None,
|
|
304
|
+
wait_for_ready=None,
|
|
305
|
+
timeout=None,
|
|
306
|
+
metadata=None):
|
|
307
|
+
return grpc.experimental.unary_unary(
|
|
308
|
+
request,
|
|
309
|
+
target,
|
|
310
|
+
'/nominal.ai.v1.AIAgentService/DeleteConversation',
|
|
311
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.SerializeToString,
|
|
312
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.FromString,
|
|
313
|
+
options,
|
|
314
|
+
channel_credentials,
|
|
315
|
+
insecure,
|
|
316
|
+
call_credentials,
|
|
317
|
+
compression,
|
|
318
|
+
wait_for_ready,
|
|
319
|
+
timeout,
|
|
320
|
+
metadata,
|
|
321
|
+
_registered_method=True)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: nominal/ai/v1/ai_features.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
|
+
'nominal/ai/v1/ai_features.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnominal/ai/v1/ai_features.proto\x12\rnominal.ai.v1\"\x1b\n\x19IsAIEnabledForUserRequest\"0\n\x1aIsAIEnabledForUserResponse\x12\x12\n\nis_enabled\x18\x01 \x01(\x08\x32~\n\x11\x41IFeaturesService\x12i\n\x12IsAIEnabledForUser\x12(.nominal.ai.v1.IsAIEnabledForUserRequest\x1a).nominal.ai.v1.IsAIEnabledForUserResponseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nominal.ai.v1.ai_features_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_ISAIENABLEDFORUSERREQUEST']._serialized_start=50
|
|
35
|
+
_globals['_ISAIENABLEDFORUSERREQUEST']._serialized_end=77
|
|
36
|
+
_globals['_ISAIENABLEDFORUSERRESPONSE']._serialized_start=79
|
|
37
|
+
_globals['_ISAIENABLEDFORUSERRESPONSE']._serialized_end=127
|
|
38
|
+
_globals['_AIFEATURESSERVICE']._serialized_start=129
|
|
39
|
+
_globals['_AIFEATURESSERVICE']._serialized_end=255
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
|
2
|
+
from google.protobuf import message as _message
|
|
3
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
4
|
+
|
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
|
+
|
|
7
|
+
class IsAIEnabledForUserRequest(_message.Message):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
def __init__(self) -> None: ...
|
|
10
|
+
|
|
11
|
+
class IsAIEnabledForUserResponse(_message.Message):
|
|
12
|
+
__slots__ = ("is_enabled",)
|
|
13
|
+
IS_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
is_enabled: bool
|
|
15
|
+
def __init__(self, is_enabled: bool = ...) -> None: ...
|
|
@@ -0,0 +1,101 @@
|
|
|
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 nominal.ai.v1 import ai_features_pb2 as nominal_dot_ai_dot_v1_dot_ai__features__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in nominal/ai/v1/ai_features_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AIFeaturesServiceStub(object):
|
|
29
|
+
"""AIFeaturesService provides information about enabled AI features
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.IsAIEnabledForUser = channel.unary_unary(
|
|
39
|
+
'/nominal.ai.v1.AIFeaturesService/IsAIEnabledForUser',
|
|
40
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserRequest.SerializeToString,
|
|
41
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class AIFeaturesServiceServicer(object):
|
|
46
|
+
"""AIFeaturesService provides information about enabled AI features
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def IsAIEnabledForUser(self, request, context):
|
|
50
|
+
"""IsAIEnabledForUser can be used to check if AI is enabled for a specific user
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def add_AIFeaturesServiceServicer_to_server(servicer, server):
|
|
58
|
+
rpc_method_handlers = {
|
|
59
|
+
'IsAIEnabledForUser': grpc.unary_unary_rpc_method_handler(
|
|
60
|
+
servicer.IsAIEnabledForUser,
|
|
61
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserRequest.FromString,
|
|
62
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserResponse.SerializeToString,
|
|
63
|
+
),
|
|
64
|
+
}
|
|
65
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
+
'nominal.ai.v1.AIFeaturesService', rpc_method_handlers)
|
|
67
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
|
+
server.add_registered_method_handlers('nominal.ai.v1.AIFeaturesService', rpc_method_handlers)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# This class is part of an EXPERIMENTAL API.
|
|
72
|
+
class AIFeaturesService(object):
|
|
73
|
+
"""AIFeaturesService provides information about enabled AI features
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
@staticmethod
|
|
77
|
+
def IsAIEnabledForUser(request,
|
|
78
|
+
target,
|
|
79
|
+
options=(),
|
|
80
|
+
channel_credentials=None,
|
|
81
|
+
call_credentials=None,
|
|
82
|
+
insecure=False,
|
|
83
|
+
compression=None,
|
|
84
|
+
wait_for_ready=None,
|
|
85
|
+
timeout=None,
|
|
86
|
+
metadata=None):
|
|
87
|
+
return grpc.experimental.unary_unary(
|
|
88
|
+
request,
|
|
89
|
+
target,
|
|
90
|
+
'/nominal.ai.v1.AIFeaturesService/IsAIEnabledForUser',
|
|
91
|
+
nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserRequest.SerializeToString,
|
|
92
|
+
nominal_dot_ai_dot_v1_dot_ai__features__pb2.IsAIEnabledForUserResponse.FromString,
|
|
93
|
+
options,
|
|
94
|
+
channel_credentials,
|
|
95
|
+
insecure,
|
|
96
|
+
call_credentials,
|
|
97
|
+
compression,
|
|
98
|
+
wait_for_ready,
|
|
99
|
+
timeout,
|
|
100
|
+
metadata,
|
|
101
|
+
_registered_method=True)
|
|
@@ -22,69 +22,20 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
from nominal.ai.v1 import ai_agent_pb2 as nominal_dot_ai_dot_v1_dot_ai__agent__pb2
|
|
25
26
|
|
|
26
27
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"nominal/ai/v1/workbook_agent.proto\x12\rnominal.ai.v1\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"nominal/ai/v1/workbook_agent.proto\x12\rnominal.ai.v1\x1a\x1cnominal/ai/v1/ai_agent.proto\"\xd5\x02\n%WorkbookAgentServiceStreamChatRequest\x12-\n\x08messages\x18\x01 \x03(\x0b\x32\x1b.nominal.ai.v1.ModelMessage\x12\x1d\n\x10notebook_as_json\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12selected_tab_index\x18\x03 \x01(\x05H\x01\x88\x01\x01\x12(\n\x06images\x18\x04 \x03(\x0b\x32\x18.nominal.ai.v1.ImagePart\x12\'\n\x05range\x18\x05 \x01(\x0b\x32\x18.nominal.ai.v1.TimeRange\x12\x32\n\x07message\x18\x06 \x01(\x0b\x32\x1c.nominal.ai.v1.AppendMessageH\x02\x88\x01\x01\x42\x13\n\x11_notebook_as_jsonB\x15\n\x13_selected_tab_indexB\n\n\x08_message\"[\n\rAppendMessage\x12\x30\n\x07message\x18\x01 \x01(\x0b\x32\x1f.nominal.ai.v1.UserModelMessage\x12\x18\n\x10\x63onversation_rid\x18\x02 \x01(\t2\xa3\x05\n\x14WorkbookAgentService\x12g\n\nStreamChat\x12\x34.nominal.ai.v1.WorkbookAgentServiceStreamChatRequest\x1a!.nominal.ai.v1.StreamChatResponse0\x01\x12`\n\x0fGetConversation\x12%.nominal.ai.v1.GetConversationRequest\x1a&.nominal.ai.v1.GetConversationResponse\x12\x66\n\x11ListConversations\x12\'.nominal.ai.v1.ListConversationsRequest\x1a(.nominal.ai.v1.ListConversationsResponse\x12i\n\x12\x43reateConversation\x12(.nominal.ai.v1.CreateConversationRequest\x1a).nominal.ai.v1.CreateConversationResponse\x12\x81\x01\n\x1aUpdateConversationMetadata\x12\x30.nominal.ai.v1.UpdateConversationMetadataRequest\x1a\x31.nominal.ai.v1.UpdateConversationMetadataResponse\x12i\n\x12\x44\x65leteConversation\x12(.nominal.ai.v1.DeleteConversationRequest\x1a).nominal.ai.v1.DeleteConversationResponseb\x06proto3')
|
|
28
29
|
|
|
29
30
|
_globals = globals()
|
|
30
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
32
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nominal.ai.v1.workbook_agent_pb2', _globals)
|
|
32
33
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
34
|
DESCRIPTOR._loaded_options = None
|
|
34
|
-
_globals['
|
|
35
|
-
_globals['
|
|
36
|
-
_globals['
|
|
37
|
-
_globals['
|
|
38
|
-
_globals['
|
|
39
|
-
_globals['
|
|
40
|
-
_globals['_MODELMESSAGE']._serialized_start=470
|
|
41
|
-
_globals['_MODELMESSAGE']._serialized_end=600
|
|
42
|
-
_globals['_USERMODELMESSAGE']._serialized_start=602
|
|
43
|
-
_globals['_USERMODELMESSAGE']._serialized_end=666
|
|
44
|
-
_globals['_ASSISTANTMODELMESSAGE']._serialized_start=668
|
|
45
|
-
_globals['_ASSISTANTMODELMESSAGE']._serialized_end=751
|
|
46
|
-
_globals['_USERCONTENTPART']._serialized_start=753
|
|
47
|
-
_globals['_USERCONTENTPART']._serialized_end=819
|
|
48
|
-
_globals['_ASSISTANTCONTENTPART']._serialized_start=821
|
|
49
|
-
_globals['_ASSISTANTCONTENTPART']._serialized_end=943
|
|
50
|
-
_globals['_TEXTPART']._serialized_start=945
|
|
51
|
-
_globals['_TEXTPART']._serialized_end=969
|
|
52
|
-
_globals['_IMAGEPART']._serialized_start=971
|
|
53
|
-
_globals['_IMAGEPART']._serialized_end=1072
|
|
54
|
-
_globals['_REASONINGPART']._serialized_start=1074
|
|
55
|
-
_globals['_REASONINGPART']._serialized_end=1108
|
|
56
|
-
_globals['_STREAMCHATRESPONSE']._serialized_start=1111
|
|
57
|
-
_globals['_STREAMCHATRESPONSE']._serialized_end=1645
|
|
58
|
-
_globals['_FINISH']._serialized_start=1647
|
|
59
|
-
_globals['_FINISH']._serialized_end=1655
|
|
60
|
-
_globals['_ERROR']._serialized_start=1657
|
|
61
|
-
_globals['_ERROR']._serialized_end=1681
|
|
62
|
-
_globals['_TEXTSTART']._serialized_start=1683
|
|
63
|
-
_globals['_TEXTSTART']._serialized_end=1706
|
|
64
|
-
_globals['_TEXTDELTA']._serialized_start=1708
|
|
65
|
-
_globals['_TEXTDELTA']._serialized_end=1746
|
|
66
|
-
_globals['_TEXTEND']._serialized_start=1748
|
|
67
|
-
_globals['_TEXTEND']._serialized_end=1769
|
|
68
|
-
_globals['_REASONINGSTART']._serialized_start=1771
|
|
69
|
-
_globals['_REASONINGSTART']._serialized_end=1799
|
|
70
|
-
_globals['_REASONINGDELTA']._serialized_start=1801
|
|
71
|
-
_globals['_REASONINGDELTA']._serialized_end=1844
|
|
72
|
-
_globals['_REASONINGEND']._serialized_start=1846
|
|
73
|
-
_globals['_REASONINGEND']._serialized_end=1872
|
|
74
|
-
_globals['_ADDTABMUTATION']._serialized_start=1874
|
|
75
|
-
_globals['_ADDTABMUTATION']._serialized_end=1926
|
|
76
|
-
_globals['_ADDORUPDATEPANELMUTATION']._serialized_start=1928
|
|
77
|
-
_globals['_ADDORUPDATEPANELMUTATION']._serialized_end=2014
|
|
78
|
-
_globals['_REMOVEPANELSMUTATION']._serialized_start=2016
|
|
79
|
-
_globals['_REMOVEPANELSMUTATION']._serialized_end=2057
|
|
80
|
-
_globals['_ADDORREPLACEVARIABLEMUTATION']._serialized_start=2060
|
|
81
|
-
_globals['_ADDORREPLACEVARIABLEMUTATION']._serialized_end=2210
|
|
82
|
-
_globals['_DELETEVARIABLESMUTATION']._serialized_start=2212
|
|
83
|
-
_globals['_DELETEVARIABLESMUTATION']._serialized_end=2261
|
|
84
|
-
_globals['_WORKBOOKMUTATION']._serialized_start=2264
|
|
85
|
-
_globals['_WORKBOOKMUTATION']._serialized_end=2638
|
|
86
|
-
_globals['_TOOLACTION']._serialized_start=2640
|
|
87
|
-
_globals['_TOOLACTION']._serialized_end=2732
|
|
88
|
-
_globals['_WORKBOOKAGENTSERVICE']._serialized_start=2734
|
|
89
|
-
_globals['_WORKBOOKAGENTSERVICE']._serialized_end=2841
|
|
35
|
+
_globals['_WORKBOOKAGENTSERVICESTREAMCHATREQUEST']._serialized_start=84
|
|
36
|
+
_globals['_WORKBOOKAGENTSERVICESTREAMCHATREQUEST']._serialized_end=425
|
|
37
|
+
_globals['_APPENDMESSAGE']._serialized_start=427
|
|
38
|
+
_globals['_APPENDMESSAGE']._serialized_end=518
|
|
39
|
+
_globals['_WORKBOOKAGENTSERVICE']._serialized_start=521
|
|
40
|
+
_globals['_WORKBOOKAGENTSERVICE']._serialized_end=1196
|
|
90
41
|
# @@protoc_insertion_point(module_scope)
|