rapidata 2.28.5__py3-none-any.whl → 2.29.1__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.
- rapidata/__init__.py +1 -1
- rapidata/api_client/__init__.py +45 -8
- rapidata/api_client/api/__init__.py +1 -0
- rapidata/api_client/api/benchmark_api.py +3033 -0
- rapidata/api_client/api/customer_rapid_api.py +332 -1
- rapidata/api_client/api/dataset_api.py +16 -0
- rapidata/api_client/api/leaderboard_api.py +1392 -270
- rapidata/api_client/models/__init__.py +44 -8
- rapidata/api_client/models/add_campaign_model.py +3 -3
- rapidata/api_client/models/and_user_filter_model.py +106 -0
- rapidata/api_client/models/and_user_filter_model_filters_inner.py +282 -0
- rapidata/api_client/models/benchmark_query_result.py +94 -0
- rapidata/api_client/models/benchmark_query_result_paged_result.py +105 -0
- rapidata/api_client/models/boost_leaderboard_model.py +89 -0
- rapidata/api_client/models/create_benchmark_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_model.py +87 -0
- rapidata/api_client/models/create_benchmark_participant_result.py +89 -0
- rapidata/api_client/models/create_benchmark_result.py +87 -0
- rapidata/api_client/models/create_datapoint_result.py +4 -16
- rapidata/api_client/models/create_leaderboard_model.py +20 -2
- rapidata/api_client/models/create_leaderboard_result.py +15 -3
- rapidata/api_client/models/create_order_model.py +3 -3
- rapidata/api_client/models/file_asset_input.py +104 -0
- rapidata/api_client/models/file_asset_input1.py +104 -0
- rapidata/api_client/models/file_asset_input1_file.py +168 -0
- rapidata/api_client/models/file_asset_input2.py +104 -0
- rapidata/api_client/models/file_asset_input3.py +104 -0
- rapidata/api_client/models/file_asset_input_file.py +182 -0
- rapidata/api_client/models/form_file_wrapper.py +120 -0
- rapidata/api_client/models/get_benchmark_by_id_query.py +96 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result.py +94 -0
- rapidata/api_client/models/get_benchmark_by_id_query_result_paged_result.py +105 -0
- rapidata/api_client/models/get_benchmark_by_id_result.py +94 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +11 -3
- rapidata/api_client/models/get_participant_by_id_result.py +6 -26
- rapidata/api_client/models/get_standing_by_id_result.py +113 -0
- rapidata/api_client/models/leaderboard_query_result.py +11 -3
- rapidata/api_client/models/local_file_wrapper.py +120 -0
- rapidata/api_client/models/multi_asset_input.py +110 -0
- rapidata/api_client/models/multi_asset_input1.py +110 -0
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input2.py +110 -0
- rapidata/api_client/models/multi_asset_input3.py +110 -0
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input_assets_inner.py +170 -0
- rapidata/api_client/models/not_user_filter_model.py +3 -3
- rapidata/api_client/models/or_user_filter_model.py +3 -3
- rapidata/api_client/models/participant_by_benchmark.py +102 -0
- rapidata/api_client/models/participant_by_benchmark_paged_result.py +105 -0
- rapidata/api_client/models/participant_status.py +1 -4
- rapidata/api_client/models/potential_validation_rapid.py +103 -0
- rapidata/api_client/models/potential_validation_rapid_paged_result.py +105 -0
- rapidata/api_client/models/potential_validation_rapid_truth.py +280 -0
- rapidata/api_client/models/prompt_asset_metadata_input.py +3 -3
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +170 -0
- rapidata/api_client/models/prompt_by_benchmark_result.py +92 -0
- rapidata/api_client/models/prompt_by_benchmark_result_paged_result.py +105 -0
- rapidata/api_client/models/prompt_metadata_input.py +5 -3
- rapidata/api_client/models/proxy_file_wrapper.py +114 -0
- rapidata/api_client/models/query_validation_model.py +97 -0
- rapidata/api_client/models/standing_by_leaderboard.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard_paged_result.py +105 -0
- rapidata/api_client/models/standing_status.py +38 -0
- rapidata/api_client/models/stream_file_wrapper.py +116 -0
- rapidata/api_client/models/submit_prompt_model.py +105 -0
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +174 -0
- rapidata/api_client/models/text_asset_input.py +100 -0
- rapidata/api_client/models/transcription_metadata_input.py +5 -3
- rapidata/api_client/models/zip_entry_file_wrapper.py +120 -0
- rapidata/api_client_README.md +67 -16
- rapidata/rapidata_client/benchmark/leaderboard/__init__.py +0 -0
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +115 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +256 -0
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +83 -0
- rapidata/rapidata_client/filter/not_filter.py +2 -2
- rapidata/rapidata_client/filter/or_filter.py +2 -2
- rapidata/rapidata_client/metadata/__init__.py +1 -0
- rapidata/rapidata_client/metadata/_media_asset_metadata.py +8 -1
- rapidata/rapidata_client/metadata/_prompt_identifier_metadata.py +15 -0
- rapidata/rapidata_client/order/_rapidata_dataset.py +6 -6
- rapidata/rapidata_client/order/_rapidata_order_builder.py +4 -4
- rapidata/rapidata_client/rapidata_client.py +3 -3
- rapidata/service/openapi_service.py +5 -0
- {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/METADATA +1 -1
- {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/RECORD +88 -37
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard.py +0 -127
- rapidata/rapidata_client/leaderboard/rapidata_leaderboard_manager.py +0 -92
- /rapidata/rapidata_client/{leaderboard → benchmark}/__init__.py +0 -0
- {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/LICENSE +0 -0
- {rapidata-2.28.5.dist-info → rapidata-2.29.1.dist-info}/WHEEL +0 -0
|
@@ -16,13 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictBytes, StrictStr
|
|
19
|
+
from pydantic import Field, StrictBytes, StrictFloat, StrictInt, StrictStr
|
|
20
20
|
from typing import List, Optional, Tuple, Union
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from rapidata.api_client.models.create_demographic_rapid_model import CreateDemographicRapidModel
|
|
23
23
|
from rapidata.api_client.models.create_rapid_result import CreateRapidResult
|
|
24
24
|
from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
|
|
25
|
+
from rapidata.api_client.models.potential_validation_rapid_paged_result import PotentialValidationRapidPagedResult
|
|
25
26
|
from rapidata.api_client.models.query_model import QueryModel
|
|
27
|
+
from rapidata.api_client.models.query_validation_model import QueryValidationModel
|
|
26
28
|
from rapidata.api_client.models.rapid_model_paged_result import RapidModelPagedResult
|
|
27
29
|
from rapidata.api_client.models.update_validation_rapid_model import UpdateValidationRapidModel
|
|
28
30
|
|
|
@@ -44,6 +46,335 @@ class CustomerRapidApi:
|
|
|
44
46
|
self.api_client = api_client
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
@validate_call
|
|
50
|
+
def rapid_correlation_id_validation_potential_get(
|
|
51
|
+
self,
|
|
52
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
53
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
54
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
55
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
56
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
57
|
+
_request_timeout: Union[
|
|
58
|
+
None,
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
60
|
+
Tuple[
|
|
61
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
62
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
63
|
+
]
|
|
64
|
+
] = None,
|
|
65
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
66
|
+
_content_type: Optional[StrictStr] = None,
|
|
67
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
68
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
69
|
+
) -> PotentialValidationRapidPagedResult:
|
|
70
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
74
|
+
:type correlation_id: str
|
|
75
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
76
|
+
:type request: QueryValidationModel
|
|
77
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
78
|
+
:type min_responses: int
|
|
79
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
80
|
+
:type min_confidence: float
|
|
81
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
82
|
+
:type target_group_id: str
|
|
83
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
84
|
+
number provided, it will be total request
|
|
85
|
+
timeout. It can also be a pair (tuple) of
|
|
86
|
+
(connection, read) timeouts.
|
|
87
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
88
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
89
|
+
request; this effectively ignores the
|
|
90
|
+
authentication in the spec for a single request.
|
|
91
|
+
:type _request_auth: dict, optional
|
|
92
|
+
:param _content_type: force content-type for the request.
|
|
93
|
+
:type _content_type: str, Optional
|
|
94
|
+
:param _headers: set to override the headers for a single
|
|
95
|
+
request; this effectively ignores the headers
|
|
96
|
+
in the spec for a single request.
|
|
97
|
+
:type _headers: dict, optional
|
|
98
|
+
:param _host_index: set to override the host_index for a single
|
|
99
|
+
request; this effectively ignores the host_index
|
|
100
|
+
in the spec for a single request.
|
|
101
|
+
:type _host_index: int, optional
|
|
102
|
+
:return: Returns the result object.
|
|
103
|
+
""" # noqa: E501
|
|
104
|
+
|
|
105
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
106
|
+
correlation_id=correlation_id,
|
|
107
|
+
request=request,
|
|
108
|
+
min_responses=min_responses,
|
|
109
|
+
min_confidence=min_confidence,
|
|
110
|
+
target_group_id=target_group_id,
|
|
111
|
+
_request_auth=_request_auth,
|
|
112
|
+
_content_type=_content_type,
|
|
113
|
+
_headers=_headers,
|
|
114
|
+
_host_index=_host_index
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
118
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
119
|
+
}
|
|
120
|
+
response_data = self.api_client.call_api(
|
|
121
|
+
*_param,
|
|
122
|
+
_request_timeout=_request_timeout
|
|
123
|
+
)
|
|
124
|
+
response_data.read()
|
|
125
|
+
return self.api_client.response_deserialize(
|
|
126
|
+
response_data=response_data,
|
|
127
|
+
response_types_map=_response_types_map,
|
|
128
|
+
).data
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@validate_call
|
|
132
|
+
def rapid_correlation_id_validation_potential_get_with_http_info(
|
|
133
|
+
self,
|
|
134
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
135
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
136
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
137
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
138
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
139
|
+
_request_timeout: Union[
|
|
140
|
+
None,
|
|
141
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
142
|
+
Tuple[
|
|
143
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
144
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
145
|
+
]
|
|
146
|
+
] = None,
|
|
147
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
148
|
+
_content_type: Optional[StrictStr] = None,
|
|
149
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
150
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
151
|
+
) -> ApiResponse[PotentialValidationRapidPagedResult]:
|
|
152
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
156
|
+
:type correlation_id: str
|
|
157
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
158
|
+
:type request: QueryValidationModel
|
|
159
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
160
|
+
:type min_responses: int
|
|
161
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
162
|
+
:type min_confidence: float
|
|
163
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
164
|
+
:type target_group_id: str
|
|
165
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
166
|
+
number provided, it will be total request
|
|
167
|
+
timeout. It can also be a pair (tuple) of
|
|
168
|
+
(connection, read) timeouts.
|
|
169
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
170
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
171
|
+
request; this effectively ignores the
|
|
172
|
+
authentication in the spec for a single request.
|
|
173
|
+
:type _request_auth: dict, optional
|
|
174
|
+
:param _content_type: force content-type for the request.
|
|
175
|
+
:type _content_type: str, Optional
|
|
176
|
+
:param _headers: set to override the headers for a single
|
|
177
|
+
request; this effectively ignores the headers
|
|
178
|
+
in the spec for a single request.
|
|
179
|
+
:type _headers: dict, optional
|
|
180
|
+
:param _host_index: set to override the host_index for a single
|
|
181
|
+
request; this effectively ignores the host_index
|
|
182
|
+
in the spec for a single request.
|
|
183
|
+
:type _host_index: int, optional
|
|
184
|
+
:return: Returns the result object.
|
|
185
|
+
""" # noqa: E501
|
|
186
|
+
|
|
187
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
188
|
+
correlation_id=correlation_id,
|
|
189
|
+
request=request,
|
|
190
|
+
min_responses=min_responses,
|
|
191
|
+
min_confidence=min_confidence,
|
|
192
|
+
target_group_id=target_group_id,
|
|
193
|
+
_request_auth=_request_auth,
|
|
194
|
+
_content_type=_content_type,
|
|
195
|
+
_headers=_headers,
|
|
196
|
+
_host_index=_host_index
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
200
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
201
|
+
}
|
|
202
|
+
response_data = self.api_client.call_api(
|
|
203
|
+
*_param,
|
|
204
|
+
_request_timeout=_request_timeout
|
|
205
|
+
)
|
|
206
|
+
response_data.read()
|
|
207
|
+
return self.api_client.response_deserialize(
|
|
208
|
+
response_data=response_data,
|
|
209
|
+
response_types_map=_response_types_map,
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
@validate_call
|
|
214
|
+
def rapid_correlation_id_validation_potential_get_without_preload_content(
|
|
215
|
+
self,
|
|
216
|
+
correlation_id: Annotated[StrictStr, Field(description="The correlation id of the rapids to query, usually a workflow id.")],
|
|
217
|
+
request: Annotated[QueryValidationModel, Field(description="The query model containing the paging, filtering, and sorting information.")],
|
|
218
|
+
min_responses: Annotated[Optional[StrictInt], Field(description="The minimum number of responses a rapid should have to be considered eligible.")] = None,
|
|
219
|
+
min_confidence: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="The minimum confidence a rapid should have to be considered eligible.")] = None,
|
|
220
|
+
target_group_id: Annotated[Optional[StrictStr], Field(description="A specific subgroup of rapids to target.")] = None,
|
|
221
|
+
_request_timeout: Union[
|
|
222
|
+
None,
|
|
223
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
224
|
+
Tuple[
|
|
225
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
226
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
227
|
+
]
|
|
228
|
+
] = None,
|
|
229
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
230
|
+
_content_type: Optional[StrictStr] = None,
|
|
231
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
232
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
233
|
+
) -> RESTResponseType:
|
|
234
|
+
"""Queries rapids that are potentially eligible for validation set creation.
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
:param correlation_id: The correlation id of the rapids to query, usually a workflow id. (required)
|
|
238
|
+
:type correlation_id: str
|
|
239
|
+
:param request: The query model containing the paging, filtering, and sorting information. (required)
|
|
240
|
+
:type request: QueryValidationModel
|
|
241
|
+
:param min_responses: The minimum number of responses a rapid should have to be considered eligible.
|
|
242
|
+
:type min_responses: int
|
|
243
|
+
:param min_confidence: The minimum confidence a rapid should have to be considered eligible.
|
|
244
|
+
:type min_confidence: float
|
|
245
|
+
:param target_group_id: A specific subgroup of rapids to target.
|
|
246
|
+
:type target_group_id: str
|
|
247
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
248
|
+
number provided, it will be total request
|
|
249
|
+
timeout. It can also be a pair (tuple) of
|
|
250
|
+
(connection, read) timeouts.
|
|
251
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
252
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
253
|
+
request; this effectively ignores the
|
|
254
|
+
authentication in the spec for a single request.
|
|
255
|
+
:type _request_auth: dict, optional
|
|
256
|
+
:param _content_type: force content-type for the request.
|
|
257
|
+
:type _content_type: str, Optional
|
|
258
|
+
:param _headers: set to override the headers for a single
|
|
259
|
+
request; this effectively ignores the headers
|
|
260
|
+
in the spec for a single request.
|
|
261
|
+
:type _headers: dict, optional
|
|
262
|
+
:param _host_index: set to override the host_index for a single
|
|
263
|
+
request; this effectively ignores the host_index
|
|
264
|
+
in the spec for a single request.
|
|
265
|
+
:type _host_index: int, optional
|
|
266
|
+
:return: Returns the result object.
|
|
267
|
+
""" # noqa: E501
|
|
268
|
+
|
|
269
|
+
_param = self._rapid_correlation_id_validation_potential_get_serialize(
|
|
270
|
+
correlation_id=correlation_id,
|
|
271
|
+
request=request,
|
|
272
|
+
min_responses=min_responses,
|
|
273
|
+
min_confidence=min_confidence,
|
|
274
|
+
target_group_id=target_group_id,
|
|
275
|
+
_request_auth=_request_auth,
|
|
276
|
+
_content_type=_content_type,
|
|
277
|
+
_headers=_headers,
|
|
278
|
+
_host_index=_host_index
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
282
|
+
'200': "PotentialValidationRapidPagedResult",
|
|
283
|
+
}
|
|
284
|
+
response_data = self.api_client.call_api(
|
|
285
|
+
*_param,
|
|
286
|
+
_request_timeout=_request_timeout
|
|
287
|
+
)
|
|
288
|
+
return response_data.response
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
def _rapid_correlation_id_validation_potential_get_serialize(
|
|
292
|
+
self,
|
|
293
|
+
correlation_id,
|
|
294
|
+
request,
|
|
295
|
+
min_responses,
|
|
296
|
+
min_confidence,
|
|
297
|
+
target_group_id,
|
|
298
|
+
_request_auth,
|
|
299
|
+
_content_type,
|
|
300
|
+
_headers,
|
|
301
|
+
_host_index,
|
|
302
|
+
) -> RequestSerialized:
|
|
303
|
+
|
|
304
|
+
_host = None
|
|
305
|
+
|
|
306
|
+
_collection_formats: Dict[str, str] = {
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
_path_params: Dict[str, str] = {}
|
|
310
|
+
_query_params: List[Tuple[str, str]] = []
|
|
311
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
312
|
+
_form_params: List[Tuple[str, str]] = []
|
|
313
|
+
_files: Dict[
|
|
314
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
315
|
+
] = {}
|
|
316
|
+
_body_params: Optional[bytes] = None
|
|
317
|
+
|
|
318
|
+
# process the path parameters
|
|
319
|
+
if correlation_id is not None:
|
|
320
|
+
_path_params['CorrelationId'] = correlation_id
|
|
321
|
+
# process the query parameters
|
|
322
|
+
if request is not None:
|
|
323
|
+
|
|
324
|
+
_query_params.append(('Request', request))
|
|
325
|
+
|
|
326
|
+
if min_responses is not None:
|
|
327
|
+
|
|
328
|
+
_query_params.append(('MinResponses', min_responses))
|
|
329
|
+
|
|
330
|
+
if min_confidence is not None:
|
|
331
|
+
|
|
332
|
+
_query_params.append(('MinConfidence', min_confidence))
|
|
333
|
+
|
|
334
|
+
if target_group_id is not None:
|
|
335
|
+
|
|
336
|
+
_query_params.append(('TargetGroupId', target_group_id))
|
|
337
|
+
|
|
338
|
+
# process the header parameters
|
|
339
|
+
# process the form parameters
|
|
340
|
+
# process the body parameter
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
# set the HTTP header `Accept`
|
|
344
|
+
if 'Accept' not in _header_params:
|
|
345
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
346
|
+
[
|
|
347
|
+
'text/plain',
|
|
348
|
+
'application/json',
|
|
349
|
+
'text/json'
|
|
350
|
+
]
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
# authentication setting
|
|
355
|
+
_auth_settings: List[str] = [
|
|
356
|
+
'bearer',
|
|
357
|
+
'oauth2'
|
|
358
|
+
]
|
|
359
|
+
|
|
360
|
+
return self.api_client.param_serialize(
|
|
361
|
+
method='GET',
|
|
362
|
+
resource_path='/rapid/{correlationId}/validation-potential',
|
|
363
|
+
path_params=_path_params,
|
|
364
|
+
query_params=_query_params,
|
|
365
|
+
header_params=_header_params,
|
|
366
|
+
body=_body_params,
|
|
367
|
+
post_params=_form_params,
|
|
368
|
+
files=_files,
|
|
369
|
+
auth_settings=_auth_settings,
|
|
370
|
+
collection_formats=_collection_formats,
|
|
371
|
+
_host=_host,
|
|
372
|
+
_request_auth=_request_auth
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
47
378
|
@validate_call
|
|
48
379
|
def rapid_demographic_post(
|
|
49
380
|
self,
|
|
@@ -1195,6 +1195,7 @@ class DatasetApi:
|
|
|
1195
1195
|
def dataset_dataset_id_datapoints_post(
|
|
1196
1196
|
self,
|
|
1197
1197
|
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1198
|
+
prompt_asset: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The prompt asset is a file that can be added to the prompt metadata of the asset.")] = None,
|
|
1198
1199
|
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1199
1200
|
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1200
1201
|
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
@@ -1219,6 +1220,8 @@ class DatasetApi:
|
|
|
1219
1220
|
|
|
1220
1221
|
:param dataset_id: The id of the dataset (required)
|
|
1221
1222
|
:type dataset_id: str
|
|
1223
|
+
:param prompt_asset: The prompt asset is a file that can be added to the prompt metadata of the asset.
|
|
1224
|
+
:type prompt_asset: List[bytearray]
|
|
1222
1225
|
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1223
1226
|
:type file: List[bytearray]
|
|
1224
1227
|
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
@@ -1253,6 +1256,7 @@ class DatasetApi:
|
|
|
1253
1256
|
|
|
1254
1257
|
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
1255
1258
|
dataset_id=dataset_id,
|
|
1259
|
+
prompt_asset=prompt_asset,
|
|
1256
1260
|
file=file,
|
|
1257
1261
|
text=text,
|
|
1258
1262
|
url=url,
|
|
@@ -1282,6 +1286,7 @@ class DatasetApi:
|
|
|
1282
1286
|
def dataset_dataset_id_datapoints_post_with_http_info(
|
|
1283
1287
|
self,
|
|
1284
1288
|
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1289
|
+
prompt_asset: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The prompt asset is a file that can be added to the prompt metadata of the asset.")] = None,
|
|
1285
1290
|
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1286
1291
|
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1287
1292
|
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
@@ -1306,6 +1311,8 @@ class DatasetApi:
|
|
|
1306
1311
|
|
|
1307
1312
|
:param dataset_id: The id of the dataset (required)
|
|
1308
1313
|
:type dataset_id: str
|
|
1314
|
+
:param prompt_asset: The prompt asset is a file that can be added to the prompt metadata of the asset.
|
|
1315
|
+
:type prompt_asset: List[bytearray]
|
|
1309
1316
|
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1310
1317
|
:type file: List[bytearray]
|
|
1311
1318
|
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
@@ -1340,6 +1347,7 @@ class DatasetApi:
|
|
|
1340
1347
|
|
|
1341
1348
|
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
1342
1349
|
dataset_id=dataset_id,
|
|
1350
|
+
prompt_asset=prompt_asset,
|
|
1343
1351
|
file=file,
|
|
1344
1352
|
text=text,
|
|
1345
1353
|
url=url,
|
|
@@ -1369,6 +1377,7 @@ class DatasetApi:
|
|
|
1369
1377
|
def dataset_dataset_id_datapoints_post_without_preload_content(
|
|
1370
1378
|
self,
|
|
1371
1379
|
dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
|
|
1380
|
+
prompt_asset: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The prompt asset is a file that can be added to the prompt metadata of the asset.")] = None,
|
|
1372
1381
|
file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
|
|
1373
1382
|
text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
|
|
1374
1383
|
url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
|
|
@@ -1393,6 +1402,8 @@ class DatasetApi:
|
|
|
1393
1402
|
|
|
1394
1403
|
:param dataset_id: The id of the dataset (required)
|
|
1395
1404
|
:type dataset_id: str
|
|
1405
|
+
:param prompt_asset: The prompt asset is a file that can be added to the prompt metadata of the asset.
|
|
1406
|
+
:type prompt_asset: List[bytearray]
|
|
1396
1407
|
:param file: The files to upload from the local storage. Must be either images or videos.
|
|
1397
1408
|
:type file: List[bytearray]
|
|
1398
1409
|
:param text: The texts to upload. The length limit is set at 256 characters per text.
|
|
@@ -1427,6 +1438,7 @@ class DatasetApi:
|
|
|
1427
1438
|
|
|
1428
1439
|
_param = self._dataset_dataset_id_datapoints_post_serialize(
|
|
1429
1440
|
dataset_id=dataset_id,
|
|
1441
|
+
prompt_asset=prompt_asset,
|
|
1430
1442
|
file=file,
|
|
1431
1443
|
text=text,
|
|
1432
1444
|
url=url,
|
|
@@ -1451,6 +1463,7 @@ class DatasetApi:
|
|
|
1451
1463
|
def _dataset_dataset_id_datapoints_post_serialize(
|
|
1452
1464
|
self,
|
|
1453
1465
|
dataset_id,
|
|
1466
|
+
prompt_asset,
|
|
1454
1467
|
file,
|
|
1455
1468
|
text,
|
|
1456
1469
|
url,
|
|
@@ -1465,6 +1478,7 @@ class DatasetApi:
|
|
|
1465
1478
|
_host = None
|
|
1466
1479
|
|
|
1467
1480
|
_collection_formats: Dict[str, str] = {
|
|
1481
|
+
'promptAsset': 'csv',
|
|
1468
1482
|
'file': 'csv',
|
|
1469
1483
|
'text': 'multi',
|
|
1470
1484
|
'url': 'multi',
|
|
@@ -1486,6 +1500,8 @@ class DatasetApi:
|
|
|
1486
1500
|
# process the query parameters
|
|
1487
1501
|
# process the header parameters
|
|
1488
1502
|
# process the form parameters
|
|
1503
|
+
if prompt_asset is not None:
|
|
1504
|
+
_files['promptAsset'] = prompt_asset
|
|
1489
1505
|
if file is not None:
|
|
1490
1506
|
_files['file'] = file
|
|
1491
1507
|
if text is not None:
|