eval-studio-client 1.0.1__py3-none-any.whl → 1.0.3a1__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 (179) hide show
  1. eval_studio_client/api/__init__.py +0 -43
  2. eval_studio_client/api/api/__init__.py +0 -5
  3. eval_studio_client/api/api/perturbator_service_api.py +1 -268
  4. eval_studio_client/api/api/test_service_api.py +0 -568
  5. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +0 -1
  6. eval_studio_client/api/docs/PerturbatorServiceApi.md +3 -33
  7. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -2
  8. eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +0 -1
  9. eval_studio_client/api/docs/TestServiceApi.md +0 -140
  10. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +0 -1
  11. eval_studio_client/api/docs/TestServicePerturbTestRequest.md +0 -1
  12. eval_studio_client/api/docs/V1CreateEvaluationRequest.md +0 -1
  13. eval_studio_client/api/docs/V1ImportEvaluationRequest.md +0 -1
  14. eval_studio_client/api/docs/V1TestCase.md +0 -1
  15. eval_studio_client/api/models/__init__.py +0 -38
  16. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +2 -8
  17. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -5
  18. eval_studio_client/api/models/required_the_test_case_to_update.py +2 -6
  19. eval_studio_client/api/models/test_service_generate_test_cases_request.py +2 -4
  20. eval_studio_client/api/models/test_service_perturb_test_request.py +2 -4
  21. eval_studio_client/api/models/v1_create_evaluation_request.py +2 -7
  22. eval_studio_client/api/models/v1_import_evaluation_request.py +2 -7
  23. eval_studio_client/api/models/v1_test_case.py +2 -6
  24. eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +2 -20
  25. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +1 -4
  26. eval_studio_client/api/test/test_required_the_test_case_to_update.py +1 -4
  27. eval_studio_client/api/test/test_test_service_api.py +0 -12
  28. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +1 -4
  29. eval_studio_client/api/test/test_test_service_perturb_test_request.py +1 -4
  30. eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +1 -4
  31. eval_studio_client/api/test/test_v1_create_evaluation_request.py +2 -20
  32. eval_studio_client/api/test/test_v1_create_test_case_response.py +1 -4
  33. eval_studio_client/api/test/test_v1_delete_test_case_response.py +1 -4
  34. eval_studio_client/api/test/test_v1_evaluation_test.py +1 -4
  35. eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +1 -4
  36. eval_studio_client/api/test/test_v1_get_test_case_response.py +1 -4
  37. eval_studio_client/api/test/test_v1_import_evaluation_request.py +1 -16
  38. eval_studio_client/api/test/test_v1_list_test_cases_response.py +1 -4
  39. eval_studio_client/api/test/test_v1_test_case.py +1 -4
  40. eval_studio_client/api/test/test_v1_update_test_case_response.py +1 -4
  41. eval_studio_client/client.py +11 -9
  42. eval_studio_client/dashboards.py +0 -29
  43. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +32 -1903
  44. eval_studio_client/leaderboards.py +0 -123
  45. eval_studio_client/models.py +42 -3
  46. eval_studio_client/test_labs.py +21 -49
  47. eval_studio_client/tests.py +1 -188
  48. {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/METADATA +3 -2
  49. {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/RECORD +50 -179
  50. {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/WHEEL +1 -1
  51. eval_studio_client/api/api/human_calibration_service_api.py +0 -304
  52. eval_studio_client/api/api/prompt_library_service_api.py +0 -669
  53. eval_studio_client/api/api/workflow_edge_service_api.py +0 -296
  54. eval_studio_client/api/api/workflow_node_service_api.py +0 -1634
  55. eval_studio_client/api/api/workflow_service_api.py +0 -1609
  56. eval_studio_client/api/docs/HumanCalibrationServiceApi.md +0 -77
  57. eval_studio_client/api/docs/PromptLibraryServiceApi.md +0 -155
  58. eval_studio_client/api/docs/ProtobufNullValue.md +0 -12
  59. eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +0 -44
  60. eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +0 -44
  61. eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +0 -32
  62. eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +0 -35
  63. eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +0 -29
  64. eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +0 -29
  65. eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +0 -29
  66. eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +0 -29
  67. eval_studio_client/api/docs/V1CreateWorkflowResponse.md +0 -29
  68. eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +0 -29
  69. eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +0 -29
  70. eval_studio_client/api/docs/V1EstimateThresholdRequest.md +0 -33
  71. eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +0 -30
  72. eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +0 -29
  73. eval_studio_client/api/docs/V1GetWorkflowResponse.md +0 -29
  74. eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +0 -29
  75. eval_studio_client/api/docs/V1ImportTestCasesRequest.md +0 -33
  76. eval_studio_client/api/docs/V1LabeledTestCase.md +0 -31
  77. eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +0 -29
  78. eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +0 -29
  79. eval_studio_client/api/docs/V1ListWorkflowsResponse.md +0 -29
  80. eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +0 -29
  81. eval_studio_client/api/docs/V1PromptLibraryItem.md +0 -42
  82. eval_studio_client/api/docs/V1TestSuiteEvaluates.md +0 -11
  83. eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +0 -29
  84. eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +0 -29
  85. eval_studio_client/api/docs/V1Workflow.md +0 -46
  86. eval_studio_client/api/docs/V1WorkflowEdge.md +0 -40
  87. eval_studio_client/api/docs/V1WorkflowEdgeType.md +0 -12
  88. eval_studio_client/api/docs/V1WorkflowNode.md +0 -46
  89. eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +0 -40
  90. eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +0 -29
  91. eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +0 -30
  92. eval_studio_client/api/docs/V1WorkflowNodeStatus.md +0 -12
  93. eval_studio_client/api/docs/V1WorkflowNodeType.md +0 -12
  94. eval_studio_client/api/docs/V1WorkflowNodeView.md +0 -12
  95. eval_studio_client/api/docs/V1WorkflowType.md +0 -12
  96. eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +0 -76
  97. eval_studio_client/api/docs/WorkflowNodeServiceApi.md +0 -423
  98. eval_studio_client/api/docs/WorkflowServiceApi.md +0 -417
  99. eval_studio_client/api/models/protobuf_null_value.py +0 -36
  100. eval_studio_client/api/models/required_the_updated_workflow.py +0 -152
  101. eval_studio_client/api/models/required_the_updated_workflow_node.py +0 -152
  102. eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +0 -93
  103. eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +0 -99
  104. eval_studio_client/api/models/v1_batch_delete_workflows_request.py +0 -87
  105. eval_studio_client/api/models/v1_batch_delete_workflows_response.py +0 -95
  106. eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +0 -95
  107. eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +0 -95
  108. eval_studio_client/api/models/v1_create_workflow_response.py +0 -91
  109. eval_studio_client/api/models/v1_delete_workflow_node_response.py +0 -91
  110. eval_studio_client/api/models/v1_delete_workflow_response.py +0 -91
  111. eval_studio_client/api/models/v1_estimate_threshold_request.py +0 -103
  112. eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +0 -89
  113. eval_studio_client/api/models/v1_get_workflow_node_response.py +0 -91
  114. eval_studio_client/api/models/v1_get_workflow_response.py +0 -91
  115. eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +0 -91
  116. eval_studio_client/api/models/v1_import_test_cases_request.py +0 -95
  117. eval_studio_client/api/models/v1_labeled_test_case.py +0 -91
  118. eval_studio_client/api/models/v1_list_prompt_library_items_response.py +0 -95
  119. eval_studio_client/api/models/v1_list_test_case_library_items_response.py +0 -95
  120. eval_studio_client/api/models/v1_list_workflows_response.py +0 -95
  121. eval_studio_client/api/models/v1_process_workflow_node_response.py +0 -91
  122. eval_studio_client/api/models/v1_prompt_library_item.py +0 -129
  123. eval_studio_client/api/models/v1_test_suite_evaluates.py +0 -39
  124. eval_studio_client/api/models/v1_update_workflow_node_response.py +0 -91
  125. eval_studio_client/api/models/v1_update_workflow_response.py +0 -91
  126. eval_studio_client/api/models/v1_workflow.py +0 -156
  127. eval_studio_client/api/models/v1_workflow_edge.py +0 -123
  128. eval_studio_client/api/models/v1_workflow_edge_type.py +0 -37
  129. eval_studio_client/api/models/v1_workflow_node.py +0 -156
  130. eval_studio_client/api/models/v1_workflow_node_artifact.py +0 -122
  131. eval_studio_client/api/models/v1_workflow_node_artifacts.py +0 -97
  132. eval_studio_client/api/models/v1_workflow_node_attributes.py +0 -87
  133. eval_studio_client/api/models/v1_workflow_node_status.py +0 -40
  134. eval_studio_client/api/models/v1_workflow_node_type.py +0 -41
  135. eval_studio_client/api/models/v1_workflow_node_view.py +0 -38
  136. eval_studio_client/api/models/v1_workflow_type.py +0 -37
  137. eval_studio_client/api/test/test_human_calibration_service_api.py +0 -38
  138. eval_studio_client/api/test/test_prompt_library_service_api.py +0 -43
  139. eval_studio_client/api/test/test_protobuf_null_value.py +0 -33
  140. eval_studio_client/api/test/test_required_the_updated_workflow.py +0 -88
  141. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +0 -80
  142. eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +0 -56
  143. eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +0 -63
  144. eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +0 -53
  145. eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +0 -92
  146. eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +0 -64
  147. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +0 -84
  148. eval_studio_client/api/test/test_v1_create_workflow_response.py +0 -90
  149. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +0 -82
  150. eval_studio_client/api/test/test_v1_delete_workflow_response.py +0 -90
  151. eval_studio_client/api/test/test_v1_estimate_threshold_request.py +0 -60
  152. eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +0 -56
  153. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +0 -82
  154. eval_studio_client/api/test/test_v1_get_workflow_response.py +0 -90
  155. eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +0 -71
  156. eval_studio_client/api/test/test_v1_import_test_cases_request.py +0 -57
  157. eval_studio_client/api/test/test_v1_labeled_test_case.py +0 -53
  158. eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +0 -71
  159. eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +0 -71
  160. eval_studio_client/api/test/test_v1_list_workflows_response.py +0 -92
  161. eval_studio_client/api/test/test_v1_process_workflow_node_response.py +0 -71
  162. eval_studio_client/api/test/test_v1_prompt_library_item.py +0 -68
  163. eval_studio_client/api/test/test_v1_test_suite_evaluates.py +0 -33
  164. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +0 -82
  165. eval_studio_client/api/test/test_v1_update_workflow_response.py +0 -90
  166. eval_studio_client/api/test/test_v1_workflow.py +0 -89
  167. eval_studio_client/api/test/test_v1_workflow_edge.py +0 -61
  168. eval_studio_client/api/test/test_v1_workflow_edge_type.py +0 -33
  169. eval_studio_client/api/test/test_v1_workflow_node.py +0 -81
  170. eval_studio_client/api/test/test_v1_workflow_node_artifact.py +0 -61
  171. eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +0 -64
  172. eval_studio_client/api/test/test_v1_workflow_node_attributes.py +0 -51
  173. eval_studio_client/api/test/test_v1_workflow_node_status.py +0 -33
  174. eval_studio_client/api/test/test_v1_workflow_node_type.py +0 -33
  175. eval_studio_client/api/test/test_v1_workflow_node_view.py +0 -33
  176. eval_studio_client/api/test/test_v1_workflow_type.py +0 -33
  177. eval_studio_client/api/test/test_workflow_edge_service_api.py +0 -38
  178. eval_studio_client/api/test/test_workflow_node_service_api.py +0 -73
  179. eval_studio_client/api/test/test_workflow_service_api.py +0 -73
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.24.2
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,304 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- ai/h2o/eval_studio/v1/collection.proto
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: version not set
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 eval_studio_client.api.models.v1_estimate_threshold_request import V1EstimateThresholdRequest
20
- from eval_studio_client.api.models.v1_operation import V1Operation
21
-
22
- from eval_studio_client.api.api_client import ApiClient, RequestSerialized
23
- from eval_studio_client.api.api_response import ApiResponse
24
- from eval_studio_client.api.rest import RESTResponseType
25
-
26
-
27
- class HumanCalibrationServiceApi:
28
- """NOTE: This class is auto generated by OpenAPI Generator
29
- Ref: https://openapi-generator.tech
30
-
31
- Do not edit the class manually.
32
- """
33
-
34
- def __init__(self, api_client=None) -> None:
35
- if api_client is None:
36
- api_client = ApiClient.get_default()
37
- self.api_client = api_client
38
-
39
-
40
- @validate_call
41
- def human_calibration_service_estimate_threshold(
42
- self,
43
- body: V1EstimateThresholdRequest,
44
- _request_timeout: Union[
45
- None,
46
- Annotated[StrictFloat, Field(gt=0)],
47
- Tuple[
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Annotated[StrictFloat, Field(gt=0)]
50
- ]
51
- ] = None,
52
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
53
- _content_type: Optional[StrictStr] = None,
54
- _headers: Optional[Dict[StrictStr, Any]] = None,
55
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
56
- ) -> V1Operation:
57
- """EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
58
-
59
-
60
- :param body: (required)
61
- :type body: V1EstimateThresholdRequest
62
- :param _request_timeout: timeout setting for this request. If one
63
- number provided, it will be total request
64
- timeout. It can also be a pair (tuple) of
65
- (connection, read) timeouts.
66
- :type _request_timeout: int, tuple(int, int), optional
67
- :param _request_auth: set to override the auth_settings for an a single
68
- request; this effectively ignores the
69
- authentication in the spec for a single request.
70
- :type _request_auth: dict, optional
71
- :param _content_type: force content-type for the request.
72
- :type _content_type: str, Optional
73
- :param _headers: set to override the headers for a single
74
- request; this effectively ignores the headers
75
- in the spec for a single request.
76
- :type _headers: dict, optional
77
- :param _host_index: set to override the host_index for a single
78
- request; this effectively ignores the host_index
79
- in the spec for a single request.
80
- :type _host_index: int, optional
81
- :return: Returns the result object.
82
- """ # noqa: E501
83
-
84
- _param = self._human_calibration_service_estimate_threshold_serialize(
85
- body=body,
86
- _request_auth=_request_auth,
87
- _content_type=_content_type,
88
- _headers=_headers,
89
- _host_index=_host_index
90
- )
91
-
92
- _response_types_map: Dict[str, Optional[str]] = {
93
- '200': "V1Operation",
94
- }
95
- response_data = self.api_client.call_api(
96
- *_param,
97
- _request_timeout=_request_timeout
98
- )
99
- response_data.read()
100
- return self.api_client.response_deserialize(
101
- response_data=response_data,
102
- response_types_map=_response_types_map,
103
- ).data
104
-
105
-
106
- @validate_call
107
- def human_calibration_service_estimate_threshold_with_http_info(
108
- self,
109
- body: V1EstimateThresholdRequest,
110
- _request_timeout: Union[
111
- None,
112
- Annotated[StrictFloat, Field(gt=0)],
113
- Tuple[
114
- Annotated[StrictFloat, Field(gt=0)],
115
- Annotated[StrictFloat, Field(gt=0)]
116
- ]
117
- ] = None,
118
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
119
- _content_type: Optional[StrictStr] = None,
120
- _headers: Optional[Dict[StrictStr, Any]] = None,
121
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
122
- ) -> ApiResponse[V1Operation]:
123
- """EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
124
-
125
-
126
- :param body: (required)
127
- :type body: V1EstimateThresholdRequest
128
- :param _request_timeout: timeout setting for this request. If one
129
- number provided, it will be total request
130
- timeout. It can also be a pair (tuple) of
131
- (connection, read) timeouts.
132
- :type _request_timeout: int, tuple(int, int), optional
133
- :param _request_auth: set to override the auth_settings for an a single
134
- request; this effectively ignores the
135
- authentication in the spec for a single request.
136
- :type _request_auth: dict, optional
137
- :param _content_type: force content-type for the request.
138
- :type _content_type: str, Optional
139
- :param _headers: set to override the headers for a single
140
- request; this effectively ignores the headers
141
- in the spec for a single request.
142
- :type _headers: dict, optional
143
- :param _host_index: set to override the host_index for a single
144
- request; this effectively ignores the host_index
145
- in the spec for a single request.
146
- :type _host_index: int, optional
147
- :return: Returns the result object.
148
- """ # noqa: E501
149
-
150
- _param = self._human_calibration_service_estimate_threshold_serialize(
151
- body=body,
152
- _request_auth=_request_auth,
153
- _content_type=_content_type,
154
- _headers=_headers,
155
- _host_index=_host_index
156
- )
157
-
158
- _response_types_map: Dict[str, Optional[str]] = {
159
- '200': "V1Operation",
160
- }
161
- response_data = self.api_client.call_api(
162
- *_param,
163
- _request_timeout=_request_timeout
164
- )
165
- response_data.read()
166
- return self.api_client.response_deserialize(
167
- response_data=response_data,
168
- response_types_map=_response_types_map,
169
- )
170
-
171
-
172
- @validate_call
173
- def human_calibration_service_estimate_threshold_without_preload_content(
174
- self,
175
- body: V1EstimateThresholdRequest,
176
- _request_timeout: Union[
177
- None,
178
- Annotated[StrictFloat, Field(gt=0)],
179
- Tuple[
180
- Annotated[StrictFloat, Field(gt=0)],
181
- Annotated[StrictFloat, Field(gt=0)]
182
- ]
183
- ] = None,
184
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
185
- _content_type: Optional[StrictStr] = None,
186
- _headers: Optional[Dict[StrictStr, Any]] = None,
187
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
188
- ) -> RESTResponseType:
189
- """EstimateThreshold runs a threshold estimation process based on human labeling of randomly sampled test-cases.
190
-
191
-
192
- :param body: (required)
193
- :type body: V1EstimateThresholdRequest
194
- :param _request_timeout: timeout setting for this request. If one
195
- number provided, it will be total request
196
- timeout. It can also be a pair (tuple) of
197
- (connection, read) timeouts.
198
- :type _request_timeout: int, tuple(int, int), optional
199
- :param _request_auth: set to override the auth_settings for an a single
200
- request; this effectively ignores the
201
- authentication in the spec for a single request.
202
- :type _request_auth: dict, optional
203
- :param _content_type: force content-type for the request.
204
- :type _content_type: str, Optional
205
- :param _headers: set to override the headers for a single
206
- request; this effectively ignores the headers
207
- in the spec for a single request.
208
- :type _headers: dict, optional
209
- :param _host_index: set to override the host_index for a single
210
- request; this effectively ignores the host_index
211
- in the spec for a single request.
212
- :type _host_index: int, optional
213
- :return: Returns the result object.
214
- """ # noqa: E501
215
-
216
- _param = self._human_calibration_service_estimate_threshold_serialize(
217
- body=body,
218
- _request_auth=_request_auth,
219
- _content_type=_content_type,
220
- _headers=_headers,
221
- _host_index=_host_index
222
- )
223
-
224
- _response_types_map: Dict[str, Optional[str]] = {
225
- '200': "V1Operation",
226
- }
227
- response_data = self.api_client.call_api(
228
- *_param,
229
- _request_timeout=_request_timeout
230
- )
231
- return response_data.response
232
-
233
-
234
- def _human_calibration_service_estimate_threshold_serialize(
235
- self,
236
- body,
237
- _request_auth,
238
- _content_type,
239
- _headers,
240
- _host_index,
241
- ) -> RequestSerialized:
242
-
243
- _host = None
244
-
245
- _collection_formats: Dict[str, str] = {
246
- }
247
-
248
- _path_params: Dict[str, str] = {}
249
- _query_params: List[Tuple[str, str]] = []
250
- _header_params: Dict[str, Optional[str]] = _headers or {}
251
- _form_params: List[Tuple[str, str]] = []
252
- _files: Dict[str, Union[str, bytes]] = {}
253
- _body_params: Optional[bytes] = None
254
-
255
- # process the path parameters
256
- # process the query parameters
257
- # process the header parameters
258
- # process the form parameters
259
- # process the body parameter
260
- if body is not None:
261
- _body_params = body
262
-
263
-
264
- # set the HTTP header `Accept`
265
- _header_params['Accept'] = self.api_client.select_header_accept(
266
- [
267
- 'application/json'
268
- ]
269
- )
270
-
271
- # set the HTTP header `Content-Type`
272
- if _content_type:
273
- _header_params['Content-Type'] = _content_type
274
- else:
275
- _default_content_type = (
276
- self.api_client.select_header_content_type(
277
- [
278
- 'application/json'
279
- ]
280
- )
281
- )
282
- if _default_content_type is not None:
283
- _header_params['Content-Type'] = _default_content_type
284
-
285
- # authentication setting
286
- _auth_settings: List[str] = [
287
- ]
288
-
289
- return self.api_client.param_serialize(
290
- method='POST',
291
- resource_path='/v1:estimateThreshold',
292
- path_params=_path_params,
293
- query_params=_query_params,
294
- header_params=_header_params,
295
- body=_body_params,
296
- post_params=_form_params,
297
- files=_files,
298
- auth_settings=_auth_settings,
299
- collection_formats=_collection_formats,
300
- _host=_host,
301
- _request_auth=_request_auth
302
- )
303
-
304
-