rapidata 2.28.4__py3-none-any.whl → 2.29.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 rapidata might be problematic. Click here for more details.

Files changed (108) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +44 -17
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/benchmark_api.py +2766 -0
  5. rapidata/api_client/api/campaign_api.py +0 -780
  6. rapidata/api_client/api/coco_api.py +0 -571
  7. rapidata/api_client/api/customer_rapid_api.py +332 -1
  8. rapidata/api_client/api/datapoint_api.py +0 -524
  9. rapidata/api_client/api/dataset_api.py +595 -2276
  10. rapidata/api_client/api/feedback_api.py +0 -270
  11. rapidata/api_client/api/identity_api.py +74 -888
  12. rapidata/api_client/api/leaderboard_api.py +1642 -259
  13. rapidata/api_client/api/order_api.py +617 -5692
  14. rapidata/api_client/api/pipeline_api.py +31 -334
  15. rapidata/api_client/api/validation_set_api.py +469 -3356
  16. rapidata/api_client/api/workflow_api.py +0 -799
  17. rapidata/api_client/models/__init__.py +43 -17
  18. rapidata/api_client/models/add_campaign_model.py +3 -3
  19. rapidata/api_client/models/add_validation_rapid_model.py +1 -3
  20. rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
  21. rapidata/api_client/models/and_user_filter_model.py +106 -0
  22. rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
  23. rapidata/api_client/models/benchmark_query_result.py +94 -0
  24. rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
  25. rapidata/api_client/models/boost_leaderboard_model.py +89 -0
  26. rapidata/api_client/models/clone_order_model.py +2 -4
  27. rapidata/api_client/models/create_benchmark_model.py +87 -0
  28. rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
  29. rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
  30. rapidata/api_client/models/create_benchmark_result.py +87 -0
  31. rapidata/api_client/models/create_datapoint_result.py +4 -16
  32. rapidata/api_client/models/create_leaderboard_model.py +18 -2
  33. rapidata/api_client/models/create_leaderboard_result.py +5 -3
  34. rapidata/api_client/models/create_order_model.py +3 -3
  35. rapidata/api_client/models/file_asset_input.py +104 -0
  36. rapidata/api_client/models/file_asset_input1.py +104 -0
  37. rapidata/api_client/models/file_asset_input1_file.py +168 -0
  38. rapidata/api_client/models/file_asset_input2.py +104 -0
  39. rapidata/api_client/models/file_asset_input_file.py +182 -0
  40. rapidata/api_client/models/form_file_wrapper.py +120 -0
  41. rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
  42. rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
  43. rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
  44. rapidata/api_client/models/get_benchmark_by_id_result.py +94 -0
  45. rapidata/api_client/models/get_participant_by_id_result.py +6 -22
  46. rapidata/api_client/models/get_standing_by_id_result.py +113 -0
  47. rapidata/api_client/models/get_validation_rapids_result.py +3 -3
  48. rapidata/api_client/models/get_workflow_results_result.py +3 -3
  49. rapidata/api_client/models/local_file_wrapper.py +120 -0
  50. rapidata/api_client/models/multi_asset_input.py +110 -0
  51. rapidata/api_client/models/multi_asset_input1.py +110 -0
  52. rapidata/api_client/models/multi_asset_input1_assets_inner.py +170 -0
  53. rapidata/api_client/models/multi_asset_input2.py +110 -0
  54. rapidata/api_client/models/multi_asset_input_assets_inner.py +170 -0
  55. rapidata/api_client/models/not_user_filter_model.py +3 -3
  56. rapidata/api_client/models/or_user_filter_model.py +3 -3
  57. rapidata/api_client/models/participant_by_benchmark.py +102 -0
  58. rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
  59. rapidata/api_client/models/participant_by_leaderboard.py +6 -2
  60. rapidata/api_client/models/participant_status.py +1 -4
  61. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  62. rapidata/api_client/models/potential_validation_rapid.py +103 -0
  63. rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
  64. rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
  65. rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
  66. rapidata/api_client/models/prompt_asset_metadata_input_asset.py +170 -0
  67. rapidata/api_client/models/prompt_by_benchmark_result.py +92 -0
  68. rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
  69. rapidata/api_client/models/prompt_metadata_input.py +5 -3
  70. rapidata/api_client/models/proxy_file_wrapper.py +114 -0
  71. rapidata/api_client/models/query_validation_model.py +97 -0
  72. rapidata/api_client/models/rapid_model.py +3 -3
  73. rapidata/api_client/models/simple_workflow_config.py +3 -3
  74. rapidata/api_client/models/simple_workflow_model1.py +3 -3
  75. rapidata/api_client/models/standing_by_leaderboard.py +113 -0
  76. rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
  77. rapidata/api_client/models/standing_status.py +38 -0
  78. rapidata/api_client/models/stream_file_wrapper.py +116 -0
  79. rapidata/api_client/models/submit_coco_model.py +1 -3
  80. rapidata/api_client/models/submit_prompt_model.py +89 -0
  81. rapidata/api_client/models/text_asset_input.py +100 -0
  82. rapidata/api_client/models/transcription_metadata_input.py +5 -3
  83. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  84. rapidata/api_client/models/zip_entry_file_wrapper.py +120 -0
  85. rapidata/api_client_README.md +67 -76
  86. rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
  87. rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +62 -0
  88. rapidata/rapidata_client/benchmark/rapidata_benchmark.py +227 -0
  89. rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +83 -0
  90. rapidata/rapidata_client/filter/not_filter.py +2 -2
  91. rapidata/rapidata_client/filter/or_filter.py +2 -2
  92. rapidata/rapidata_client/metadata/__init__.py +1 -0
  93. rapidata/rapidata_client/metadata/_media_asset_metadata.py +8 -1
  94. rapidata/rapidata_client/metadata/_prompt_identifier_metadata.py +15 -0
  95. rapidata/rapidata_client/order/_rapidata_dataset.py +6 -6
  96. rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -4
  97. rapidata/rapidata_client/order/rapidata_order.py +1 -1
  98. rapidata/rapidata_client/rapidata_client.py +3 -3
  99. rapidata/rapidata_client/validation/rapidata_validation_set.py +1 -1
  100. rapidata/rapidata_client/validation/rapids/rapids.py +4 -6
  101. rapidata/service/openapi_service.py +5 -0
  102. {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/METADATA +1 -1
  103. {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/RECORD +106 -57
  104. rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
  105. rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
  106. /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
  107. {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/LICENSE +0 -0
  108. {rapidata-2.28.4.dist-info → rapidata-2.29.0.dist-info}/WHEEL +0 -0
@@ -39,276 +39,6 @@ class FeedbackApi:
39
39
  self.api_client = api_client
40
40
 
41
41
 
42
- @validate_call
43
- def feedback_feedback_post(
44
- self,
45
- feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
46
- _request_timeout: Union[
47
- None,
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Tuple[
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Annotated[StrictFloat, Field(gt=0)]
52
- ]
53
- ] = None,
54
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
- _content_type: Optional[StrictStr] = None,
56
- _headers: Optional[Dict[StrictStr, Any]] = None,
57
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
- ) -> None:
59
- """(Deprecated) Submits feedback about our services.
60
-
61
-
62
- :param feedback_model: The body content of the request
63
- :type feedback_model: FeedbackModel
64
- :param _request_timeout: timeout setting for this request. If one
65
- number provided, it will be total request
66
- timeout. It can also be a pair (tuple) of
67
- (connection, read) timeouts.
68
- :type _request_timeout: int, tuple(int, int), optional
69
- :param _request_auth: set to override the auth_settings for an a single
70
- request; this effectively ignores the
71
- authentication in the spec for a single request.
72
- :type _request_auth: dict, optional
73
- :param _content_type: force content-type for the request.
74
- :type _content_type: str, Optional
75
- :param _headers: set to override the headers for a single
76
- request; this effectively ignores the headers
77
- in the spec for a single request.
78
- :type _headers: dict, optional
79
- :param _host_index: set to override the host_index for a single
80
- request; this effectively ignores the host_index
81
- in the spec for a single request.
82
- :type _host_index: int, optional
83
- :return: Returns the result object.
84
- """ # noqa: E501
85
- warnings.warn("POST /feedback/feedback is deprecated.", DeprecationWarning)
86
-
87
- _param = self._feedback_feedback_post_serialize(
88
- feedback_model=feedback_model,
89
- _request_auth=_request_auth,
90
- _content_type=_content_type,
91
- _headers=_headers,
92
- _host_index=_host_index
93
- )
94
-
95
- _response_types_map: Dict[str, Optional[str]] = {
96
- '204': None,
97
- }
98
- response_data = self.api_client.call_api(
99
- *_param,
100
- _request_timeout=_request_timeout
101
- )
102
- response_data.read()
103
- return self.api_client.response_deserialize(
104
- response_data=response_data,
105
- response_types_map=_response_types_map,
106
- ).data
107
-
108
-
109
- @validate_call
110
- def feedback_feedback_post_with_http_info(
111
- self,
112
- feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
113
- _request_timeout: Union[
114
- None,
115
- Annotated[StrictFloat, Field(gt=0)],
116
- Tuple[
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Annotated[StrictFloat, Field(gt=0)]
119
- ]
120
- ] = None,
121
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
122
- _content_type: Optional[StrictStr] = None,
123
- _headers: Optional[Dict[StrictStr, Any]] = None,
124
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
125
- ) -> ApiResponse[None]:
126
- """(Deprecated) Submits feedback about our services.
127
-
128
-
129
- :param feedback_model: The body content of the request
130
- :type feedback_model: FeedbackModel
131
- :param _request_timeout: timeout setting for this request. If one
132
- number provided, it will be total request
133
- timeout. It can also be a pair (tuple) of
134
- (connection, read) timeouts.
135
- :type _request_timeout: int, tuple(int, int), optional
136
- :param _request_auth: set to override the auth_settings for an a single
137
- request; this effectively ignores the
138
- authentication in the spec for a single request.
139
- :type _request_auth: dict, optional
140
- :param _content_type: force content-type for the request.
141
- :type _content_type: str, Optional
142
- :param _headers: set to override the headers for a single
143
- request; this effectively ignores the headers
144
- in the spec for a single request.
145
- :type _headers: dict, optional
146
- :param _host_index: set to override the host_index for a single
147
- request; this effectively ignores the host_index
148
- in the spec for a single request.
149
- :type _host_index: int, optional
150
- :return: Returns the result object.
151
- """ # noqa: E501
152
- warnings.warn("POST /feedback/feedback is deprecated.", DeprecationWarning)
153
-
154
- _param = self._feedback_feedback_post_serialize(
155
- feedback_model=feedback_model,
156
- _request_auth=_request_auth,
157
- _content_type=_content_type,
158
- _headers=_headers,
159
- _host_index=_host_index
160
- )
161
-
162
- _response_types_map: Dict[str, Optional[str]] = {
163
- '204': None,
164
- }
165
- response_data = self.api_client.call_api(
166
- *_param,
167
- _request_timeout=_request_timeout
168
- )
169
- response_data.read()
170
- return self.api_client.response_deserialize(
171
- response_data=response_data,
172
- response_types_map=_response_types_map,
173
- )
174
-
175
-
176
- @validate_call
177
- def feedback_feedback_post_without_preload_content(
178
- self,
179
- feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
180
- _request_timeout: Union[
181
- None,
182
- Annotated[StrictFloat, Field(gt=0)],
183
- Tuple[
184
- Annotated[StrictFloat, Field(gt=0)],
185
- Annotated[StrictFloat, Field(gt=0)]
186
- ]
187
- ] = None,
188
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
189
- _content_type: Optional[StrictStr] = None,
190
- _headers: Optional[Dict[StrictStr, Any]] = None,
191
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
192
- ) -> RESTResponseType:
193
- """(Deprecated) Submits feedback about our services.
194
-
195
-
196
- :param feedback_model: The body content of the request
197
- :type feedback_model: FeedbackModel
198
- :param _request_timeout: timeout setting for this request. If one
199
- number provided, it will be total request
200
- timeout. It can also be a pair (tuple) of
201
- (connection, read) timeouts.
202
- :type _request_timeout: int, tuple(int, int), optional
203
- :param _request_auth: set to override the auth_settings for an a single
204
- request; this effectively ignores the
205
- authentication in the spec for a single request.
206
- :type _request_auth: dict, optional
207
- :param _content_type: force content-type for the request.
208
- :type _content_type: str, Optional
209
- :param _headers: set to override the headers for a single
210
- request; this effectively ignores the headers
211
- in the spec for a single request.
212
- :type _headers: dict, optional
213
- :param _host_index: set to override the host_index for a single
214
- request; this effectively ignores the host_index
215
- in the spec for a single request.
216
- :type _host_index: int, optional
217
- :return: Returns the result object.
218
- """ # noqa: E501
219
- warnings.warn("POST /feedback/feedback is deprecated.", DeprecationWarning)
220
-
221
- _param = self._feedback_feedback_post_serialize(
222
- feedback_model=feedback_model,
223
- _request_auth=_request_auth,
224
- _content_type=_content_type,
225
- _headers=_headers,
226
- _host_index=_host_index
227
- )
228
-
229
- _response_types_map: Dict[str, Optional[str]] = {
230
- '204': None,
231
- }
232
- response_data = self.api_client.call_api(
233
- *_param,
234
- _request_timeout=_request_timeout
235
- )
236
- return response_data.response
237
-
238
-
239
- def _feedback_feedback_post_serialize(
240
- self,
241
- feedback_model,
242
- _request_auth,
243
- _content_type,
244
- _headers,
245
- _host_index,
246
- ) -> RequestSerialized:
247
-
248
- _host = None
249
-
250
- _collection_formats: Dict[str, str] = {
251
- }
252
-
253
- _path_params: Dict[str, str] = {}
254
- _query_params: List[Tuple[str, str]] = []
255
- _header_params: Dict[str, Optional[str]] = _headers or {}
256
- _form_params: List[Tuple[str, str]] = []
257
- _files: Dict[
258
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
259
- ] = {}
260
- _body_params: Optional[bytes] = None
261
-
262
- # process the path parameters
263
- # process the query parameters
264
- # process the header parameters
265
- # process the form parameters
266
- # process the body parameter
267
- if feedback_model is not None:
268
- _body_params = feedback_model
269
-
270
-
271
-
272
- # set the HTTP header `Content-Type`
273
- if _content_type:
274
- _header_params['Content-Type'] = _content_type
275
- else:
276
- _default_content_type = (
277
- self.api_client.select_header_content_type(
278
- [
279
- 'application/json',
280
- 'text/json',
281
- 'application/*+json'
282
- ]
283
- )
284
- )
285
- if _default_content_type is not None:
286
- _header_params['Content-Type'] = _default_content_type
287
-
288
- # authentication setting
289
- _auth_settings: List[str] = [
290
- 'bearer',
291
- 'oauth2'
292
- ]
293
-
294
- return self.api_client.param_serialize(
295
- method='POST',
296
- resource_path='/feedback/feedback',
297
- path_params=_path_params,
298
- query_params=_query_params,
299
- header_params=_header_params,
300
- body=_body_params,
301
- post_params=_form_params,
302
- files=_files,
303
- auth_settings=_auth_settings,
304
- collection_formats=_collection_formats,
305
- _host=_host,
306
- _request_auth=_request_auth
307
- )
308
-
309
-
310
-
311
-
312
42
  @validate_call
313
43
  def feedback_post(
314
44
  self,