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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from nominal.ai.v1 import ai_agent_pb2 as _ai_agent_pb2
|
|
1
2
|
from google.protobuf.internal import containers as _containers
|
|
2
3
|
from google.protobuf import descriptor as _descriptor
|
|
3
4
|
from google.protobuf import message as _message
|
|
@@ -6,226 +7,26 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
6
7
|
|
|
7
8
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
-
__slots__ = ("messages", "notebook_as_json", "selected_tab_index", "images", "range")
|
|
10
|
+
class WorkbookAgentServiceStreamChatRequest(_message.Message):
|
|
11
|
+
__slots__ = ("messages", "notebook_as_json", "selected_tab_index", "images", "range", "message")
|
|
11
12
|
MESSAGES_FIELD_NUMBER: _ClassVar[int]
|
|
12
13
|
NOTEBOOK_AS_JSON_FIELD_NUMBER: _ClassVar[int]
|
|
13
14
|
SELECTED_TAB_INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
14
15
|
IMAGES_FIELD_NUMBER: _ClassVar[int]
|
|
15
16
|
RANGE_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
-
|
|
17
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
messages: _containers.RepeatedCompositeFieldContainer[_ai_agent_pb2.ModelMessage]
|
|
17
19
|
notebook_as_json: str
|
|
18
20
|
selected_tab_index: int
|
|
19
|
-
images: _containers.RepeatedCompositeFieldContainer[ImagePart]
|
|
20
|
-
range: TimeRange
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class TimeRange(_message.Message):
|
|
24
|
-
__slots__ = ("range_start", "range_end")
|
|
25
|
-
RANGE_START_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
-
RANGE_END_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
range_start: Timestamp
|
|
28
|
-
range_end: Timestamp
|
|
29
|
-
def __init__(self, range_start: _Optional[_Union[Timestamp, _Mapping]] = ..., range_end: _Optional[_Union[Timestamp, _Mapping]] = ...) -> None: ...
|
|
30
|
-
|
|
31
|
-
class Timestamp(_message.Message):
|
|
32
|
-
__slots__ = ("seconds", "nanoseconds")
|
|
33
|
-
SECONDS_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
-
NANOSECONDS_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
-
seconds: int
|
|
36
|
-
nanoseconds: int
|
|
37
|
-
def __init__(self, seconds: _Optional[int] = ..., nanoseconds: _Optional[int] = ...) -> None: ...
|
|
38
|
-
|
|
39
|
-
class ModelMessage(_message.Message):
|
|
40
|
-
__slots__ = ("user", "assistant")
|
|
41
|
-
USER_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
-
ASSISTANT_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
-
user: UserModelMessage
|
|
44
|
-
assistant: AssistantModelMessage
|
|
45
|
-
def __init__(self, user: _Optional[_Union[UserModelMessage, _Mapping]] = ..., assistant: _Optional[_Union[AssistantModelMessage, _Mapping]] = ...) -> None: ...
|
|
46
|
-
|
|
47
|
-
class UserModelMessage(_message.Message):
|
|
48
|
-
__slots__ = ("text",)
|
|
49
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
-
text: _containers.RepeatedCompositeFieldContainer[UserContentPart]
|
|
51
|
-
def __init__(self, text: _Optional[_Iterable[_Union[UserContentPart, _Mapping]]] = ...) -> None: ...
|
|
52
|
-
|
|
53
|
-
class AssistantModelMessage(_message.Message):
|
|
54
|
-
__slots__ = ("content_parts",)
|
|
55
|
-
CONTENT_PARTS_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
-
content_parts: _containers.RepeatedCompositeFieldContainer[AssistantContentPart]
|
|
57
|
-
def __init__(self, content_parts: _Optional[_Iterable[_Union[AssistantContentPart, _Mapping]]] = ...) -> None: ...
|
|
58
|
-
|
|
59
|
-
class UserContentPart(_message.Message):
|
|
60
|
-
__slots__ = ("text",)
|
|
61
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
-
text: TextPart
|
|
63
|
-
def __init__(self, text: _Optional[_Union[TextPart, _Mapping]] = ...) -> None: ...
|
|
64
|
-
|
|
65
|
-
class AssistantContentPart(_message.Message):
|
|
66
|
-
__slots__ = ("text", "reasoning")
|
|
67
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
-
REASONING_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
-
text: TextPart
|
|
70
|
-
reasoning: ReasoningPart
|
|
71
|
-
def __init__(self, text: _Optional[_Union[TextPart, _Mapping]] = ..., reasoning: _Optional[_Union[ReasoningPart, _Mapping]] = ...) -> None: ...
|
|
72
|
-
|
|
73
|
-
class TextPart(_message.Message):
|
|
74
|
-
__slots__ = ("text",)
|
|
75
|
-
TEXT_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
-
text: str
|
|
77
|
-
def __init__(self, text: _Optional[str] = ...) -> None: ...
|
|
78
|
-
|
|
79
|
-
class ImagePart(_message.Message):
|
|
80
|
-
__slots__ = ("data", "media_type", "filename")
|
|
81
|
-
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
82
|
-
MEDIA_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
83
|
-
FILENAME_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
-
data: bytes
|
|
85
|
-
media_type: str
|
|
86
|
-
filename: str
|
|
87
|
-
def __init__(self, data: _Optional[bytes] = ..., media_type: _Optional[str] = ..., filename: _Optional[str] = ...) -> None: ...
|
|
88
|
-
|
|
89
|
-
class ReasoningPart(_message.Message):
|
|
90
|
-
__slots__ = ("reasoning",)
|
|
91
|
-
REASONING_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
-
reasoning: str
|
|
93
|
-
def __init__(self, reasoning: _Optional[str] = ...) -> None: ...
|
|
94
|
-
|
|
95
|
-
class StreamChatResponse(_message.Message):
|
|
96
|
-
__slots__ = ("finish", "error", "text_start", "text_delta", "text_end", "reasoning_start", "reasoning_delta", "reasoning_end", "workbook_mutation", "tool_action")
|
|
97
|
-
FINISH_FIELD_NUMBER: _ClassVar[int]
|
|
98
|
-
ERROR_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
-
TEXT_START_FIELD_NUMBER: _ClassVar[int]
|
|
100
|
-
TEXT_DELTA_FIELD_NUMBER: _ClassVar[int]
|
|
101
|
-
TEXT_END_FIELD_NUMBER: _ClassVar[int]
|
|
102
|
-
REASONING_START_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
-
REASONING_DELTA_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
-
REASONING_END_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
-
WORKBOOK_MUTATION_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
-
TOOL_ACTION_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
-
finish: Finish
|
|
108
|
-
error: Error
|
|
109
|
-
text_start: TextStart
|
|
110
|
-
text_delta: TextDelta
|
|
111
|
-
text_end: TextEnd
|
|
112
|
-
reasoning_start: ReasoningStart
|
|
113
|
-
reasoning_delta: ReasoningDelta
|
|
114
|
-
reasoning_end: ReasoningEnd
|
|
115
|
-
workbook_mutation: WorkbookMutation
|
|
116
|
-
tool_action: ToolAction
|
|
117
|
-
def __init__(self, finish: _Optional[_Union[Finish, _Mapping]] = ..., error: _Optional[_Union[Error, _Mapping]] = ..., text_start: _Optional[_Union[TextStart, _Mapping]] = ..., text_delta: _Optional[_Union[TextDelta, _Mapping]] = ..., text_end: _Optional[_Union[TextEnd, _Mapping]] = ..., reasoning_start: _Optional[_Union[ReasoningStart, _Mapping]] = ..., reasoning_delta: _Optional[_Union[ReasoningDelta, _Mapping]] = ..., reasoning_end: _Optional[_Union[ReasoningEnd, _Mapping]] = ..., workbook_mutation: _Optional[_Union[WorkbookMutation, _Mapping]] = ..., tool_action: _Optional[_Union[ToolAction, _Mapping]] = ...) -> None: ...
|
|
118
|
-
|
|
119
|
-
class Finish(_message.Message):
|
|
120
|
-
__slots__ = ()
|
|
121
|
-
def __init__(self) -> None: ...
|
|
21
|
+
images: _containers.RepeatedCompositeFieldContainer[_ai_agent_pb2.ImagePart]
|
|
22
|
+
range: _ai_agent_pb2.TimeRange
|
|
23
|
+
message: AppendMessage
|
|
24
|
+
def __init__(self, messages: _Optional[_Iterable[_Union[_ai_agent_pb2.ModelMessage, _Mapping]]] = ..., notebook_as_json: _Optional[str] = ..., selected_tab_index: _Optional[int] = ..., images: _Optional[_Iterable[_Union[_ai_agent_pb2.ImagePart, _Mapping]]] = ..., range: _Optional[_Union[_ai_agent_pb2.TimeRange, _Mapping]] = ..., message: _Optional[_Union[AppendMessage, _Mapping]] = ...) -> None: ...
|
|
122
25
|
|
|
123
|
-
class
|
|
124
|
-
__slots__ = ("message",)
|
|
26
|
+
class AppendMessage(_message.Message):
|
|
27
|
+
__slots__ = ("message", "conversation_rid")
|
|
125
28
|
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
__slots__ = ("id",)
|
|
131
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
-
id: str
|
|
133
|
-
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
134
|
-
|
|
135
|
-
class TextDelta(_message.Message):
|
|
136
|
-
__slots__ = ("id", "delta")
|
|
137
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
-
DELTA_FIELD_NUMBER: _ClassVar[int]
|
|
139
|
-
id: str
|
|
140
|
-
delta: str
|
|
141
|
-
def __init__(self, id: _Optional[str] = ..., delta: _Optional[str] = ...) -> None: ...
|
|
142
|
-
|
|
143
|
-
class TextEnd(_message.Message):
|
|
144
|
-
__slots__ = ("id",)
|
|
145
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
146
|
-
id: str
|
|
147
|
-
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
148
|
-
|
|
149
|
-
class ReasoningStart(_message.Message):
|
|
150
|
-
__slots__ = ("id",)
|
|
151
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
-
id: str
|
|
153
|
-
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
154
|
-
|
|
155
|
-
class ReasoningDelta(_message.Message):
|
|
156
|
-
__slots__ = ("id", "delta")
|
|
157
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
158
|
-
DELTA_FIELD_NUMBER: _ClassVar[int]
|
|
159
|
-
id: str
|
|
160
|
-
delta: str
|
|
161
|
-
def __init__(self, id: _Optional[str] = ..., delta: _Optional[str] = ...) -> None: ...
|
|
162
|
-
|
|
163
|
-
class ReasoningEnd(_message.Message):
|
|
164
|
-
__slots__ = ("id",)
|
|
165
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
166
|
-
id: str
|
|
167
|
-
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
168
|
-
|
|
169
|
-
class AddTabMutation(_message.Message):
|
|
170
|
-
__slots__ = ("tab_name",)
|
|
171
|
-
TAB_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
172
|
-
tab_name: str
|
|
173
|
-
def __init__(self, tab_name: _Optional[str] = ...) -> None: ...
|
|
174
|
-
|
|
175
|
-
class AddOrUpdatePanelMutation(_message.Message):
|
|
176
|
-
__slots__ = ("panel_as_json", "panel_id", "tab_index")
|
|
177
|
-
PANEL_AS_JSON_FIELD_NUMBER: _ClassVar[int]
|
|
178
|
-
PANEL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
179
|
-
TAB_INDEX_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
-
panel_as_json: str
|
|
181
|
-
panel_id: str
|
|
182
|
-
tab_index: int
|
|
183
|
-
def __init__(self, panel_as_json: _Optional[str] = ..., panel_id: _Optional[str] = ..., tab_index: _Optional[int] = ...) -> None: ...
|
|
184
|
-
|
|
185
|
-
class RemovePanelsMutation(_message.Message):
|
|
186
|
-
__slots__ = ("panel_ids",)
|
|
187
|
-
PANEL_IDS_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
-
panel_ids: _containers.RepeatedScalarFieldContainer[str]
|
|
189
|
-
def __init__(self, panel_ids: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
190
|
-
|
|
191
|
-
class AddOrReplaceVariableMutation(_message.Message):
|
|
192
|
-
__slots__ = ("compute_spec_as_json", "variable_name", "display_name")
|
|
193
|
-
COMPUTE_SPEC_AS_JSON_FIELD_NUMBER: _ClassVar[int]
|
|
194
|
-
VARIABLE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
195
|
-
DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
196
|
-
compute_spec_as_json: str
|
|
197
|
-
variable_name: str
|
|
198
|
-
display_name: str
|
|
199
|
-
def __init__(self, compute_spec_as_json: _Optional[str] = ..., variable_name: _Optional[str] = ..., display_name: _Optional[str] = ...) -> None: ...
|
|
200
|
-
|
|
201
|
-
class DeleteVariablesMutation(_message.Message):
|
|
202
|
-
__slots__ = ("variable_names",)
|
|
203
|
-
VARIABLE_NAMES_FIELD_NUMBER: _ClassVar[int]
|
|
204
|
-
variable_names: _containers.RepeatedScalarFieldContainer[str]
|
|
205
|
-
def __init__(self, variable_names: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
206
|
-
|
|
207
|
-
class WorkbookMutation(_message.Message):
|
|
208
|
-
__slots__ = ("id", "add_tab", "add_or_update_panel", "remove_panels", "add_or_replace_variable", "delete_variables")
|
|
209
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
210
|
-
ADD_TAB_FIELD_NUMBER: _ClassVar[int]
|
|
211
|
-
ADD_OR_UPDATE_PANEL_FIELD_NUMBER: _ClassVar[int]
|
|
212
|
-
REMOVE_PANELS_FIELD_NUMBER: _ClassVar[int]
|
|
213
|
-
ADD_OR_REPLACE_VARIABLE_FIELD_NUMBER: _ClassVar[int]
|
|
214
|
-
DELETE_VARIABLES_FIELD_NUMBER: _ClassVar[int]
|
|
215
|
-
id: str
|
|
216
|
-
add_tab: AddTabMutation
|
|
217
|
-
add_or_update_panel: AddOrUpdatePanelMutation
|
|
218
|
-
remove_panels: RemovePanelsMutation
|
|
219
|
-
add_or_replace_variable: AddOrReplaceVariableMutation
|
|
220
|
-
delete_variables: DeleteVariablesMutation
|
|
221
|
-
def __init__(self, id: _Optional[str] = ..., add_tab: _Optional[_Union[AddTabMutation, _Mapping]] = ..., add_or_update_panel: _Optional[_Union[AddOrUpdatePanelMutation, _Mapping]] = ..., remove_panels: _Optional[_Union[RemovePanelsMutation, _Mapping]] = ..., add_or_replace_variable: _Optional[_Union[AddOrReplaceVariableMutation, _Mapping]] = ..., delete_variables: _Optional[_Union[DeleteVariablesMutation, _Mapping]] = ...) -> None: ...
|
|
222
|
-
|
|
223
|
-
class ToolAction(_message.Message):
|
|
224
|
-
__slots__ = ("id", "tool_action_verb", "tool_target")
|
|
225
|
-
ID_FIELD_NUMBER: _ClassVar[int]
|
|
226
|
-
TOOL_ACTION_VERB_FIELD_NUMBER: _ClassVar[int]
|
|
227
|
-
TOOL_TARGET_FIELD_NUMBER: _ClassVar[int]
|
|
228
|
-
id: str
|
|
229
|
-
tool_action_verb: str
|
|
230
|
-
tool_target: str
|
|
231
|
-
def __init__(self, id: _Optional[str] = ..., tool_action_verb: _Optional[str] = ..., tool_target: _Optional[str] = ...) -> None: ...
|
|
29
|
+
CONVERSATION_RID_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
message: _ai_agent_pb2.UserModelMessage
|
|
31
|
+
conversation_rid: str
|
|
32
|
+
def __init__(self, message: _Optional[_Union[_ai_agent_pb2.UserModelMessage, _Mapping]] = ..., conversation_rid: _Optional[str] = ...) -> None: ...
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import grpc
|
|
4
4
|
import warnings
|
|
5
5
|
|
|
6
|
+
from nominal.ai.v1 import ai_agent_pb2 as nominal_dot_ai_dot_v1_dot_ai__agent__pb2
|
|
6
7
|
from nominal.ai.v1 import workbook_agent_pb2 as nominal_dot_ai_dot_v1_dot_workbook__agent__pb2
|
|
7
8
|
|
|
8
9
|
GRPC_GENERATED_VERSION = '1.76.0'
|
|
@@ -27,6 +28,7 @@ if _version_not_supported:
|
|
|
27
28
|
|
|
28
29
|
class WorkbookAgentServiceStub(object):
|
|
29
30
|
"""WorkbookAgentService provides AI-powered assistance for workbook operations
|
|
31
|
+
this is deprecated in favor of the AIAgentService
|
|
30
32
|
"""
|
|
31
33
|
|
|
32
34
|
def __init__(self, channel):
|
|
@@ -37,13 +39,39 @@ class WorkbookAgentServiceStub(object):
|
|
|
37
39
|
"""
|
|
38
40
|
self.StreamChat = channel.unary_stream(
|
|
39
41
|
'/nominal.ai.v1.WorkbookAgentService/StreamChat',
|
|
40
|
-
request_serializer=nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.
|
|
41
|
-
response_deserializer=
|
|
42
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.WorkbookAgentServiceStreamChatRequest.SerializeToString,
|
|
43
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.FromString,
|
|
44
|
+
_registered_method=True)
|
|
45
|
+
self.GetConversation = channel.unary_unary(
|
|
46
|
+
'/nominal.ai.v1.WorkbookAgentService/GetConversation',
|
|
47
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.SerializeToString,
|
|
48
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.FromString,
|
|
49
|
+
_registered_method=True)
|
|
50
|
+
self.ListConversations = channel.unary_unary(
|
|
51
|
+
'/nominal.ai.v1.WorkbookAgentService/ListConversations',
|
|
52
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.SerializeToString,
|
|
53
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.FromString,
|
|
54
|
+
_registered_method=True)
|
|
55
|
+
self.CreateConversation = channel.unary_unary(
|
|
56
|
+
'/nominal.ai.v1.WorkbookAgentService/CreateConversation',
|
|
57
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.SerializeToString,
|
|
58
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.FromString,
|
|
59
|
+
_registered_method=True)
|
|
60
|
+
self.UpdateConversationMetadata = channel.unary_unary(
|
|
61
|
+
'/nominal.ai.v1.WorkbookAgentService/UpdateConversationMetadata',
|
|
62
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.SerializeToString,
|
|
63
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.FromString,
|
|
64
|
+
_registered_method=True)
|
|
65
|
+
self.DeleteConversation = channel.unary_unary(
|
|
66
|
+
'/nominal.ai.v1.WorkbookAgentService/DeleteConversation',
|
|
67
|
+
request_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.SerializeToString,
|
|
68
|
+
response_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.FromString,
|
|
42
69
|
_registered_method=True)
|
|
43
70
|
|
|
44
71
|
|
|
45
72
|
class WorkbookAgentServiceServicer(object):
|
|
46
73
|
"""WorkbookAgentService provides AI-powered assistance for workbook operations
|
|
74
|
+
this is deprecated in favor of the AIAgentService
|
|
47
75
|
"""
|
|
48
76
|
|
|
49
77
|
def StreamChat(self, request, context):
|
|
@@ -53,13 +81,73 @@ class WorkbookAgentServiceServicer(object):
|
|
|
53
81
|
context.set_details('Method not implemented!')
|
|
54
82
|
raise NotImplementedError('Method not implemented!')
|
|
55
83
|
|
|
84
|
+
def GetConversation(self, request, context):
|
|
85
|
+
"""GetConversation handles getting a complete conversation list, with an optional limit on number of messages returned
|
|
86
|
+
"""
|
|
87
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
88
|
+
context.set_details('Method not implemented!')
|
|
89
|
+
raise NotImplementedError('Method not implemented!')
|
|
90
|
+
|
|
91
|
+
def ListConversations(self, request, context):
|
|
92
|
+
"""ListConversations handles getting the list of conversation ids ordered by most recently updated
|
|
93
|
+
"""
|
|
94
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
95
|
+
context.set_details('Method not implemented!')
|
|
96
|
+
raise NotImplementedError('Method not implemented!')
|
|
97
|
+
|
|
98
|
+
def CreateConversation(self, request, context):
|
|
99
|
+
"""CreateConversation handles creating a conversation and assigning it a conversation rid
|
|
100
|
+
"""
|
|
101
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
102
|
+
context.set_details('Method not implemented!')
|
|
103
|
+
raise NotImplementedError('Method not implemented!')
|
|
104
|
+
|
|
105
|
+
def UpdateConversationMetadata(self, request, context):
|
|
106
|
+
"""UpdateConversationMetadata handles updating any metadata associated with a conversation
|
|
107
|
+
"""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
112
|
+
def DeleteConversation(self, request, context):
|
|
113
|
+
"""DeleteConversation handles deleting a specific conversation by conversation rid
|
|
114
|
+
"""
|
|
115
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
116
|
+
context.set_details('Method not implemented!')
|
|
117
|
+
raise NotImplementedError('Method not implemented!')
|
|
118
|
+
|
|
56
119
|
|
|
57
120
|
def add_WorkbookAgentServiceServicer_to_server(servicer, server):
|
|
58
121
|
rpc_method_handlers = {
|
|
59
122
|
'StreamChat': grpc.unary_stream_rpc_method_handler(
|
|
60
123
|
servicer.StreamChat,
|
|
61
|
-
request_deserializer=nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.
|
|
62
|
-
response_serializer=
|
|
124
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.WorkbookAgentServiceStreamChatRequest.FromString,
|
|
125
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.SerializeToString,
|
|
126
|
+
),
|
|
127
|
+
'GetConversation': grpc.unary_unary_rpc_method_handler(
|
|
128
|
+
servicer.GetConversation,
|
|
129
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.FromString,
|
|
130
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.SerializeToString,
|
|
131
|
+
),
|
|
132
|
+
'ListConversations': grpc.unary_unary_rpc_method_handler(
|
|
133
|
+
servicer.ListConversations,
|
|
134
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.FromString,
|
|
135
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.SerializeToString,
|
|
136
|
+
),
|
|
137
|
+
'CreateConversation': grpc.unary_unary_rpc_method_handler(
|
|
138
|
+
servicer.CreateConversation,
|
|
139
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.FromString,
|
|
140
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.SerializeToString,
|
|
141
|
+
),
|
|
142
|
+
'UpdateConversationMetadata': grpc.unary_unary_rpc_method_handler(
|
|
143
|
+
servicer.UpdateConversationMetadata,
|
|
144
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.FromString,
|
|
145
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.SerializeToString,
|
|
146
|
+
),
|
|
147
|
+
'DeleteConversation': grpc.unary_unary_rpc_method_handler(
|
|
148
|
+
servicer.DeleteConversation,
|
|
149
|
+
request_deserializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.FromString,
|
|
150
|
+
response_serializer=nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.SerializeToString,
|
|
63
151
|
),
|
|
64
152
|
}
|
|
65
153
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
@@ -71,6 +159,7 @@ def add_WorkbookAgentServiceServicer_to_server(servicer, server):
|
|
|
71
159
|
# This class is part of an EXPERIMENTAL API.
|
|
72
160
|
class WorkbookAgentService(object):
|
|
73
161
|
"""WorkbookAgentService provides AI-powered assistance for workbook operations
|
|
162
|
+
this is deprecated in favor of the AIAgentService
|
|
74
163
|
"""
|
|
75
164
|
|
|
76
165
|
@staticmethod
|
|
@@ -88,8 +177,143 @@ class WorkbookAgentService(object):
|
|
|
88
177
|
request,
|
|
89
178
|
target,
|
|
90
179
|
'/nominal.ai.v1.WorkbookAgentService/StreamChat',
|
|
91
|
-
nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.
|
|
92
|
-
|
|
180
|
+
nominal_dot_ai_dot_v1_dot_workbook__agent__pb2.WorkbookAgentServiceStreamChatRequest.SerializeToString,
|
|
181
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.StreamChatResponse.FromString,
|
|
182
|
+
options,
|
|
183
|
+
channel_credentials,
|
|
184
|
+
insecure,
|
|
185
|
+
call_credentials,
|
|
186
|
+
compression,
|
|
187
|
+
wait_for_ready,
|
|
188
|
+
timeout,
|
|
189
|
+
metadata,
|
|
190
|
+
_registered_method=True)
|
|
191
|
+
|
|
192
|
+
@staticmethod
|
|
193
|
+
def GetConversation(request,
|
|
194
|
+
target,
|
|
195
|
+
options=(),
|
|
196
|
+
channel_credentials=None,
|
|
197
|
+
call_credentials=None,
|
|
198
|
+
insecure=False,
|
|
199
|
+
compression=None,
|
|
200
|
+
wait_for_ready=None,
|
|
201
|
+
timeout=None,
|
|
202
|
+
metadata=None):
|
|
203
|
+
return grpc.experimental.unary_unary(
|
|
204
|
+
request,
|
|
205
|
+
target,
|
|
206
|
+
'/nominal.ai.v1.WorkbookAgentService/GetConversation',
|
|
207
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationRequest.SerializeToString,
|
|
208
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.GetConversationResponse.FromString,
|
|
209
|
+
options,
|
|
210
|
+
channel_credentials,
|
|
211
|
+
insecure,
|
|
212
|
+
call_credentials,
|
|
213
|
+
compression,
|
|
214
|
+
wait_for_ready,
|
|
215
|
+
timeout,
|
|
216
|
+
metadata,
|
|
217
|
+
_registered_method=True)
|
|
218
|
+
|
|
219
|
+
@staticmethod
|
|
220
|
+
def ListConversations(request,
|
|
221
|
+
target,
|
|
222
|
+
options=(),
|
|
223
|
+
channel_credentials=None,
|
|
224
|
+
call_credentials=None,
|
|
225
|
+
insecure=False,
|
|
226
|
+
compression=None,
|
|
227
|
+
wait_for_ready=None,
|
|
228
|
+
timeout=None,
|
|
229
|
+
metadata=None):
|
|
230
|
+
return grpc.experimental.unary_unary(
|
|
231
|
+
request,
|
|
232
|
+
target,
|
|
233
|
+
'/nominal.ai.v1.WorkbookAgentService/ListConversations',
|
|
234
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsRequest.SerializeToString,
|
|
235
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.ListConversationsResponse.FromString,
|
|
236
|
+
options,
|
|
237
|
+
channel_credentials,
|
|
238
|
+
insecure,
|
|
239
|
+
call_credentials,
|
|
240
|
+
compression,
|
|
241
|
+
wait_for_ready,
|
|
242
|
+
timeout,
|
|
243
|
+
metadata,
|
|
244
|
+
_registered_method=True)
|
|
245
|
+
|
|
246
|
+
@staticmethod
|
|
247
|
+
def CreateConversation(request,
|
|
248
|
+
target,
|
|
249
|
+
options=(),
|
|
250
|
+
channel_credentials=None,
|
|
251
|
+
call_credentials=None,
|
|
252
|
+
insecure=False,
|
|
253
|
+
compression=None,
|
|
254
|
+
wait_for_ready=None,
|
|
255
|
+
timeout=None,
|
|
256
|
+
metadata=None):
|
|
257
|
+
return grpc.experimental.unary_unary(
|
|
258
|
+
request,
|
|
259
|
+
target,
|
|
260
|
+
'/nominal.ai.v1.WorkbookAgentService/CreateConversation',
|
|
261
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationRequest.SerializeToString,
|
|
262
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.CreateConversationResponse.FromString,
|
|
263
|
+
options,
|
|
264
|
+
channel_credentials,
|
|
265
|
+
insecure,
|
|
266
|
+
call_credentials,
|
|
267
|
+
compression,
|
|
268
|
+
wait_for_ready,
|
|
269
|
+
timeout,
|
|
270
|
+
metadata,
|
|
271
|
+
_registered_method=True)
|
|
272
|
+
|
|
273
|
+
@staticmethod
|
|
274
|
+
def UpdateConversationMetadata(request,
|
|
275
|
+
target,
|
|
276
|
+
options=(),
|
|
277
|
+
channel_credentials=None,
|
|
278
|
+
call_credentials=None,
|
|
279
|
+
insecure=False,
|
|
280
|
+
compression=None,
|
|
281
|
+
wait_for_ready=None,
|
|
282
|
+
timeout=None,
|
|
283
|
+
metadata=None):
|
|
284
|
+
return grpc.experimental.unary_unary(
|
|
285
|
+
request,
|
|
286
|
+
target,
|
|
287
|
+
'/nominal.ai.v1.WorkbookAgentService/UpdateConversationMetadata',
|
|
288
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataRequest.SerializeToString,
|
|
289
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.UpdateConversationMetadataResponse.FromString,
|
|
290
|
+
options,
|
|
291
|
+
channel_credentials,
|
|
292
|
+
insecure,
|
|
293
|
+
call_credentials,
|
|
294
|
+
compression,
|
|
295
|
+
wait_for_ready,
|
|
296
|
+
timeout,
|
|
297
|
+
metadata,
|
|
298
|
+
_registered_method=True)
|
|
299
|
+
|
|
300
|
+
@staticmethod
|
|
301
|
+
def DeleteConversation(request,
|
|
302
|
+
target,
|
|
303
|
+
options=(),
|
|
304
|
+
channel_credentials=None,
|
|
305
|
+
call_credentials=None,
|
|
306
|
+
insecure=False,
|
|
307
|
+
compression=None,
|
|
308
|
+
wait_for_ready=None,
|
|
309
|
+
timeout=None,
|
|
310
|
+
metadata=None):
|
|
311
|
+
return grpc.experimental.unary_unary(
|
|
312
|
+
request,
|
|
313
|
+
target,
|
|
314
|
+
'/nominal.ai.v1.WorkbookAgentService/DeleteConversation',
|
|
315
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationRequest.SerializeToString,
|
|
316
|
+
nominal_dot_ai_dot_v1_dot_ai__agent__pb2.DeleteConversationResponse.FromString,
|
|
93
317
|
options,
|
|
94
318
|
channel_credentials,
|
|
95
319
|
insecure,
|