frogml-core 0.0.113__py3-none-any.whl → 0.0.114__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 (115) hide show
  1. frogml_core/__init__.py +1 -1
  2. frogml_core/inner/di_configuration/__init__.py +0 -6
  3. {frogml_core-0.0.113.dist-info → frogml_core-0.0.114.dist-info}/METADATA +1 -1
  4. {frogml_core-0.0.113.dist-info → frogml_core-0.0.114.dist-info}/RECORD +8 -115
  5. frogml_services_mock/mocks/frogml_mocks.py +0 -11
  6. frogml_services_mock/services_mock.py +0 -48
  7. frogml_storage/__init__.py +1 -1
  8. frogml_core/clients/prompt_manager/__init__.py +0 -0
  9. frogml_core/clients/prompt_manager/model_descriptor_mapper.py +0 -196
  10. frogml_core/clients/prompt_manager/prompt_manager_client.py +0 -190
  11. frogml_core/clients/prompt_manager/prompt_proto_mapper.py +0 -264
  12. frogml_core/clients/vector_store/__init__.py +0 -2
  13. frogml_core/clients/vector_store/management_client.py +0 -127
  14. frogml_core/clients/vector_store/serving_client.py +0 -157
  15. frogml_core/clients/workspace_manager/__init__.py +0 -1
  16. frogml_core/clients/workspace_manager/client.py +0 -224
  17. frogml_core/llmops/__init__.py +0 -0
  18. frogml_core/llmops/generation/__init__.py +0 -0
  19. frogml_core/llmops/generation/_steaming.py +0 -78
  20. frogml_core/llmops/generation/base.py +0 -5
  21. frogml_core/llmops/generation/chat/__init__.py +0 -0
  22. frogml_core/llmops/generation/chat/openai/LICENSE.txt +0 -201
  23. frogml_core/llmops/generation/chat/openai/types/__init__.py +0 -0
  24. frogml_core/llmops/generation/chat/openai/types/chat/__init__.py +0 -0
  25. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion.py +0 -88
  26. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_assistant_message_param.py +0 -65
  27. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_chunk.py +0 -153
  28. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_content_part_text_param.py +0 -28
  29. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_call_option_param.py +0 -25
  30. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_function_message_param.py +0 -33
  31. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message.py +0 -56
  32. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_param.py +0 -34
  33. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call.py +0 -46
  34. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_message_tool_call_param.py +0 -44
  35. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_named_tool_choice_param.py +0 -32
  36. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_role.py +0 -20
  37. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_system_message_param.py +0 -35
  38. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_token_logprob.py +0 -71
  39. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_choice_option_param.py +0 -28
  40. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_message_param.py +0 -31
  41. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_tool_param.py +0 -29
  42. frogml_core/llmops/generation/chat/openai/types/chat/chat_completion_user_message_param.py +0 -35
  43. frogml_core/llmops/generation/chat/openai/types/chat/completion_create_params.py +0 -279
  44. frogml_core/llmops/generation/chat/openai/types/completion_choice.py +0 -47
  45. frogml_core/llmops/generation/chat/openai/types/completion_create_params.py +0 -209
  46. frogml_core/llmops/generation/chat/openai/types/completion_usage.py +0 -30
  47. frogml_core/llmops/generation/chat/openai/types/model.py +0 -35
  48. frogml_core/llmops/generation/chat/openai/types/shared/__init__.py +0 -3
  49. frogml_core/llmops/generation/chat/openai/types/shared/error_object.py +0 -27
  50. frogml_core/llmops/generation/chat/openai/types/shared/function_definition.py +0 -49
  51. frogml_core/llmops/generation/chat/openai/types/shared/function_parameters.py +0 -20
  52. frogml_core/llmops/generation/chat/openai/types/shared_params/__init__.py +0 -2
  53. frogml_core/llmops/generation/chat/openai/types/shared_params/function_definition.py +0 -49
  54. frogml_core/llmops/generation/chat/openai/types/shared_params/function_parameters.py +0 -22
  55. frogml_core/llmops/generation/streaming.py +0 -26
  56. frogml_core/llmops/model/__init__.py +0 -0
  57. frogml_core/llmops/model/descriptor.py +0 -40
  58. frogml_core/llmops/prompt/__init__.py +0 -0
  59. frogml_core/llmops/prompt/base.py +0 -136
  60. frogml_core/llmops/prompt/chat/__init__.py +0 -0
  61. frogml_core/llmops/prompt/chat/message.py +0 -24
  62. frogml_core/llmops/prompt/chat/template.py +0 -113
  63. frogml_core/llmops/prompt/chat/value.py +0 -10
  64. frogml_core/llmops/prompt/manager.py +0 -138
  65. frogml_core/llmops/prompt/template.py +0 -24
  66. frogml_core/llmops/prompt/value.py +0 -14
  67. frogml_core/llmops/provider/__init__.py +0 -0
  68. frogml_core/llmops/provider/chat.py +0 -44
  69. frogml_core/llmops/provider/openai/__init__.py +0 -0
  70. frogml_core/llmops/provider/openai/client.py +0 -126
  71. frogml_core/llmops/provider/openai/provider.py +0 -93
  72. frogml_core/vector_store/__init__.py +0 -4
  73. frogml_core/vector_store/client.py +0 -151
  74. frogml_core/vector_store/collection.py +0 -429
  75. frogml_core/vector_store/filters.py +0 -359
  76. frogml_core/vector_store/inference_client.py +0 -105
  77. frogml_core/vector_store/rest_helpers.py +0 -81
  78. frogml_core/vector_store/utils/__init__.py +0 -0
  79. frogml_core/vector_store/utils/filter_utils.py +0 -23
  80. frogml_core/vector_store/utils/upsert_utils.py +0 -218
  81. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.py +0 -77
  82. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2.pyi +0 -417
  83. frogml_proto/qwak/prompt/v1/prompt/prompt_manager_service_pb2_grpc.py +0 -441
  84. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.py +0 -69
  85. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2.pyi +0 -415
  86. frogml_proto/qwak/prompt/v1/prompt/prompt_pb2_grpc.py +0 -4
  87. frogml_proto/qwak/vectors/v1/collection/collection_pb2.py +0 -46
  88. frogml_proto/qwak/vectors/v1/collection/collection_pb2.pyi +0 -287
  89. frogml_proto/qwak/vectors/v1/collection/collection_pb2_grpc.py +0 -4
  90. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.py +0 -60
  91. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2.pyi +0 -258
  92. frogml_proto/qwak/vectors/v1/collection/collection_service_pb2_grpc.py +0 -304
  93. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.py +0 -28
  94. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2.pyi +0 -41
  95. frogml_proto/qwak/vectors/v1/collection/event/collection_event_pb2_grpc.py +0 -4
  96. frogml_proto/qwak/vectors/v1/filters_pb2.py +0 -52
  97. frogml_proto/qwak/vectors/v1/filters_pb2.pyi +0 -297
  98. frogml_proto/qwak/vectors/v1/filters_pb2_grpc.py +0 -4
  99. frogml_proto/qwak/vectors/v1/vector_pb2.py +0 -38
  100. frogml_proto/qwak/vectors/v1/vector_pb2.pyi +0 -142
  101. frogml_proto/qwak/vectors/v1/vector_pb2_grpc.py +0 -4
  102. frogml_proto/qwak/vectors/v1/vector_service_pb2.py +0 -53
  103. frogml_proto/qwak/vectors/v1/vector_service_pb2.pyi +0 -243
  104. frogml_proto/qwak/vectors/v1/vector_service_pb2_grpc.py +0 -201
  105. frogml_proto/qwak/workspace/workspace_pb2.py +0 -50
  106. frogml_proto/qwak/workspace/workspace_pb2.pyi +0 -331
  107. frogml_proto/qwak/workspace/workspace_pb2_grpc.py +0 -4
  108. frogml_proto/qwak/workspace/workspace_service_pb2.py +0 -84
  109. frogml_proto/qwak/workspace/workspace_service_pb2.pyi +0 -393
  110. frogml_proto/qwak/workspace/workspace_service_pb2_grpc.py +0 -507
  111. frogml_services_mock/mocks/prompt_manager_service.py +0 -281
  112. frogml_services_mock/mocks/vector_serving_api.py +0 -159
  113. frogml_services_mock/mocks/vectors_management_api.py +0 -97
  114. frogml_services_mock/mocks/workspace_manager_service_mock.py +0 -202
  115. {frogml_core-0.0.113.dist-info → frogml_core-0.0.114.dist-info}/WHEEL +0 -0
@@ -1,441 +0,0 @@
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
-
5
- from frogml_proto.qwak.prompt.v1.prompt import prompt_manager_service_pb2 as qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2
6
-
7
-
8
- class PromptManagerServiceStub(object):
9
- """Missing associated documentation comment in .proto file."""
10
-
11
- def __init__(self, channel):
12
- """Constructor.
13
-
14
- Args:
15
- channel: A grpc.Channel.
16
- """
17
- self.CreatePrompt = channel.unary_unary(
18
- '/qwak.prompt.v1.prompt.PromptManagerService/CreatePrompt',
19
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptRequest.SerializeToString,
20
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptResponse.FromString,
21
- )
22
- self.CreatePromptVersion = channel.unary_unary(
23
- '/qwak.prompt.v1.prompt.PromptManagerService/CreatePromptVersion',
24
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionRequest.SerializeToString,
25
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionResponse.FromString,
26
- )
27
- self.UpdatePrompt = channel.unary_unary(
28
- '/qwak.prompt.v1.prompt.PromptManagerService/UpdatePrompt',
29
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptRequest.SerializeToString,
30
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptResponse.FromString,
31
- )
32
- self.GetPromptByName = channel.unary_unary(
33
- '/qwak.prompt.v1.prompt.PromptManagerService/GetPromptByName',
34
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameRequest.SerializeToString,
35
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameResponse.FromString,
36
- )
37
- self.ListPrompts = channel.unary_unary(
38
- '/qwak.prompt.v1.prompt.PromptManagerService/ListPrompts',
39
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsRequest.SerializeToString,
40
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsResponse.FromString,
41
- )
42
- self.GetPromptVersionByPromptName = channel.unary_unary(
43
- '/qwak.prompt.v1.prompt.PromptManagerService/GetPromptVersionByPromptName',
44
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameRequest.SerializeToString,
45
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameResponse.FromString,
46
- )
47
- self.InitPaginationByPromptName = channel.unary_unary(
48
- '/qwak.prompt.v1.prompt.PromptManagerService/InitPaginationByPromptName',
49
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameRequest.SerializeToString,
50
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameResponse.FromString,
51
- )
52
- self.ListPromptVersionsByPromptName = channel.unary_unary(
53
- '/qwak.prompt.v1.prompt.PromptManagerService/ListPromptVersionsByPromptName',
54
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameRequest.SerializeToString,
55
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameResponse.FromString,
56
- )
57
- self.DeletePrompt = channel.unary_unary(
58
- '/qwak.prompt.v1.prompt.PromptManagerService/DeletePrompt',
59
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptRequest.SerializeToString,
60
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptResponse.FromString,
61
- )
62
- self.DeletePromptVersion = channel.unary_unary(
63
- '/qwak.prompt.v1.prompt.PromptManagerService/DeletePromptVersion',
64
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionRequest.SerializeToString,
65
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionResponse.FromString,
66
- )
67
- self.SetDefaultPromptVersion = channel.unary_unary(
68
- '/qwak.prompt.v1.prompt.PromptManagerService/SetDefaultPromptVersion',
69
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionRequest.SerializeToString,
70
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionResponse.FromString,
71
- )
72
- self.ListPromptBriefs = channel.unary_unary(
73
- '/qwak.prompt.v1.prompt.PromptManagerService/ListPromptBriefs',
74
- request_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsRequest.SerializeToString,
75
- response_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsResponse.FromString,
76
- )
77
-
78
-
79
- class PromptManagerServiceServicer(object):
80
- """Missing associated documentation comment in .proto file."""
81
-
82
- def CreatePrompt(self, request, context):
83
- """Create a new prompt
84
- """
85
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
- context.set_details('Method not implemented!')
87
- raise NotImplementedError('Method not implemented!')
88
-
89
- def CreatePromptVersion(self, request, context):
90
- """Create new prompt version
91
- """
92
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
93
- context.set_details('Method not implemented!')
94
- raise NotImplementedError('Method not implemented!')
95
-
96
- def UpdatePrompt(self, request, context):
97
- """Update Prompt
98
- """
99
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
100
- context.set_details('Method not implemented!')
101
- raise NotImplementedError('Method not implemented!')
102
-
103
- def GetPromptByName(self, request, context):
104
- """Get prompt with its default version by name
105
- """
106
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
107
- context.set_details('Method not implemented!')
108
- raise NotImplementedError('Method not implemented!')
109
-
110
- def ListPrompts(self, request, context):
111
- """List all prompts with their default version in the account
112
- """
113
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
114
- context.set_details('Method not implemented!')
115
- raise NotImplementedError('Method not implemented!')
116
-
117
- def GetPromptVersionByPromptName(self, request, context):
118
- """Get prompt version by name and optional version number
119
- """
120
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
121
- context.set_details('Method not implemented!')
122
- raise NotImplementedError('Method not implemented!')
123
-
124
- def InitPaginationByPromptName(self, request, context):
125
- """Init pagination by prompt name
126
- """
127
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
128
- context.set_details('Method not implemented!')
129
- raise NotImplementedError('Method not implemented!')
130
-
131
- def ListPromptVersionsByPromptName(self, request, context):
132
- """List prompt versions by prompt name
133
- """
134
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
135
- context.set_details('Method not implemented!')
136
- raise NotImplementedError('Method not implemented!')
137
-
138
- def DeletePrompt(self, request, context):
139
- """Delete prompt
140
- """
141
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
142
- context.set_details('Method not implemented!')
143
- raise NotImplementedError('Method not implemented!')
144
-
145
- def DeletePromptVersion(self, request, context):
146
- """Delete prompt version
147
- """
148
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
149
- context.set_details('Method not implemented!')
150
- raise NotImplementedError('Method not implemented!')
151
-
152
- def SetDefaultPromptVersion(self, request, context):
153
- """Set default prompt version
154
- """
155
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
156
- context.set_details('Method not implemented!')
157
- raise NotImplementedError('Method not implemented!')
158
-
159
- def ListPromptBriefs(self, request, context):
160
- """List all prompts briefs in the account
161
- """
162
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
163
- context.set_details('Method not implemented!')
164
- raise NotImplementedError('Method not implemented!')
165
-
166
-
167
- def add_PromptManagerServiceServicer_to_server(servicer, server):
168
- rpc_method_handlers = {
169
- 'CreatePrompt': grpc.unary_unary_rpc_method_handler(
170
- servicer.CreatePrompt,
171
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptRequest.FromString,
172
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptResponse.SerializeToString,
173
- ),
174
- 'CreatePromptVersion': grpc.unary_unary_rpc_method_handler(
175
- servicer.CreatePromptVersion,
176
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionRequest.FromString,
177
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionResponse.SerializeToString,
178
- ),
179
- 'UpdatePrompt': grpc.unary_unary_rpc_method_handler(
180
- servicer.UpdatePrompt,
181
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptRequest.FromString,
182
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptResponse.SerializeToString,
183
- ),
184
- 'GetPromptByName': grpc.unary_unary_rpc_method_handler(
185
- servicer.GetPromptByName,
186
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameRequest.FromString,
187
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameResponse.SerializeToString,
188
- ),
189
- 'ListPrompts': grpc.unary_unary_rpc_method_handler(
190
- servicer.ListPrompts,
191
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsRequest.FromString,
192
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsResponse.SerializeToString,
193
- ),
194
- 'GetPromptVersionByPromptName': grpc.unary_unary_rpc_method_handler(
195
- servicer.GetPromptVersionByPromptName,
196
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameRequest.FromString,
197
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameResponse.SerializeToString,
198
- ),
199
- 'InitPaginationByPromptName': grpc.unary_unary_rpc_method_handler(
200
- servicer.InitPaginationByPromptName,
201
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameRequest.FromString,
202
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameResponse.SerializeToString,
203
- ),
204
- 'ListPromptVersionsByPromptName': grpc.unary_unary_rpc_method_handler(
205
- servicer.ListPromptVersionsByPromptName,
206
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameRequest.FromString,
207
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameResponse.SerializeToString,
208
- ),
209
- 'DeletePrompt': grpc.unary_unary_rpc_method_handler(
210
- servicer.DeletePrompt,
211
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptRequest.FromString,
212
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptResponse.SerializeToString,
213
- ),
214
- 'DeletePromptVersion': grpc.unary_unary_rpc_method_handler(
215
- servicer.DeletePromptVersion,
216
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionRequest.FromString,
217
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionResponse.SerializeToString,
218
- ),
219
- 'SetDefaultPromptVersion': grpc.unary_unary_rpc_method_handler(
220
- servicer.SetDefaultPromptVersion,
221
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionRequest.FromString,
222
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionResponse.SerializeToString,
223
- ),
224
- 'ListPromptBriefs': grpc.unary_unary_rpc_method_handler(
225
- servicer.ListPromptBriefs,
226
- request_deserializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsRequest.FromString,
227
- response_serializer=qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsResponse.SerializeToString,
228
- ),
229
- }
230
- generic_handler = grpc.method_handlers_generic_handler(
231
- 'qwak.prompt.v1.prompt.PromptManagerService', rpc_method_handlers)
232
- server.add_generic_rpc_handlers((generic_handler,))
233
-
234
-
235
- # This class is part of an EXPERIMENTAL API.
236
- class PromptManagerService(object):
237
- """Missing associated documentation comment in .proto file."""
238
-
239
- @staticmethod
240
- def CreatePrompt(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(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/CreatePrompt',
251
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptRequest.SerializeToString,
252
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptResponse.FromString,
253
- options, channel_credentials,
254
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
255
-
256
- @staticmethod
257
- def CreatePromptVersion(request,
258
- target,
259
- options=(),
260
- channel_credentials=None,
261
- call_credentials=None,
262
- insecure=False,
263
- compression=None,
264
- wait_for_ready=None,
265
- timeout=None,
266
- metadata=None):
267
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/CreatePromptVersion',
268
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionRequest.SerializeToString,
269
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.CreatePromptVersionResponse.FromString,
270
- options, channel_credentials,
271
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
272
-
273
- @staticmethod
274
- def UpdatePrompt(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(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/UpdatePrompt',
285
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptRequest.SerializeToString,
286
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.UpdatePromptResponse.FromString,
287
- options, channel_credentials,
288
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
289
-
290
- @staticmethod
291
- def GetPromptByName(request,
292
- target,
293
- options=(),
294
- channel_credentials=None,
295
- call_credentials=None,
296
- insecure=False,
297
- compression=None,
298
- wait_for_ready=None,
299
- timeout=None,
300
- metadata=None):
301
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/GetPromptByName',
302
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameRequest.SerializeToString,
303
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptByNameResponse.FromString,
304
- options, channel_credentials,
305
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
306
-
307
- @staticmethod
308
- def ListPrompts(request,
309
- target,
310
- options=(),
311
- channel_credentials=None,
312
- call_credentials=None,
313
- insecure=False,
314
- compression=None,
315
- wait_for_ready=None,
316
- timeout=None,
317
- metadata=None):
318
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/ListPrompts',
319
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsRequest.SerializeToString,
320
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptsResponse.FromString,
321
- options, channel_credentials,
322
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
323
-
324
- @staticmethod
325
- def GetPromptVersionByPromptName(request,
326
- target,
327
- options=(),
328
- channel_credentials=None,
329
- call_credentials=None,
330
- insecure=False,
331
- compression=None,
332
- wait_for_ready=None,
333
- timeout=None,
334
- metadata=None):
335
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/GetPromptVersionByPromptName',
336
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameRequest.SerializeToString,
337
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.GetPromptVersionByPromptNameResponse.FromString,
338
- options, channel_credentials,
339
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
340
-
341
- @staticmethod
342
- def InitPaginationByPromptName(request,
343
- target,
344
- options=(),
345
- channel_credentials=None,
346
- call_credentials=None,
347
- insecure=False,
348
- compression=None,
349
- wait_for_ready=None,
350
- timeout=None,
351
- metadata=None):
352
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/InitPaginationByPromptName',
353
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameRequest.SerializeToString,
354
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.InitPaginationByPromptNameResponse.FromString,
355
- options, channel_credentials,
356
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
357
-
358
- @staticmethod
359
- def ListPromptVersionsByPromptName(request,
360
- target,
361
- options=(),
362
- channel_credentials=None,
363
- call_credentials=None,
364
- insecure=False,
365
- compression=None,
366
- wait_for_ready=None,
367
- timeout=None,
368
- metadata=None):
369
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/ListPromptVersionsByPromptName',
370
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameRequest.SerializeToString,
371
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptVersionsByPromptNameResponse.FromString,
372
- options, channel_credentials,
373
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
374
-
375
- @staticmethod
376
- def DeletePrompt(request,
377
- target,
378
- options=(),
379
- channel_credentials=None,
380
- call_credentials=None,
381
- insecure=False,
382
- compression=None,
383
- wait_for_ready=None,
384
- timeout=None,
385
- metadata=None):
386
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/DeletePrompt',
387
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptRequest.SerializeToString,
388
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptResponse.FromString,
389
- options, channel_credentials,
390
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
391
-
392
- @staticmethod
393
- def DeletePromptVersion(request,
394
- target,
395
- options=(),
396
- channel_credentials=None,
397
- call_credentials=None,
398
- insecure=False,
399
- compression=None,
400
- wait_for_ready=None,
401
- timeout=None,
402
- metadata=None):
403
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/DeletePromptVersion',
404
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionRequest.SerializeToString,
405
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.DeletePromptVersionResponse.FromString,
406
- options, channel_credentials,
407
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
408
-
409
- @staticmethod
410
- def SetDefaultPromptVersion(request,
411
- target,
412
- options=(),
413
- channel_credentials=None,
414
- call_credentials=None,
415
- insecure=False,
416
- compression=None,
417
- wait_for_ready=None,
418
- timeout=None,
419
- metadata=None):
420
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/SetDefaultPromptVersion',
421
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionRequest.SerializeToString,
422
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.SetDefaultPromptVersionResponse.FromString,
423
- options, channel_credentials,
424
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
-
426
- @staticmethod
427
- def ListPromptBriefs(request,
428
- target,
429
- options=(),
430
- channel_credentials=None,
431
- call_credentials=None,
432
- insecure=False,
433
- compression=None,
434
- wait_for_ready=None,
435
- timeout=None,
436
- metadata=None):
437
- return grpc.experimental.unary_unary(request, target, '/qwak.prompt.v1.prompt.PromptManagerService/ListPromptBriefs',
438
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsRequest.SerializeToString,
439
- qwak_dot_prompt_dot_v1_dot_prompt_dot_prompt__manager__service__pb2.ListPromptBriefsResponse.FromString,
440
- options, channel_credentials,
441
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,69 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # source: frogml_proto.qwak.prompt/v1/prompt/prompt.proto
4
- """Generated protocol buffer code."""
5
- from google.protobuf import descriptor as _descriptor
6
- from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import symbol_database as _symbol_database
8
- from google.protobuf.internal import builder as _builder
9
- # @@protoc_insertion_point(imports)
10
-
11
- _sym_db = _symbol_database.Default()
12
-
13
-
14
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
15
- from frogml_proto.qwak.model_descriptor import open_ai_descriptor_pb2 as qwak_dot_model__descriptor_dot_open__ai__descriptor__pb2
16
-
17
-
18
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"qwak/prompt/v1/prompt/prompt.proto\x12\x15qwak.prompt.v1.prompt\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.qwak/model_descriptor/open_ai_descriptor.proto\"\xdb\x01\n\x06Prompt\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x1a\x64\x65\x66\x61ult_version_definition\x18\x02 \x01(\x0b\x32..qwak.prompt.v1.prompt.PromptVersionDefinition\x12\x37\n\x08metadata\x18\x03 \x01(\x0b\x32%.qwak.prompt.v1.prompt.PromptMetadata\x12\x36\n\x0bprompt_spec\x18\x04 \x01(\x0b\x32!.qwak.prompt.v1.prompt.PromptSpec\"w\n\rPromptVersion\x12\x13\n\x0bprompt_name\x18\x01 \x01(\t\x12Q\n\x19prompt_version_definition\x18\x02 \x01(\x0b\x32..qwak.prompt.v1.prompt.PromptVersionDefinition\"\xb9\x01\n\x17PromptVersionDefinition\x12\x16\n\x0eversion_number\x18\x01 \x01(\x05\x12>\n\x0cversion_spec\x18\x02 \x01(\x0b\x32(.qwak.prompt.v1.prompt.PromptVersionSpec\x12\x46\n\x10version_metadata\x18\x03 \x01(\x0b\x32,.qwak.prompt.v1.prompt.PromptVersionMetadata\"^\n\x0bPromptBrief\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x41\n\x0eversion_briefs\x18\x02 \x03(\x0b\x32).qwak.prompt.v1.prompt.PromptVersionBrief\"\x98\x01\n\x12PromptVersionBrief\x12\x16\n\x0eversion_number\x18\x01 \x01(\x05\x12I\n\x14model_provider_brief\x18\x02 \x01(\x0b\x32).qwak.prompt.v1.prompt.ModelProviderBriefH\x00\x42\x1f\n\x1doptional_model_provider_brief\"8\n\x12ModelProviderBrief\x12\"\n\x1amodel_provider_case_number\x18\x01 \x01(\x05\"!\n\nPromptSpec\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\"\xcf\x01\n\x11PromptVersionSpec\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12>\n\x0fprompt_template\x18\x02 \x01(\x0b\x32%.qwak.prompt.v1.prompt.PromptTemplate\x12H\n\x10model_descriptor\x18\x03 \x01(\x0b\x32,.qwak.prompt.v1.prompt.PromptModelDescriptorH\x00\x42\x1b\n\x19optional_model_descriptor\"c\n\x0ePromptTemplate\x12I\n\x14\x63hat_prompt_template\x18\x01 \x01(\x0b\x32).qwak.prompt.v1.prompt.ChatPromptTemplateH\x00\x42\x06\n\x04type\"O\n\x12\x43hatPromptTemplate\x12\x39\n\rchat_messages\x18\x01 \x03(\x0b\x32\".qwak.prompt.v1.prompt.ChatMessage\"\x83\x01\n\x0b\x43hatMessage\x12\x36\n\x04role\x18\x01 \x01(\x0b\x32(.qwak.prompt.v1.prompt.PromptMessageRole\x12<\n\x08template\x18\x02 \x01(\x0b\x32*.qwak.prompt.v1.prompt.ChatMessageTemplate\"[\n\x13\x43hatMessageTemplate\x12<\n\rtext_template\x18\x01 \x01(\x0b\x32#.qwak.prompt.v1.prompt.TextTemplateH\x00\x42\x06\n\x04type\" \n\x0cTextTemplate\x12\x10\n\x08template\x18\x01 \x01(\t\"\xe6\x01\n\x11PromptMessageRole\x12\x43\n\nhuman_role\x18\x01 \x01(\x0b\x32-.qwak.prompt.v1.prompt.HumanPromptMessageRoleH\x00\x12\x45\n\x0bsystem_role\x18\x02 \x01(\x0b\x32..qwak.prompt.v1.prompt.SystemPromptMessageRoleH\x00\x12=\n\x07\x61i_role\x18\x03 \x01(\x0b\x32*.qwak.prompt.v1.prompt.AIPromptMessageRoleH\x00\x42\x06\n\x04role\"\x18\n\x16HumanPromptMessageRole\"\x19\n\x17SystemPromptMessageRole\"\x15\n\x13\x41IPromptMessageRole\"r\n\x15PromptModelDescriptor\x12G\n\x10open_ai_provider\x18\x01 \x01(\x0b\x32+.qwak.prompt.v1.prompt.PromptOpenAIProviderH\x00\x42\x10\n\x0emodel_provider\"t\n\x14PromptOpenAIProvider\x12\\\n\x18open_ai_model_descriptor\x18\x01 \x01(\x0b\x32:.qwak.llmops.model_descriptor.openai.OpenAIModelDescriptor\"T\n\x0ePromptMetadata\x12.\n\ncreated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncreated_by\x18\x02 \x01(\t\"[\n\x15PromptVersionMetadata\x12.\n\ncreated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncreated_by\x18\x02 \x01(\tB$\n com.qwak.ai.prompt.api.v1.promptP\x01\x62\x06proto3')
19
-
20
- _globals = globals()
21
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
22
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'qwak.prompt.v1.prompt.prompt_pb2', _globals)
23
- if _descriptor._USE_C_DESCRIPTORS == False:
24
-
25
- DESCRIPTOR._options = None
26
- DESCRIPTOR._serialized_options = b'\n com.qwak.ai.prompt.api.v1.promptP\001'
27
- _globals['_PROMPT']._serialized_start=143
28
- _globals['_PROMPT']._serialized_end=362
29
- _globals['_PROMPTVERSION']._serialized_start=364
30
- _globals['_PROMPTVERSION']._serialized_end=483
31
- _globals['_PROMPTVERSIONDEFINITION']._serialized_start=486
32
- _globals['_PROMPTVERSIONDEFINITION']._serialized_end=671
33
- _globals['_PROMPTBRIEF']._serialized_start=673
34
- _globals['_PROMPTBRIEF']._serialized_end=767
35
- _globals['_PROMPTVERSIONBRIEF']._serialized_start=770
36
- _globals['_PROMPTVERSIONBRIEF']._serialized_end=922
37
- _globals['_MODELPROVIDERBRIEF']._serialized_start=924
38
- _globals['_MODELPROVIDERBRIEF']._serialized_end=980
39
- _globals['_PROMPTSPEC']._serialized_start=982
40
- _globals['_PROMPTSPEC']._serialized_end=1015
41
- _globals['_PROMPTVERSIONSPEC']._serialized_start=1018
42
- _globals['_PROMPTVERSIONSPEC']._serialized_end=1225
43
- _globals['_PROMPTTEMPLATE']._serialized_start=1227
44
- _globals['_PROMPTTEMPLATE']._serialized_end=1326
45
- _globals['_CHATPROMPTTEMPLATE']._serialized_start=1328
46
- _globals['_CHATPROMPTTEMPLATE']._serialized_end=1407
47
- _globals['_CHATMESSAGE']._serialized_start=1410
48
- _globals['_CHATMESSAGE']._serialized_end=1541
49
- _globals['_CHATMESSAGETEMPLATE']._serialized_start=1543
50
- _globals['_CHATMESSAGETEMPLATE']._serialized_end=1634
51
- _globals['_TEXTTEMPLATE']._serialized_start=1636
52
- _globals['_TEXTTEMPLATE']._serialized_end=1668
53
- _globals['_PROMPTMESSAGEROLE']._serialized_start=1671
54
- _globals['_PROMPTMESSAGEROLE']._serialized_end=1901
55
- _globals['_HUMANPROMPTMESSAGEROLE']._serialized_start=1903
56
- _globals['_HUMANPROMPTMESSAGEROLE']._serialized_end=1927
57
- _globals['_SYSTEMPROMPTMESSAGEROLE']._serialized_start=1929
58
- _globals['_SYSTEMPROMPTMESSAGEROLE']._serialized_end=1954
59
- _globals['_AIPROMPTMESSAGEROLE']._serialized_start=1956
60
- _globals['_AIPROMPTMESSAGEROLE']._serialized_end=1977
61
- _globals['_PROMPTMODELDESCRIPTOR']._serialized_start=1979
62
- _globals['_PROMPTMODELDESCRIPTOR']._serialized_end=2093
63
- _globals['_PROMPTOPENAIPROVIDER']._serialized_start=2095
64
- _globals['_PROMPTOPENAIPROVIDER']._serialized_end=2211
65
- _globals['_PROMPTMETADATA']._serialized_start=2213
66
- _globals['_PROMPTMETADATA']._serialized_end=2297
67
- _globals['_PROMPTVERSIONMETADATA']._serialized_start=2299
68
- _globals['_PROMPTVERSIONMETADATA']._serialized_end=2390
69
- # @@protoc_insertion_point(module_scope)