rapidata 2.21.4__py3-none-any.whl → 2.22.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 (62) hide show
  1. rapidata/__init__.py +5 -0
  2. rapidata/api_client/__init__.py +8 -4
  3. rapidata/api_client/api/__init__.py +1 -0
  4. rapidata/api_client/api/evaluation_workflow_api.py +372 -0
  5. rapidata/api_client/api/identity_api.py +268 -0
  6. rapidata/api_client/api/rapid_api.py +353 -1987
  7. rapidata/api_client/api/simple_workflow_api.py +6 -6
  8. rapidata/api_client/models/__init__.py +7 -4
  9. rapidata/api_client/models/add_campaign_model.py +25 -1
  10. rapidata/api_client/models/add_validation_rapid_model_truth.py +24 -10
  11. rapidata/api_client/models/compare_result.py +2 -0
  12. rapidata/api_client/models/create_order_model.py +43 -2
  13. rapidata/api_client/models/evaluation_workflow_model1.py +115 -0
  14. rapidata/api_client/models/filter.py +2 -2
  15. rapidata/api_client/models/get_validation_rapids_result.py +11 -4
  16. rapidata/api_client/models/get_validation_rapids_result_truth.py +24 -10
  17. rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
  18. rapidata/api_client/models/get_workflow_results_result.py +118 -0
  19. rapidata/api_client/models/get_workflow_results_result_paged_result.py +105 -0
  20. rapidata/api_client/models/google_one_tap_login_model.py +87 -0
  21. rapidata/api_client/models/labeling_selection.py +22 -3
  22. rapidata/api_client/models/logic_operator.py +1 -0
  23. rapidata/api_client/models/rapid_response.py +3 -1
  24. rapidata/api_client/models/retrieval_mode.py +38 -0
  25. rapidata/api_client/models/root_filter.py +2 -2
  26. rapidata/api_client/models/skip_truth.py +94 -0
  27. rapidata/api_client/models/sticky_state.py +38 -0
  28. rapidata/api_client/models/update_validation_rapid_model.py +11 -4
  29. rapidata/api_client/models/update_validation_rapid_model_truth.py +24 -10
  30. rapidata/api_client/rest.py +1 -0
  31. rapidata/api_client_README.md +10 -11
  32. rapidata/rapidata_client/__init__.py +7 -0
  33. rapidata/rapidata_client/api/rapidata_exception.py +5 -3
  34. rapidata/rapidata_client/assets/__init__.py +1 -0
  35. rapidata/rapidata_client/assets/_media_asset.py +16 -10
  36. rapidata/rapidata_client/assets/_multi_asset.py +6 -0
  37. rapidata/rapidata_client/assets/_sessions.py +35 -0
  38. rapidata/rapidata_client/assets/_text_asset.py +6 -0
  39. rapidata/rapidata_client/demographic/demographic_manager.py +2 -35
  40. rapidata/rapidata_client/logging/__init__.py +2 -0
  41. rapidata/rapidata_client/logging/logger.py +47 -0
  42. rapidata/rapidata_client/logging/output_manager.py +16 -0
  43. rapidata/rapidata_client/order/_rapidata_dataset.py +11 -15
  44. rapidata/rapidata_client/order/_rapidata_order_builder.py +15 -2
  45. rapidata/rapidata_client/order/rapidata_order.py +23 -14
  46. rapidata/rapidata_client/order/rapidata_order_manager.py +4 -2
  47. rapidata/rapidata_client/order/rapidata_results.py +2 -1
  48. rapidata/rapidata_client/rapidata_client.py +6 -1
  49. rapidata/rapidata_client/selection/__init__.py +1 -0
  50. rapidata/rapidata_client/selection/labeling_selection.py +8 -2
  51. rapidata/rapidata_client/selection/retrieval_modes.py +9 -0
  52. rapidata/rapidata_client/settings/alert_on_fast_response.py +2 -1
  53. rapidata/rapidata_client/settings/free_text_minimum_characters.py +2 -1
  54. rapidata/rapidata_client/validation/rapidata_validation_set.py +4 -34
  55. rapidata/rapidata_client/validation/rapids/rapids.py +6 -7
  56. rapidata/rapidata_client/validation/validation_set_manager.py +39 -36
  57. rapidata/service/credential_manager.py +22 -30
  58. rapidata/service/openapi_service.py +11 -0
  59. {rapidata-2.21.4.dist-info → rapidata-2.22.0.dist-info}/METADATA +2 -1
  60. {rapidata-2.21.4.dist-info → rapidata-2.22.0.dist-info}/RECORD +62 -49
  61. {rapidata-2.21.4.dist-info → rapidata-2.22.0.dist-info}/WHEEL +1 -1
  62. {rapidata-2.21.4.dist-info → rapidata-2.22.0.dist-info}/LICENSE +0 -0
rapidata/__init__.py CHANGED
@@ -2,6 +2,7 @@ from .rapidata_client import (
2
2
  RapidataClient,
3
3
  DemographicSelection,
4
4
  LabelingSelection,
5
+ RetrievalMode,
5
6
  ValidationSelection,
6
7
  ConditionalValidationSelection,
7
8
  CappedSelection,
@@ -29,4 +30,8 @@ from .rapidata_client import (
29
30
  MultiAsset,
30
31
  RapidataDataTypes,
31
32
  Box,
33
+ PromptMetadata,
34
+ logger,
35
+ configure_logger,
36
+ OutputManger,
32
37
  )
@@ -23,6 +23,7 @@ from rapidata.api_client.api.coco_api import CocoApi
23
23
  from rapidata.api_client.api.compare_workflow_api import CompareWorkflowApi
24
24
  from rapidata.api_client.api.datapoint_api import DatapointApi
25
25
  from rapidata.api_client.api.dataset_api import DatasetApi
26
+ from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
26
27
  from rapidata.api_client.api.feedback_api import FeedbackApi
27
28
  from rapidata.api_client.api.identity_api import IdentityApi
28
29
  from rapidata.api_client.api.newsletter_api import NewsletterApi
@@ -150,6 +151,7 @@ from rapidata.api_client.models.elo_config_model import EloConfigModel
150
151
  from rapidata.api_client.models.empty_validation_truth import EmptyValidationTruth
151
152
  from rapidata.api_client.models.evaluation_workflow_config import EvaluationWorkflowConfig
152
153
  from rapidata.api_client.models.evaluation_workflow_model import EvaluationWorkflowModel
154
+ from rapidata.api_client.models.evaluation_workflow_model1 import EvaluationWorkflowModel1
153
155
  from rapidata.api_client.models.feature_flag import FeatureFlag
154
156
  from rapidata.api_client.models.feature_flag_model import FeatureFlagModel
155
157
  from rapidata.api_client.models.feedback_model import FeedbackModel
@@ -180,8 +182,6 @@ from rapidata.api_client.models.get_public_orders_result import GetPublicOrdersR
180
182
  from rapidata.api_client.models.get_rapid_responses_result import GetRapidResponsesResult
181
183
  from rapidata.api_client.models.get_responses_result import GetResponsesResult
182
184
  from rapidata.api_client.models.get_simple_workflow_results_model import GetSimpleWorkflowResultsModel
183
- from rapidata.api_client.models.get_simple_workflow_results_result import GetSimpleWorkflowResultsResult
184
- from rapidata.api_client.models.get_simple_workflow_results_result_paged_result import GetSimpleWorkflowResultsResultPagedResult
185
185
  from rapidata.api_client.models.get_validation_rapids_result import GetValidationRapidsResult
186
186
  from rapidata.api_client.models.get_validation_rapids_result_asset import GetValidationRapidsResultAsset
187
187
  from rapidata.api_client.models.get_validation_rapids_result_paged_result import GetValidationRapidsResultPagedResult
@@ -191,6 +191,9 @@ from rapidata.api_client.models.get_validation_set_by_id_result import GetValida
191
191
  from rapidata.api_client.models.get_workflow_by_id_result import GetWorkflowByIdResult
192
192
  from rapidata.api_client.models.get_workflow_by_id_result_workflow import GetWorkflowByIdResultWorkflow
193
193
  from rapidata.api_client.models.get_workflow_progress_result import GetWorkflowProgressResult
194
+ from rapidata.api_client.models.get_workflow_results_result import GetWorkflowResultsResult
195
+ from rapidata.api_client.models.get_workflow_results_result_paged_result import GetWorkflowResultsResultPagedResult
196
+ from rapidata.api_client.models.google_one_tap_login_model import GoogleOneTapLoginModel
194
197
  from rapidata.api_client.models.i_workflow_model_paged_result import IWorkflowModelPagedResult
195
198
  from rapidata.api_client.models.image_dimension_metadata import ImageDimensionMetadata
196
199
  from rapidata.api_client.models.image_dimension_metadata_model import ImageDimensionMetadataModel
@@ -254,8 +257,6 @@ from rapidata.api_client.models.prompt_metadata_model import PromptMetadataModel
254
257
  from rapidata.api_client.models.public_order_model import PublicOrderModel
255
258
  from rapidata.api_client.models.public_text_metadata_input import PublicTextMetadataInput
256
259
  from rapidata.api_client.models.query_model import QueryModel
257
- from rapidata.api_client.models.query_validation_rapids_result import QueryValidationRapidsResult
258
- from rapidata.api_client.models.query_validation_rapids_result_paged_result import QueryValidationRapidsResultPagedResult
259
260
  from rapidata.api_client.models.query_workflows_model import QueryWorkflowsModel
260
261
  from rapidata.api_client.models.rapid_issue import RapidIssue
261
262
  from rapidata.api_client.models.rapid_response import RapidResponse
@@ -269,6 +270,7 @@ from rapidata.api_client.models.register_temporary_customer_model import Registe
269
270
  from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
270
271
  from rapidata.api_client.models.report_model import ReportModel
271
272
  from rapidata.api_client.models.response_count_user_filter_model import ResponseCountUserFilterModel
273
+ from rapidata.api_client.models.retrieval_mode import RetrievalMode
272
274
  from rapidata.api_client.models.root_filter import RootFilter
273
275
  from rapidata.api_client.models.scrub_payload import ScrubPayload
274
276
  from rapidata.api_client.models.scrub_range import ScrubRange
@@ -285,11 +287,13 @@ from rapidata.api_client.models.simple_workflow_model import SimpleWorkflowModel
285
287
  from rapidata.api_client.models.simple_workflow_model1 import SimpleWorkflowModel1
286
288
  from rapidata.api_client.models.simple_workflow_model_blueprint import SimpleWorkflowModelBlueprint
287
289
  from rapidata.api_client.models.skip_result import SkipResult
290
+ from rapidata.api_client.models.skip_truth import SkipTruth
288
291
  from rapidata.api_client.models.sort_criterion import SortCriterion
289
292
  from rapidata.api_client.models.sort_direction import SortDirection
290
293
  from rapidata.api_client.models.source_url_metadata import SourceUrlMetadata
291
294
  from rapidata.api_client.models.source_url_metadata_model import SourceUrlMetadataModel
292
295
  from rapidata.api_client.models.static_selection import StaticSelection
296
+ from rapidata.api_client.models.sticky_state import StickyState
293
297
  from rapidata.api_client.models.submit_coco_model import SubmitCocoModel
294
298
  from rapidata.api_client.models.submit_coco_result import SubmitCocoResult
295
299
  from rapidata.api_client.models.text_asset_model import TextAssetModel
@@ -7,6 +7,7 @@ from rapidata.api_client.api.coco_api import CocoApi
7
7
  from rapidata.api_client.api.compare_workflow_api import CompareWorkflowApi
8
8
  from rapidata.api_client.api.datapoint_api import DatapointApi
9
9
  from rapidata.api_client.api.dataset_api import DatasetApi
10
+ from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
10
11
  from rapidata.api_client.api.feedback_api import FeedbackApi
11
12
  from rapidata.api_client.api.identity_api import IdentityApi
12
13
  from rapidata.api_client.api.newsletter_api import NewsletterApi
@@ -0,0 +1,372 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictInt, StrictStr
20
+ from typing import List, Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.get_workflow_results_result_paged_result import GetWorkflowResultsResultPagedResult
23
+ from rapidata.api_client.models.rapid_state import RapidState
24
+ from rapidata.api_client.models.sort_criterion import SortCriterion
25
+
26
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
27
+ from rapidata.api_client.api_response import ApiResponse
28
+ from rapidata.api_client.rest import RESTResponseType
29
+
30
+
31
+ class EvaluationWorkflowApi:
32
+ """NOTE: This class is auto generated by OpenAPI Generator
33
+ Ref: https://openapi-generator.tech
34
+
35
+ Do not edit the class manually.
36
+ """
37
+
38
+ def __init__(self, api_client=None) -> None:
39
+ if api_client is None:
40
+ api_client = ApiClient.get_default()
41
+ self.api_client = api_client
42
+
43
+
44
+ @validate_call
45
+ def workflow_evaluation_workflow_id_results_get(
46
+ self,
47
+ workflow_id: Annotated[StrictStr, Field(description="The ID of the workflow to get the results for.")],
48
+ page_index: Optional[StrictInt] = None,
49
+ page_size: Optional[StrictInt] = None,
50
+ states: Annotated[Optional[List[RapidState]], Field(description="An optional list of states to filter the rapids by.")] = None,
51
+ sort_criteria: Annotated[Optional[List[SortCriterion]], Field(description="A list of criteria to sort the results by.")] = None,
52
+ _request_timeout: Union[
53
+ None,
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Tuple[
56
+ Annotated[StrictFloat, Field(gt=0)],
57
+ Annotated[StrictFloat, Field(gt=0)]
58
+ ]
59
+ ] = None,
60
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
61
+ _content_type: Optional[StrictStr] = None,
62
+ _headers: Optional[Dict[StrictStr, Any]] = None,
63
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
64
+ ) -> GetWorkflowResultsResultPagedResult:
65
+ """Get the results for an evaluation workflow.
66
+
67
+
68
+ :param workflow_id: The ID of the workflow to get the results for. (required)
69
+ :type workflow_id: str
70
+ :param page_index:
71
+ :type page_index: int
72
+ :param page_size:
73
+ :type page_size: int
74
+ :param states: An optional list of states to filter the rapids by.
75
+ :type states: List[RapidState]
76
+ :param sort_criteria: A list of criteria to sort the results by.
77
+ :type sort_criteria: List[SortCriterion]
78
+ :param _request_timeout: timeout setting for this request. If one
79
+ number provided, it will be total request
80
+ timeout. It can also be a pair (tuple) of
81
+ (connection, read) timeouts.
82
+ :type _request_timeout: int, tuple(int, int), optional
83
+ :param _request_auth: set to override the auth_settings for an a single
84
+ request; this effectively ignores the
85
+ authentication in the spec for a single request.
86
+ :type _request_auth: dict, optional
87
+ :param _content_type: force content-type for the request.
88
+ :type _content_type: str, Optional
89
+ :param _headers: set to override the headers for a single
90
+ request; this effectively ignores the headers
91
+ in the spec for a single request.
92
+ :type _headers: dict, optional
93
+ :param _host_index: set to override the host_index for a single
94
+ request; this effectively ignores the host_index
95
+ in the spec for a single request.
96
+ :type _host_index: int, optional
97
+ :return: Returns the result object.
98
+ """ # noqa: E501
99
+
100
+ _param = self._workflow_evaluation_workflow_id_results_get_serialize(
101
+ workflow_id=workflow_id,
102
+ page_index=page_index,
103
+ page_size=page_size,
104
+ states=states,
105
+ sort_criteria=sort_criteria,
106
+ _request_auth=_request_auth,
107
+ _content_type=_content_type,
108
+ _headers=_headers,
109
+ _host_index=_host_index
110
+ )
111
+
112
+ _response_types_map: Dict[str, Optional[str]] = {
113
+ '200': "GetWorkflowResultsResultPagedResult",
114
+ }
115
+ response_data = self.api_client.call_api(
116
+ *_param,
117
+ _request_timeout=_request_timeout
118
+ )
119
+ response_data.read()
120
+ return self.api_client.response_deserialize(
121
+ response_data=response_data,
122
+ response_types_map=_response_types_map,
123
+ ).data
124
+
125
+
126
+ @validate_call
127
+ def workflow_evaluation_workflow_id_results_get_with_http_info(
128
+ self,
129
+ workflow_id: Annotated[StrictStr, Field(description="The ID of the workflow to get the results for.")],
130
+ page_index: Optional[StrictInt] = None,
131
+ page_size: Optional[StrictInt] = None,
132
+ states: Annotated[Optional[List[RapidState]], Field(description="An optional list of states to filter the rapids by.")] = None,
133
+ sort_criteria: Annotated[Optional[List[SortCriterion]], Field(description="A list of criteria to sort the results by.")] = None,
134
+ _request_timeout: Union[
135
+ None,
136
+ Annotated[StrictFloat, Field(gt=0)],
137
+ Tuple[
138
+ Annotated[StrictFloat, Field(gt=0)],
139
+ Annotated[StrictFloat, Field(gt=0)]
140
+ ]
141
+ ] = None,
142
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
143
+ _content_type: Optional[StrictStr] = None,
144
+ _headers: Optional[Dict[StrictStr, Any]] = None,
145
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
146
+ ) -> ApiResponse[GetWorkflowResultsResultPagedResult]:
147
+ """Get the results for an evaluation workflow.
148
+
149
+
150
+ :param workflow_id: The ID of the workflow to get the results for. (required)
151
+ :type workflow_id: str
152
+ :param page_index:
153
+ :type page_index: int
154
+ :param page_size:
155
+ :type page_size: int
156
+ :param states: An optional list of states to filter the rapids by.
157
+ :type states: List[RapidState]
158
+ :param sort_criteria: A list of criteria to sort the results by.
159
+ :type sort_criteria: List[SortCriterion]
160
+ :param _request_timeout: timeout setting for this request. If one
161
+ number provided, it will be total request
162
+ timeout. It can also be a pair (tuple) of
163
+ (connection, read) timeouts.
164
+ :type _request_timeout: int, tuple(int, int), optional
165
+ :param _request_auth: set to override the auth_settings for an a single
166
+ request; this effectively ignores the
167
+ authentication in the spec for a single request.
168
+ :type _request_auth: dict, optional
169
+ :param _content_type: force content-type for the request.
170
+ :type _content_type: str, Optional
171
+ :param _headers: set to override the headers for a single
172
+ request; this effectively ignores the headers
173
+ in the spec for a single request.
174
+ :type _headers: dict, optional
175
+ :param _host_index: set to override the host_index for a single
176
+ request; this effectively ignores the host_index
177
+ in the spec for a single request.
178
+ :type _host_index: int, optional
179
+ :return: Returns the result object.
180
+ """ # noqa: E501
181
+
182
+ _param = self._workflow_evaluation_workflow_id_results_get_serialize(
183
+ workflow_id=workflow_id,
184
+ page_index=page_index,
185
+ page_size=page_size,
186
+ states=states,
187
+ sort_criteria=sort_criteria,
188
+ _request_auth=_request_auth,
189
+ _content_type=_content_type,
190
+ _headers=_headers,
191
+ _host_index=_host_index
192
+ )
193
+
194
+ _response_types_map: Dict[str, Optional[str]] = {
195
+ '200': "GetWorkflowResultsResultPagedResult",
196
+ }
197
+ response_data = self.api_client.call_api(
198
+ *_param,
199
+ _request_timeout=_request_timeout
200
+ )
201
+ response_data.read()
202
+ return self.api_client.response_deserialize(
203
+ response_data=response_data,
204
+ response_types_map=_response_types_map,
205
+ )
206
+
207
+
208
+ @validate_call
209
+ def workflow_evaluation_workflow_id_results_get_without_preload_content(
210
+ self,
211
+ workflow_id: Annotated[StrictStr, Field(description="The ID of the workflow to get the results for.")],
212
+ page_index: Optional[StrictInt] = None,
213
+ page_size: Optional[StrictInt] = None,
214
+ states: Annotated[Optional[List[RapidState]], Field(description="An optional list of states to filter the rapids by.")] = None,
215
+ sort_criteria: Annotated[Optional[List[SortCriterion]], Field(description="A list of criteria to sort the results by.")] = None,
216
+ _request_timeout: Union[
217
+ None,
218
+ Annotated[StrictFloat, Field(gt=0)],
219
+ Tuple[
220
+ Annotated[StrictFloat, Field(gt=0)],
221
+ Annotated[StrictFloat, Field(gt=0)]
222
+ ]
223
+ ] = None,
224
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
225
+ _content_type: Optional[StrictStr] = None,
226
+ _headers: Optional[Dict[StrictStr, Any]] = None,
227
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
228
+ ) -> RESTResponseType:
229
+ """Get the results for an evaluation workflow.
230
+
231
+
232
+ :param workflow_id: The ID of the workflow to get the results for. (required)
233
+ :type workflow_id: str
234
+ :param page_index:
235
+ :type page_index: int
236
+ :param page_size:
237
+ :type page_size: int
238
+ :param states: An optional list of states to filter the rapids by.
239
+ :type states: List[RapidState]
240
+ :param sort_criteria: A list of criteria to sort the results by.
241
+ :type sort_criteria: List[SortCriterion]
242
+ :param _request_timeout: timeout setting for this request. If one
243
+ number provided, it will be total request
244
+ timeout. It can also be a pair (tuple) of
245
+ (connection, read) timeouts.
246
+ :type _request_timeout: int, tuple(int, int), optional
247
+ :param _request_auth: set to override the auth_settings for an a single
248
+ request; this effectively ignores the
249
+ authentication in the spec for a single request.
250
+ :type _request_auth: dict, optional
251
+ :param _content_type: force content-type for the request.
252
+ :type _content_type: str, Optional
253
+ :param _headers: set to override the headers for a single
254
+ request; this effectively ignores the headers
255
+ in the spec for a single request.
256
+ :type _headers: dict, optional
257
+ :param _host_index: set to override the host_index for a single
258
+ request; this effectively ignores the host_index
259
+ in the spec for a single request.
260
+ :type _host_index: int, optional
261
+ :return: Returns the result object.
262
+ """ # noqa: E501
263
+
264
+ _param = self._workflow_evaluation_workflow_id_results_get_serialize(
265
+ workflow_id=workflow_id,
266
+ page_index=page_index,
267
+ page_size=page_size,
268
+ states=states,
269
+ sort_criteria=sort_criteria,
270
+ _request_auth=_request_auth,
271
+ _content_type=_content_type,
272
+ _headers=_headers,
273
+ _host_index=_host_index
274
+ )
275
+
276
+ _response_types_map: Dict[str, Optional[str]] = {
277
+ '200': "GetWorkflowResultsResultPagedResult",
278
+ }
279
+ response_data = self.api_client.call_api(
280
+ *_param,
281
+ _request_timeout=_request_timeout
282
+ )
283
+ return response_data.response
284
+
285
+
286
+ def _workflow_evaluation_workflow_id_results_get_serialize(
287
+ self,
288
+ workflow_id,
289
+ page_index,
290
+ page_size,
291
+ states,
292
+ sort_criteria,
293
+ _request_auth,
294
+ _content_type,
295
+ _headers,
296
+ _host_index,
297
+ ) -> RequestSerialized:
298
+
299
+ _host = None
300
+
301
+ _collection_formats: Dict[str, str] = {
302
+ 'States': 'multi',
303
+ 'SortCriteria': 'multi',
304
+ }
305
+
306
+ _path_params: Dict[str, str] = {}
307
+ _query_params: List[Tuple[str, str]] = []
308
+ _header_params: Dict[str, Optional[str]] = _headers or {}
309
+ _form_params: List[Tuple[str, str]] = []
310
+ _files: Dict[
311
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
312
+ ] = {}
313
+ _body_params: Optional[bytes] = None
314
+
315
+ # process the path parameters
316
+ if workflow_id is not None:
317
+ _path_params['workflowId'] = workflow_id
318
+ # process the query parameters
319
+ if page_index is not None:
320
+
321
+ _query_params.append(('Page.Index', page_index))
322
+
323
+ if page_size is not None:
324
+
325
+ _query_params.append(('Page.Size', page_size))
326
+
327
+ if states is not None:
328
+
329
+ _query_params.append(('States', states))
330
+
331
+ if sort_criteria is not None:
332
+
333
+ _query_params.append(('SortCriteria', sort_criteria))
334
+
335
+ # process the header parameters
336
+ # process the form parameters
337
+ # process the body parameter
338
+
339
+
340
+ # set the HTTP header `Accept`
341
+ if 'Accept' not in _header_params:
342
+ _header_params['Accept'] = self.api_client.select_header_accept(
343
+ [
344
+ 'text/plain',
345
+ 'application/json',
346
+ 'text/json'
347
+ ]
348
+ )
349
+
350
+
351
+ # authentication setting
352
+ _auth_settings: List[str] = [
353
+ 'bearer',
354
+ 'oauth2'
355
+ ]
356
+
357
+ return self.api_client.param_serialize(
358
+ method='GET',
359
+ resource_path='/workflow/evaluation/{workflowId}/results',
360
+ path_params=_path_params,
361
+ query_params=_query_params,
362
+ header_params=_header_params,
363
+ body=_body_params,
364
+ post_params=_form_params,
365
+ files=_files,
366
+ auth_settings=_auth_settings,
367
+ collection_formats=_collection_formats,
368
+ _host=_host,
369
+ _request_auth=_request_auth
370
+ )
371
+
372
+