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.
- eval_studio_client/api/__init__.py +0 -43
- eval_studio_client/api/api/__init__.py +0 -5
- eval_studio_client/api/api/perturbator_service_api.py +1 -268
- eval_studio_client/api/api/test_service_api.py +0 -568
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +0 -1
- eval_studio_client/api/docs/PerturbatorServiceApi.md +3 -33
- eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -2
- eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +0 -1
- eval_studio_client/api/docs/TestServiceApi.md +0 -140
- eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +0 -1
- eval_studio_client/api/docs/TestServicePerturbTestRequest.md +0 -1
- eval_studio_client/api/docs/V1CreateEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1ImportEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1TestCase.md +0 -1
- eval_studio_client/api/models/__init__.py +0 -38
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +2 -8
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -5
- eval_studio_client/api/models/required_the_test_case_to_update.py +2 -6
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +2 -4
- eval_studio_client/api/models/test_service_perturb_test_request.py +2 -4
- eval_studio_client/api/models/v1_create_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_import_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_test_case.py +2 -6
- eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +2 -20
- eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +1 -4
- eval_studio_client/api/test/test_required_the_test_case_to_update.py +1 -4
- eval_studio_client/api/test/test_test_service_api.py +0 -12
- eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +1 -4
- eval_studio_client/api/test/test_test_service_perturb_test_request.py +1 -4
- eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_create_evaluation_request.py +2 -20
- eval_studio_client/api/test/test_v1_create_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_delete_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_evaluation_test.py +1 -4
- eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +1 -4
- eval_studio_client/api/test/test_v1_get_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_import_evaluation_request.py +1 -16
- eval_studio_client/api/test/test_v1_list_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_test_case.py +1 -4
- eval_studio_client/api/test/test_v1_update_test_case_response.py +1 -4
- eval_studio_client/client.py +11 -9
- eval_studio_client/dashboards.py +0 -29
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +32 -1903
- eval_studio_client/leaderboards.py +0 -123
- eval_studio_client/models.py +42 -3
- eval_studio_client/test_labs.py +21 -49
- eval_studio_client/tests.py +1 -188
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/METADATA +3 -2
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/RECORD +50 -179
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3a1.dist-info}/WHEEL +1 -1
- eval_studio_client/api/api/human_calibration_service_api.py +0 -304
- eval_studio_client/api/api/prompt_library_service_api.py +0 -669
- eval_studio_client/api/api/workflow_edge_service_api.py +0 -296
- eval_studio_client/api/api/workflow_node_service_api.py +0 -1634
- eval_studio_client/api/api/workflow_service_api.py +0 -1609
- eval_studio_client/api/docs/HumanCalibrationServiceApi.md +0 -77
- eval_studio_client/api/docs/PromptLibraryServiceApi.md +0 -155
- eval_studio_client/api/docs/ProtobufNullValue.md +0 -12
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +0 -44
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +0 -44
- eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +0 -32
- eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +0 -35
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +0 -29
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +0 -29
- eval_studio_client/api/docs/V1CreateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1EstimateThresholdRequest.md +0 -33
- eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +0 -30
- eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1GetWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesRequest.md +0 -33
- eval_studio_client/api/docs/V1LabeledTestCase.md +0 -31
- eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1PromptLibraryItem.md +0 -42
- eval_studio_client/api/docs/V1TestSuiteEvaluates.md +0 -11
- eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1Workflow.md +0 -46
- eval_studio_client/api/docs/V1WorkflowEdge.md +0 -40
- eval_studio_client/api/docs/V1WorkflowEdgeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNode.md +0 -46
- eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +0 -40
- eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +0 -29
- eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +0 -30
- eval_studio_client/api/docs/V1WorkflowNodeStatus.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeView.md +0 -12
- eval_studio_client/api/docs/V1WorkflowType.md +0 -12
- eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +0 -76
- eval_studio_client/api/docs/WorkflowNodeServiceApi.md +0 -423
- eval_studio_client/api/docs/WorkflowServiceApi.md +0 -417
- eval_studio_client/api/models/protobuf_null_value.py +0 -36
- eval_studio_client/api/models/required_the_updated_workflow.py +0 -152
- eval_studio_client/api/models/required_the_updated_workflow_node.py +0 -152
- eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +0 -93
- eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +0 -99
- eval_studio_client/api/models/v1_batch_delete_workflows_request.py +0 -87
- eval_studio_client/api/models/v1_batch_delete_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +0 -95
- eval_studio_client/api/models/v1_create_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_estimate_threshold_request.py +0 -103
- eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +0 -89
- eval_studio_client/api/models/v1_get_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_get_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_request.py +0 -95
- eval_studio_client/api/models/v1_labeled_test_case.py +0 -91
- eval_studio_client/api/models/v1_list_prompt_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_test_case_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_process_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_prompt_library_item.py +0 -129
- eval_studio_client/api/models/v1_test_suite_evaluates.py +0 -39
- eval_studio_client/api/models/v1_update_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_update_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_workflow.py +0 -156
- eval_studio_client/api/models/v1_workflow_edge.py +0 -123
- eval_studio_client/api/models/v1_workflow_edge_type.py +0 -37
- eval_studio_client/api/models/v1_workflow_node.py +0 -156
- eval_studio_client/api/models/v1_workflow_node_artifact.py +0 -122
- eval_studio_client/api/models/v1_workflow_node_artifacts.py +0 -97
- eval_studio_client/api/models/v1_workflow_node_attributes.py +0 -87
- eval_studio_client/api/models/v1_workflow_node_status.py +0 -40
- eval_studio_client/api/models/v1_workflow_node_type.py +0 -41
- eval_studio_client/api/models/v1_workflow_node_view.py +0 -38
- eval_studio_client/api/models/v1_workflow_type.py +0 -37
- eval_studio_client/api/test/test_human_calibration_service_api.py +0 -38
- eval_studio_client/api/test/test_prompt_library_service_api.py +0 -43
- eval_studio_client/api/test/test_protobuf_null_value.py +0 -33
- eval_studio_client/api/test/test_required_the_updated_workflow.py +0 -88
- eval_studio_client/api/test/test_required_the_updated_workflow_node.py +0 -80
- eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +0 -56
- eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +0 -63
- eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +0 -53
- eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +0 -64
- eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +0 -84
- eval_studio_client/api/test/test_v1_create_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_delete_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_estimate_threshold_request.py +0 -60
- eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +0 -56
- eval_studio_client/api/test/test_v1_get_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_get_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +0 -71
- eval_studio_client/api/test/test_v1_import_test_cases_request.py +0 -57
- eval_studio_client/api/test/test_v1_labeled_test_case.py +0 -53
- eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_process_workflow_node_response.py +0 -71
- eval_studio_client/api/test/test_v1_prompt_library_item.py +0 -68
- eval_studio_client/api/test/test_v1_test_suite_evaluates.py +0 -33
- eval_studio_client/api/test/test_v1_update_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_update_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_workflow.py +0 -89
- eval_studio_client/api/test/test_v1_workflow_edge.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_edge_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node.py +0 -81
- eval_studio_client/api/test/test_v1_workflow_node_artifact.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +0 -64
- eval_studio_client/api/test/test_v1_workflow_node_attributes.py +0 -51
- eval_studio_client/api/test/test_v1_workflow_node_status.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_view.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_type.py +0 -33
- eval_studio_client/api/test/test_workflow_edge_service_api.py +0 -38
- eval_studio_client/api/test/test_workflow_node_service_api.py +0 -73
- eval_studio_client/api/test/test_workflow_service_api.py +0 -73
|
@@ -1,669 +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 pydantic import Field, StrictInt, StrictStr
|
|
20
|
-
from typing import List, Optional
|
|
21
|
-
from typing_extensions import Annotated
|
|
22
|
-
from eval_studio_client.api.models.v1_import_test_cases_request import V1ImportTestCasesRequest
|
|
23
|
-
from eval_studio_client.api.models.v1_list_prompt_library_items_response import V1ListPromptLibraryItemsResponse
|
|
24
|
-
from eval_studio_client.api.models.v1_operation import V1Operation
|
|
25
|
-
|
|
26
|
-
from eval_studio_client.api.api_client import ApiClient, RequestSerialized
|
|
27
|
-
from eval_studio_client.api.api_response import ApiResponse
|
|
28
|
-
from eval_studio_client.api.rest import RESTResponseType
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class PromptLibraryServiceApi:
|
|
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 prompt_library_service_import_test_cases(
|
|
46
|
-
self,
|
|
47
|
-
body: V1ImportTestCasesRequest,
|
|
48
|
-
_request_timeout: Union[
|
|
49
|
-
None,
|
|
50
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
51
|
-
Tuple[
|
|
52
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
53
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
54
|
-
]
|
|
55
|
-
] = None,
|
|
56
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
57
|
-
_content_type: Optional[StrictStr] = None,
|
|
58
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
59
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
60
|
-
) -> V1Operation:
|
|
61
|
-
"""prompt_library_service_import_test_cases
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
:param body: (required)
|
|
65
|
-
:type body: V1ImportTestCasesRequest
|
|
66
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
67
|
-
number provided, it will be total request
|
|
68
|
-
timeout. It can also be a pair (tuple) of
|
|
69
|
-
(connection, read) timeouts.
|
|
70
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
71
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
72
|
-
request; this effectively ignores the
|
|
73
|
-
authentication in the spec for a single request.
|
|
74
|
-
:type _request_auth: dict, optional
|
|
75
|
-
:param _content_type: force content-type for the request.
|
|
76
|
-
:type _content_type: str, Optional
|
|
77
|
-
:param _headers: set to override the headers for a single
|
|
78
|
-
request; this effectively ignores the headers
|
|
79
|
-
in the spec for a single request.
|
|
80
|
-
:type _headers: dict, optional
|
|
81
|
-
:param _host_index: set to override the host_index for a single
|
|
82
|
-
request; this effectively ignores the host_index
|
|
83
|
-
in the spec for a single request.
|
|
84
|
-
:type _host_index: int, optional
|
|
85
|
-
:return: Returns the result object.
|
|
86
|
-
""" # noqa: E501
|
|
87
|
-
|
|
88
|
-
_param = self._prompt_library_service_import_test_cases_serialize(
|
|
89
|
-
body=body,
|
|
90
|
-
_request_auth=_request_auth,
|
|
91
|
-
_content_type=_content_type,
|
|
92
|
-
_headers=_headers,
|
|
93
|
-
_host_index=_host_index
|
|
94
|
-
)
|
|
95
|
-
|
|
96
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
97
|
-
'200': "V1Operation",
|
|
98
|
-
}
|
|
99
|
-
response_data = self.api_client.call_api(
|
|
100
|
-
*_param,
|
|
101
|
-
_request_timeout=_request_timeout
|
|
102
|
-
)
|
|
103
|
-
response_data.read()
|
|
104
|
-
return self.api_client.response_deserialize(
|
|
105
|
-
response_data=response_data,
|
|
106
|
-
response_types_map=_response_types_map,
|
|
107
|
-
).data
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@validate_call
|
|
111
|
-
def prompt_library_service_import_test_cases_with_http_info(
|
|
112
|
-
self,
|
|
113
|
-
body: V1ImportTestCasesRequest,
|
|
114
|
-
_request_timeout: Union[
|
|
115
|
-
None,
|
|
116
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
-
Tuple[
|
|
118
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
120
|
-
]
|
|
121
|
-
] = None,
|
|
122
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
-
_content_type: Optional[StrictStr] = None,
|
|
124
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
-
) -> ApiResponse[V1Operation]:
|
|
127
|
-
"""prompt_library_service_import_test_cases
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
:param body: (required)
|
|
131
|
-
:type body: V1ImportTestCasesRequest
|
|
132
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
133
|
-
number provided, it will be total request
|
|
134
|
-
timeout. It can also be a pair (tuple) of
|
|
135
|
-
(connection, read) timeouts.
|
|
136
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
137
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
138
|
-
request; this effectively ignores the
|
|
139
|
-
authentication in the spec for a single request.
|
|
140
|
-
:type _request_auth: dict, optional
|
|
141
|
-
:param _content_type: force content-type for the request.
|
|
142
|
-
:type _content_type: str, Optional
|
|
143
|
-
:param _headers: set to override the headers for a single
|
|
144
|
-
request; this effectively ignores the headers
|
|
145
|
-
in the spec for a single request.
|
|
146
|
-
:type _headers: dict, optional
|
|
147
|
-
:param _host_index: set to override the host_index for a single
|
|
148
|
-
request; this effectively ignores the host_index
|
|
149
|
-
in the spec for a single request.
|
|
150
|
-
:type _host_index: int, optional
|
|
151
|
-
:return: Returns the result object.
|
|
152
|
-
""" # noqa: E501
|
|
153
|
-
|
|
154
|
-
_param = self._prompt_library_service_import_test_cases_serialize(
|
|
155
|
-
body=body,
|
|
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
|
-
'200': "V1Operation",
|
|
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 prompt_library_service_import_test_cases_without_preload_content(
|
|
178
|
-
self,
|
|
179
|
-
body: V1ImportTestCasesRequest,
|
|
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
|
-
"""prompt_library_service_import_test_cases
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
:param body: (required)
|
|
197
|
-
:type body: V1ImportTestCasesRequest
|
|
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
|
-
|
|
220
|
-
_param = self._prompt_library_service_import_test_cases_serialize(
|
|
221
|
-
body=body,
|
|
222
|
-
_request_auth=_request_auth,
|
|
223
|
-
_content_type=_content_type,
|
|
224
|
-
_headers=_headers,
|
|
225
|
-
_host_index=_host_index
|
|
226
|
-
)
|
|
227
|
-
|
|
228
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
229
|
-
'200': "V1Operation",
|
|
230
|
-
}
|
|
231
|
-
response_data = self.api_client.call_api(
|
|
232
|
-
*_param,
|
|
233
|
-
_request_timeout=_request_timeout
|
|
234
|
-
)
|
|
235
|
-
return response_data.response
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
def _prompt_library_service_import_test_cases_serialize(
|
|
239
|
-
self,
|
|
240
|
-
body,
|
|
241
|
-
_request_auth,
|
|
242
|
-
_content_type,
|
|
243
|
-
_headers,
|
|
244
|
-
_host_index,
|
|
245
|
-
) -> RequestSerialized:
|
|
246
|
-
|
|
247
|
-
_host = None
|
|
248
|
-
|
|
249
|
-
_collection_formats: Dict[str, str] = {
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
_path_params: Dict[str, str] = {}
|
|
253
|
-
_query_params: List[Tuple[str, str]] = []
|
|
254
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
255
|
-
_form_params: List[Tuple[str, str]] = []
|
|
256
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
257
|
-
_body_params: Optional[bytes] = None
|
|
258
|
-
|
|
259
|
-
# process the path parameters
|
|
260
|
-
# process the query parameters
|
|
261
|
-
# process the header parameters
|
|
262
|
-
# process the form parameters
|
|
263
|
-
# process the body parameter
|
|
264
|
-
if body is not None:
|
|
265
|
-
_body_params = body
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
# set the HTTP header `Accept`
|
|
269
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
270
|
-
[
|
|
271
|
-
'application/json'
|
|
272
|
-
]
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
# set the HTTP header `Content-Type`
|
|
276
|
-
if _content_type:
|
|
277
|
-
_header_params['Content-Type'] = _content_type
|
|
278
|
-
else:
|
|
279
|
-
_default_content_type = (
|
|
280
|
-
self.api_client.select_header_content_type(
|
|
281
|
-
[
|
|
282
|
-
'application/json'
|
|
283
|
-
]
|
|
284
|
-
)
|
|
285
|
-
)
|
|
286
|
-
if _default_content_type is not None:
|
|
287
|
-
_header_params['Content-Type'] = _default_content_type
|
|
288
|
-
|
|
289
|
-
# authentication setting
|
|
290
|
-
_auth_settings: List[str] = [
|
|
291
|
-
]
|
|
292
|
-
|
|
293
|
-
return self.api_client.param_serialize(
|
|
294
|
-
method='POST',
|
|
295
|
-
resource_path='/v1/promptLibraryItems:importTestCases',
|
|
296
|
-
path_params=_path_params,
|
|
297
|
-
query_params=_query_params,
|
|
298
|
-
header_params=_header_params,
|
|
299
|
-
body=_body_params,
|
|
300
|
-
post_params=_form_params,
|
|
301
|
-
files=_files,
|
|
302
|
-
auth_settings=_auth_settings,
|
|
303
|
-
collection_formats=_collection_formats,
|
|
304
|
-
_host=_host,
|
|
305
|
-
_request_auth=_request_auth
|
|
306
|
-
)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
@validate_call
|
|
312
|
-
def prompt_library_service_list_prompt_library_items(
|
|
313
|
-
self,
|
|
314
|
-
filter_by_categories: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by categories.")] = None,
|
|
315
|
-
filter_by_purposes: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by purposes.")] = None,
|
|
316
|
-
filter_by_evaluates: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by evaluates.")] = None,
|
|
317
|
-
filter_by_origin: Annotated[Optional[StrictStr], Field(description="Optional. Filter by origin.")] = None,
|
|
318
|
-
filter_by_test_case_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test case count.")] = None,
|
|
319
|
-
filter_by_test_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test count.")] = None,
|
|
320
|
-
filter_by_fts: Annotated[Optional[StrictStr], Field(description="Optional. Filter by FTS.")] = None,
|
|
321
|
-
_request_timeout: Union[
|
|
322
|
-
None,
|
|
323
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
324
|
-
Tuple[
|
|
325
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
326
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
327
|
-
]
|
|
328
|
-
] = None,
|
|
329
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
330
|
-
_content_type: Optional[StrictStr] = None,
|
|
331
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
332
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
333
|
-
) -> V1ListPromptLibraryItemsResponse:
|
|
334
|
-
"""prompt_library_service_list_prompt_library_items
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
:param filter_by_categories: Optional. Filter by categories.
|
|
338
|
-
:type filter_by_categories: List[str]
|
|
339
|
-
:param filter_by_purposes: Optional. Filter by purposes.
|
|
340
|
-
:type filter_by_purposes: List[str]
|
|
341
|
-
:param filter_by_evaluates: Optional. Filter by evaluates.
|
|
342
|
-
:type filter_by_evaluates: List[str]
|
|
343
|
-
:param filter_by_origin: Optional. Filter by origin.
|
|
344
|
-
:type filter_by_origin: str
|
|
345
|
-
:param filter_by_test_case_count: Optional. Filter by test case count.
|
|
346
|
-
:type filter_by_test_case_count: int
|
|
347
|
-
:param filter_by_test_count: Optional. Filter by test count.
|
|
348
|
-
:type filter_by_test_count: int
|
|
349
|
-
:param filter_by_fts: Optional. Filter by FTS.
|
|
350
|
-
:type filter_by_fts: str
|
|
351
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
352
|
-
number provided, it will be total request
|
|
353
|
-
timeout. It can also be a pair (tuple) of
|
|
354
|
-
(connection, read) timeouts.
|
|
355
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
356
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
357
|
-
request; this effectively ignores the
|
|
358
|
-
authentication in the spec for a single request.
|
|
359
|
-
:type _request_auth: dict, optional
|
|
360
|
-
:param _content_type: force content-type for the request.
|
|
361
|
-
:type _content_type: str, Optional
|
|
362
|
-
:param _headers: set to override the headers for a single
|
|
363
|
-
request; this effectively ignores the headers
|
|
364
|
-
in the spec for a single request.
|
|
365
|
-
:type _headers: dict, optional
|
|
366
|
-
:param _host_index: set to override the host_index for a single
|
|
367
|
-
request; this effectively ignores the host_index
|
|
368
|
-
in the spec for a single request.
|
|
369
|
-
:type _host_index: int, optional
|
|
370
|
-
:return: Returns the result object.
|
|
371
|
-
""" # noqa: E501
|
|
372
|
-
|
|
373
|
-
_param = self._prompt_library_service_list_prompt_library_items_serialize(
|
|
374
|
-
filter_by_categories=filter_by_categories,
|
|
375
|
-
filter_by_purposes=filter_by_purposes,
|
|
376
|
-
filter_by_evaluates=filter_by_evaluates,
|
|
377
|
-
filter_by_origin=filter_by_origin,
|
|
378
|
-
filter_by_test_case_count=filter_by_test_case_count,
|
|
379
|
-
filter_by_test_count=filter_by_test_count,
|
|
380
|
-
filter_by_fts=filter_by_fts,
|
|
381
|
-
_request_auth=_request_auth,
|
|
382
|
-
_content_type=_content_type,
|
|
383
|
-
_headers=_headers,
|
|
384
|
-
_host_index=_host_index
|
|
385
|
-
)
|
|
386
|
-
|
|
387
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
388
|
-
'200': "V1ListPromptLibraryItemsResponse",
|
|
389
|
-
}
|
|
390
|
-
response_data = self.api_client.call_api(
|
|
391
|
-
*_param,
|
|
392
|
-
_request_timeout=_request_timeout
|
|
393
|
-
)
|
|
394
|
-
response_data.read()
|
|
395
|
-
return self.api_client.response_deserialize(
|
|
396
|
-
response_data=response_data,
|
|
397
|
-
response_types_map=_response_types_map,
|
|
398
|
-
).data
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
@validate_call
|
|
402
|
-
def prompt_library_service_list_prompt_library_items_with_http_info(
|
|
403
|
-
self,
|
|
404
|
-
filter_by_categories: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by categories.")] = None,
|
|
405
|
-
filter_by_purposes: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by purposes.")] = None,
|
|
406
|
-
filter_by_evaluates: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by evaluates.")] = None,
|
|
407
|
-
filter_by_origin: Annotated[Optional[StrictStr], Field(description="Optional. Filter by origin.")] = None,
|
|
408
|
-
filter_by_test_case_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test case count.")] = None,
|
|
409
|
-
filter_by_test_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test count.")] = None,
|
|
410
|
-
filter_by_fts: Annotated[Optional[StrictStr], Field(description="Optional. Filter by FTS.")] = None,
|
|
411
|
-
_request_timeout: Union[
|
|
412
|
-
None,
|
|
413
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
414
|
-
Tuple[
|
|
415
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
416
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
417
|
-
]
|
|
418
|
-
] = None,
|
|
419
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
420
|
-
_content_type: Optional[StrictStr] = None,
|
|
421
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
422
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
423
|
-
) -> ApiResponse[V1ListPromptLibraryItemsResponse]:
|
|
424
|
-
"""prompt_library_service_list_prompt_library_items
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
:param filter_by_categories: Optional. Filter by categories.
|
|
428
|
-
:type filter_by_categories: List[str]
|
|
429
|
-
:param filter_by_purposes: Optional. Filter by purposes.
|
|
430
|
-
:type filter_by_purposes: List[str]
|
|
431
|
-
:param filter_by_evaluates: Optional. Filter by evaluates.
|
|
432
|
-
:type filter_by_evaluates: List[str]
|
|
433
|
-
:param filter_by_origin: Optional. Filter by origin.
|
|
434
|
-
:type filter_by_origin: str
|
|
435
|
-
:param filter_by_test_case_count: Optional. Filter by test case count.
|
|
436
|
-
:type filter_by_test_case_count: int
|
|
437
|
-
:param filter_by_test_count: Optional. Filter by test count.
|
|
438
|
-
:type filter_by_test_count: int
|
|
439
|
-
:param filter_by_fts: Optional. Filter by FTS.
|
|
440
|
-
:type filter_by_fts: str
|
|
441
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
442
|
-
number provided, it will be total request
|
|
443
|
-
timeout. It can also be a pair (tuple) of
|
|
444
|
-
(connection, read) timeouts.
|
|
445
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
446
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
447
|
-
request; this effectively ignores the
|
|
448
|
-
authentication in the spec for a single request.
|
|
449
|
-
:type _request_auth: dict, optional
|
|
450
|
-
:param _content_type: force content-type for the request.
|
|
451
|
-
:type _content_type: str, Optional
|
|
452
|
-
:param _headers: set to override the headers for a single
|
|
453
|
-
request; this effectively ignores the headers
|
|
454
|
-
in the spec for a single request.
|
|
455
|
-
:type _headers: dict, optional
|
|
456
|
-
:param _host_index: set to override the host_index for a single
|
|
457
|
-
request; this effectively ignores the host_index
|
|
458
|
-
in the spec for a single request.
|
|
459
|
-
:type _host_index: int, optional
|
|
460
|
-
:return: Returns the result object.
|
|
461
|
-
""" # noqa: E501
|
|
462
|
-
|
|
463
|
-
_param = self._prompt_library_service_list_prompt_library_items_serialize(
|
|
464
|
-
filter_by_categories=filter_by_categories,
|
|
465
|
-
filter_by_purposes=filter_by_purposes,
|
|
466
|
-
filter_by_evaluates=filter_by_evaluates,
|
|
467
|
-
filter_by_origin=filter_by_origin,
|
|
468
|
-
filter_by_test_case_count=filter_by_test_case_count,
|
|
469
|
-
filter_by_test_count=filter_by_test_count,
|
|
470
|
-
filter_by_fts=filter_by_fts,
|
|
471
|
-
_request_auth=_request_auth,
|
|
472
|
-
_content_type=_content_type,
|
|
473
|
-
_headers=_headers,
|
|
474
|
-
_host_index=_host_index
|
|
475
|
-
)
|
|
476
|
-
|
|
477
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
478
|
-
'200': "V1ListPromptLibraryItemsResponse",
|
|
479
|
-
}
|
|
480
|
-
response_data = self.api_client.call_api(
|
|
481
|
-
*_param,
|
|
482
|
-
_request_timeout=_request_timeout
|
|
483
|
-
)
|
|
484
|
-
response_data.read()
|
|
485
|
-
return self.api_client.response_deserialize(
|
|
486
|
-
response_data=response_data,
|
|
487
|
-
response_types_map=_response_types_map,
|
|
488
|
-
)
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
@validate_call
|
|
492
|
-
def prompt_library_service_list_prompt_library_items_without_preload_content(
|
|
493
|
-
self,
|
|
494
|
-
filter_by_categories: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by categories.")] = None,
|
|
495
|
-
filter_by_purposes: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by purposes.")] = None,
|
|
496
|
-
filter_by_evaluates: Annotated[Optional[List[StrictStr]], Field(description="Optional. Filter by evaluates.")] = None,
|
|
497
|
-
filter_by_origin: Annotated[Optional[StrictStr], Field(description="Optional. Filter by origin.")] = None,
|
|
498
|
-
filter_by_test_case_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test case count.")] = None,
|
|
499
|
-
filter_by_test_count: Annotated[Optional[StrictInt], Field(description="Optional. Filter by test count.")] = None,
|
|
500
|
-
filter_by_fts: Annotated[Optional[StrictStr], Field(description="Optional. Filter by FTS.")] = None,
|
|
501
|
-
_request_timeout: Union[
|
|
502
|
-
None,
|
|
503
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
504
|
-
Tuple[
|
|
505
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
506
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
507
|
-
]
|
|
508
|
-
] = None,
|
|
509
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
510
|
-
_content_type: Optional[StrictStr] = None,
|
|
511
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
512
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
513
|
-
) -> RESTResponseType:
|
|
514
|
-
"""prompt_library_service_list_prompt_library_items
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
:param filter_by_categories: Optional. Filter by categories.
|
|
518
|
-
:type filter_by_categories: List[str]
|
|
519
|
-
:param filter_by_purposes: Optional. Filter by purposes.
|
|
520
|
-
:type filter_by_purposes: List[str]
|
|
521
|
-
:param filter_by_evaluates: Optional. Filter by evaluates.
|
|
522
|
-
:type filter_by_evaluates: List[str]
|
|
523
|
-
:param filter_by_origin: Optional. Filter by origin.
|
|
524
|
-
:type filter_by_origin: str
|
|
525
|
-
:param filter_by_test_case_count: Optional. Filter by test case count.
|
|
526
|
-
:type filter_by_test_case_count: int
|
|
527
|
-
:param filter_by_test_count: Optional. Filter by test count.
|
|
528
|
-
:type filter_by_test_count: int
|
|
529
|
-
:param filter_by_fts: Optional. Filter by FTS.
|
|
530
|
-
:type filter_by_fts: str
|
|
531
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
532
|
-
number provided, it will be total request
|
|
533
|
-
timeout. It can also be a pair (tuple) of
|
|
534
|
-
(connection, read) timeouts.
|
|
535
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
536
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
537
|
-
request; this effectively ignores the
|
|
538
|
-
authentication in the spec for a single request.
|
|
539
|
-
:type _request_auth: dict, optional
|
|
540
|
-
:param _content_type: force content-type for the request.
|
|
541
|
-
:type _content_type: str, Optional
|
|
542
|
-
:param _headers: set to override the headers for a single
|
|
543
|
-
request; this effectively ignores the headers
|
|
544
|
-
in the spec for a single request.
|
|
545
|
-
:type _headers: dict, optional
|
|
546
|
-
:param _host_index: set to override the host_index for a single
|
|
547
|
-
request; this effectively ignores the host_index
|
|
548
|
-
in the spec for a single request.
|
|
549
|
-
:type _host_index: int, optional
|
|
550
|
-
:return: Returns the result object.
|
|
551
|
-
""" # noqa: E501
|
|
552
|
-
|
|
553
|
-
_param = self._prompt_library_service_list_prompt_library_items_serialize(
|
|
554
|
-
filter_by_categories=filter_by_categories,
|
|
555
|
-
filter_by_purposes=filter_by_purposes,
|
|
556
|
-
filter_by_evaluates=filter_by_evaluates,
|
|
557
|
-
filter_by_origin=filter_by_origin,
|
|
558
|
-
filter_by_test_case_count=filter_by_test_case_count,
|
|
559
|
-
filter_by_test_count=filter_by_test_count,
|
|
560
|
-
filter_by_fts=filter_by_fts,
|
|
561
|
-
_request_auth=_request_auth,
|
|
562
|
-
_content_type=_content_type,
|
|
563
|
-
_headers=_headers,
|
|
564
|
-
_host_index=_host_index
|
|
565
|
-
)
|
|
566
|
-
|
|
567
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
568
|
-
'200': "V1ListPromptLibraryItemsResponse",
|
|
569
|
-
}
|
|
570
|
-
response_data = self.api_client.call_api(
|
|
571
|
-
*_param,
|
|
572
|
-
_request_timeout=_request_timeout
|
|
573
|
-
)
|
|
574
|
-
return response_data.response
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
def _prompt_library_service_list_prompt_library_items_serialize(
|
|
578
|
-
self,
|
|
579
|
-
filter_by_categories,
|
|
580
|
-
filter_by_purposes,
|
|
581
|
-
filter_by_evaluates,
|
|
582
|
-
filter_by_origin,
|
|
583
|
-
filter_by_test_case_count,
|
|
584
|
-
filter_by_test_count,
|
|
585
|
-
filter_by_fts,
|
|
586
|
-
_request_auth,
|
|
587
|
-
_content_type,
|
|
588
|
-
_headers,
|
|
589
|
-
_host_index,
|
|
590
|
-
) -> RequestSerialized:
|
|
591
|
-
|
|
592
|
-
_host = None
|
|
593
|
-
|
|
594
|
-
_collection_formats: Dict[str, str] = {
|
|
595
|
-
'filterByCategories': 'multi',
|
|
596
|
-
'filterByPurposes': 'multi',
|
|
597
|
-
'filterByEvaluates': 'multi',
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
_path_params: Dict[str, str] = {}
|
|
601
|
-
_query_params: List[Tuple[str, str]] = []
|
|
602
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
603
|
-
_form_params: List[Tuple[str, str]] = []
|
|
604
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
605
|
-
_body_params: Optional[bytes] = None
|
|
606
|
-
|
|
607
|
-
# process the path parameters
|
|
608
|
-
# process the query parameters
|
|
609
|
-
if filter_by_categories is not None:
|
|
610
|
-
|
|
611
|
-
_query_params.append(('filterByCategories', filter_by_categories))
|
|
612
|
-
|
|
613
|
-
if filter_by_purposes is not None:
|
|
614
|
-
|
|
615
|
-
_query_params.append(('filterByPurposes', filter_by_purposes))
|
|
616
|
-
|
|
617
|
-
if filter_by_evaluates is not None:
|
|
618
|
-
|
|
619
|
-
_query_params.append(('filterByEvaluates', filter_by_evaluates))
|
|
620
|
-
|
|
621
|
-
if filter_by_origin is not None:
|
|
622
|
-
|
|
623
|
-
_query_params.append(('filterByOrigin', filter_by_origin))
|
|
624
|
-
|
|
625
|
-
if filter_by_test_case_count is not None:
|
|
626
|
-
|
|
627
|
-
_query_params.append(('filterByTestCaseCount', filter_by_test_case_count))
|
|
628
|
-
|
|
629
|
-
if filter_by_test_count is not None:
|
|
630
|
-
|
|
631
|
-
_query_params.append(('filterByTestCount', filter_by_test_count))
|
|
632
|
-
|
|
633
|
-
if filter_by_fts is not None:
|
|
634
|
-
|
|
635
|
-
_query_params.append(('filterByFts', filter_by_fts))
|
|
636
|
-
|
|
637
|
-
# process the header parameters
|
|
638
|
-
# process the form parameters
|
|
639
|
-
# process the body parameter
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
# set the HTTP header `Accept`
|
|
643
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
644
|
-
[
|
|
645
|
-
'application/json'
|
|
646
|
-
]
|
|
647
|
-
)
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
# authentication setting
|
|
651
|
-
_auth_settings: List[str] = [
|
|
652
|
-
]
|
|
653
|
-
|
|
654
|
-
return self.api_client.param_serialize(
|
|
655
|
-
method='GET',
|
|
656
|
-
resource_path='/v1/promptLibraryItems',
|
|
657
|
-
path_params=_path_params,
|
|
658
|
-
query_params=_query_params,
|
|
659
|
-
header_params=_header_params,
|
|
660
|
-
body=_body_params,
|
|
661
|
-
post_params=_form_params,
|
|
662
|
-
files=_files,
|
|
663
|
-
auth_settings=_auth_settings,
|
|
664
|
-
collection_formats=_collection_formats,
|
|
665
|
-
_host=_host,
|
|
666
|
-
_request_auth=_request_auth
|
|
667
|
-
)
|
|
668
|
-
|
|
669
|
-
|