eval-studio-client 1.0.1__py3-none-any.whl → 1.0.3__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.3.dist-info}/METADATA +3 -2
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/RECORD +50 -179
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.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
|
@@ -21,8 +21,6 @@ from typing import List, Optional
|
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
22
|
from eval_studio_client.api.models.required_the_test_to_update import RequiredTheTestToUpdate
|
|
23
23
|
from eval_studio_client.api.models.test_service_generate_test_cases_request import TestServiceGenerateTestCasesRequest
|
|
24
|
-
from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
|
|
25
|
-
from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
|
|
26
24
|
from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
|
|
27
25
|
from eval_studio_client.api.models.v1_batch_delete_tests_request import V1BatchDeleteTestsRequest
|
|
28
26
|
from eval_studio_client.api.models.v1_batch_delete_tests_response import V1BatchDeleteTestsResponse
|
|
@@ -33,9 +31,7 @@ from eval_studio_client.api.models.v1_create_test_response import V1CreateTestRe
|
|
|
33
31
|
from eval_studio_client.api.models.v1_delete_test_response import V1DeleteTestResponse
|
|
34
32
|
from eval_studio_client.api.models.v1_generate_test_cases_response import V1GenerateTestCasesResponse
|
|
35
33
|
from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
|
|
36
|
-
from eval_studio_client.api.models.v1_import_test_cases_from_library_response import V1ImportTestCasesFromLibraryResponse
|
|
37
34
|
from eval_studio_client.api.models.v1_list_most_recent_tests_response import V1ListMostRecentTestsResponse
|
|
38
|
-
from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
|
|
39
35
|
from eval_studio_client.api.models.v1_list_tests_response import V1ListTestsResponse
|
|
40
36
|
from eval_studio_client.api.models.v1_perturb_test_response import V1PerturbTestResponse
|
|
41
37
|
from eval_studio_client.api.models.v1_test import V1Test
|
|
@@ -1924,288 +1920,6 @@ class TestServiceApi:
|
|
|
1924
1920
|
|
|
1925
1921
|
|
|
1926
1922
|
|
|
1927
|
-
@validate_call
|
|
1928
|
-
def test_service_import_test_cases_from_library(
|
|
1929
|
-
self,
|
|
1930
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
|
|
1931
|
-
body: TestServiceImportTestCasesFromLibraryRequest,
|
|
1932
|
-
_request_timeout: Union[
|
|
1933
|
-
None,
|
|
1934
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1935
|
-
Tuple[
|
|
1936
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
1937
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
1938
|
-
]
|
|
1939
|
-
] = None,
|
|
1940
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1941
|
-
_content_type: Optional[StrictStr] = None,
|
|
1942
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1943
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1944
|
-
) -> V1ImportTestCasesFromLibraryResponse:
|
|
1945
|
-
"""test_service_import_test_cases_from_library
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
:param name: Required. The Test for which to get TestCases. (required)
|
|
1949
|
-
:type name: str
|
|
1950
|
-
:param body: (required)
|
|
1951
|
-
:type body: TestServiceImportTestCasesFromLibraryRequest
|
|
1952
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
1953
|
-
number provided, it will be total request
|
|
1954
|
-
timeout. It can also be a pair (tuple) of
|
|
1955
|
-
(connection, read) timeouts.
|
|
1956
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
1957
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
1958
|
-
request; this effectively ignores the
|
|
1959
|
-
authentication in the spec for a single request.
|
|
1960
|
-
:type _request_auth: dict, optional
|
|
1961
|
-
:param _content_type: force content-type for the request.
|
|
1962
|
-
:type _content_type: str, Optional
|
|
1963
|
-
:param _headers: set to override the headers for a single
|
|
1964
|
-
request; this effectively ignores the headers
|
|
1965
|
-
in the spec for a single request.
|
|
1966
|
-
:type _headers: dict, optional
|
|
1967
|
-
:param _host_index: set to override the host_index for a single
|
|
1968
|
-
request; this effectively ignores the host_index
|
|
1969
|
-
in the spec for a single request.
|
|
1970
|
-
:type _host_index: int, optional
|
|
1971
|
-
:return: Returns the result object.
|
|
1972
|
-
""" # noqa: E501
|
|
1973
|
-
|
|
1974
|
-
_param = self._test_service_import_test_cases_from_library_serialize(
|
|
1975
|
-
name=name,
|
|
1976
|
-
body=body,
|
|
1977
|
-
_request_auth=_request_auth,
|
|
1978
|
-
_content_type=_content_type,
|
|
1979
|
-
_headers=_headers,
|
|
1980
|
-
_host_index=_host_index
|
|
1981
|
-
)
|
|
1982
|
-
|
|
1983
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
1984
|
-
'200': "V1ImportTestCasesFromLibraryResponse",
|
|
1985
|
-
}
|
|
1986
|
-
response_data = self.api_client.call_api(
|
|
1987
|
-
*_param,
|
|
1988
|
-
_request_timeout=_request_timeout
|
|
1989
|
-
)
|
|
1990
|
-
response_data.read()
|
|
1991
|
-
return self.api_client.response_deserialize(
|
|
1992
|
-
response_data=response_data,
|
|
1993
|
-
response_types_map=_response_types_map,
|
|
1994
|
-
).data
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
@validate_call
|
|
1998
|
-
def test_service_import_test_cases_from_library_with_http_info(
|
|
1999
|
-
self,
|
|
2000
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
|
|
2001
|
-
body: TestServiceImportTestCasesFromLibraryRequest,
|
|
2002
|
-
_request_timeout: Union[
|
|
2003
|
-
None,
|
|
2004
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2005
|
-
Tuple[
|
|
2006
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2007
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2008
|
-
]
|
|
2009
|
-
] = None,
|
|
2010
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2011
|
-
_content_type: Optional[StrictStr] = None,
|
|
2012
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2013
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2014
|
-
) -> ApiResponse[V1ImportTestCasesFromLibraryResponse]:
|
|
2015
|
-
"""test_service_import_test_cases_from_library
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
:param name: Required. The Test for which to get TestCases. (required)
|
|
2019
|
-
:type name: str
|
|
2020
|
-
:param body: (required)
|
|
2021
|
-
:type body: TestServiceImportTestCasesFromLibraryRequest
|
|
2022
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2023
|
-
number provided, it will be total request
|
|
2024
|
-
timeout. It can also be a pair (tuple) of
|
|
2025
|
-
(connection, read) timeouts.
|
|
2026
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2027
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2028
|
-
request; this effectively ignores the
|
|
2029
|
-
authentication in the spec for a single request.
|
|
2030
|
-
:type _request_auth: dict, optional
|
|
2031
|
-
:param _content_type: force content-type for the request.
|
|
2032
|
-
:type _content_type: str, Optional
|
|
2033
|
-
:param _headers: set to override the headers for a single
|
|
2034
|
-
request; this effectively ignores the headers
|
|
2035
|
-
in the spec for a single request.
|
|
2036
|
-
:type _headers: dict, optional
|
|
2037
|
-
:param _host_index: set to override the host_index for a single
|
|
2038
|
-
request; this effectively ignores the host_index
|
|
2039
|
-
in the spec for a single request.
|
|
2040
|
-
:type _host_index: int, optional
|
|
2041
|
-
:return: Returns the result object.
|
|
2042
|
-
""" # noqa: E501
|
|
2043
|
-
|
|
2044
|
-
_param = self._test_service_import_test_cases_from_library_serialize(
|
|
2045
|
-
name=name,
|
|
2046
|
-
body=body,
|
|
2047
|
-
_request_auth=_request_auth,
|
|
2048
|
-
_content_type=_content_type,
|
|
2049
|
-
_headers=_headers,
|
|
2050
|
-
_host_index=_host_index
|
|
2051
|
-
)
|
|
2052
|
-
|
|
2053
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2054
|
-
'200': "V1ImportTestCasesFromLibraryResponse",
|
|
2055
|
-
}
|
|
2056
|
-
response_data = self.api_client.call_api(
|
|
2057
|
-
*_param,
|
|
2058
|
-
_request_timeout=_request_timeout
|
|
2059
|
-
)
|
|
2060
|
-
response_data.read()
|
|
2061
|
-
return self.api_client.response_deserialize(
|
|
2062
|
-
response_data=response_data,
|
|
2063
|
-
response_types_map=_response_types_map,
|
|
2064
|
-
)
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
@validate_call
|
|
2068
|
-
def test_service_import_test_cases_from_library_without_preload_content(
|
|
2069
|
-
self,
|
|
2070
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
|
|
2071
|
-
body: TestServiceImportTestCasesFromLibraryRequest,
|
|
2072
|
-
_request_timeout: Union[
|
|
2073
|
-
None,
|
|
2074
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2075
|
-
Tuple[
|
|
2076
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2077
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2078
|
-
]
|
|
2079
|
-
] = None,
|
|
2080
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2081
|
-
_content_type: Optional[StrictStr] = None,
|
|
2082
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2083
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2084
|
-
) -> RESTResponseType:
|
|
2085
|
-
"""test_service_import_test_cases_from_library
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
:param name: Required. The Test for which to get TestCases. (required)
|
|
2089
|
-
:type name: str
|
|
2090
|
-
:param body: (required)
|
|
2091
|
-
:type body: TestServiceImportTestCasesFromLibraryRequest
|
|
2092
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2093
|
-
number provided, it will be total request
|
|
2094
|
-
timeout. It can also be a pair (tuple) of
|
|
2095
|
-
(connection, read) timeouts.
|
|
2096
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2097
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2098
|
-
request; this effectively ignores the
|
|
2099
|
-
authentication in the spec for a single request.
|
|
2100
|
-
:type _request_auth: dict, optional
|
|
2101
|
-
:param _content_type: force content-type for the request.
|
|
2102
|
-
:type _content_type: str, Optional
|
|
2103
|
-
:param _headers: set to override the headers for a single
|
|
2104
|
-
request; this effectively ignores the headers
|
|
2105
|
-
in the spec for a single request.
|
|
2106
|
-
:type _headers: dict, optional
|
|
2107
|
-
:param _host_index: set to override the host_index for a single
|
|
2108
|
-
request; this effectively ignores the host_index
|
|
2109
|
-
in the spec for a single request.
|
|
2110
|
-
:type _host_index: int, optional
|
|
2111
|
-
:return: Returns the result object.
|
|
2112
|
-
""" # noqa: E501
|
|
2113
|
-
|
|
2114
|
-
_param = self._test_service_import_test_cases_from_library_serialize(
|
|
2115
|
-
name=name,
|
|
2116
|
-
body=body,
|
|
2117
|
-
_request_auth=_request_auth,
|
|
2118
|
-
_content_type=_content_type,
|
|
2119
|
-
_headers=_headers,
|
|
2120
|
-
_host_index=_host_index
|
|
2121
|
-
)
|
|
2122
|
-
|
|
2123
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2124
|
-
'200': "V1ImportTestCasesFromLibraryResponse",
|
|
2125
|
-
}
|
|
2126
|
-
response_data = self.api_client.call_api(
|
|
2127
|
-
*_param,
|
|
2128
|
-
_request_timeout=_request_timeout
|
|
2129
|
-
)
|
|
2130
|
-
return response_data.response
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
def _test_service_import_test_cases_from_library_serialize(
|
|
2134
|
-
self,
|
|
2135
|
-
name,
|
|
2136
|
-
body,
|
|
2137
|
-
_request_auth,
|
|
2138
|
-
_content_type,
|
|
2139
|
-
_headers,
|
|
2140
|
-
_host_index,
|
|
2141
|
-
) -> RequestSerialized:
|
|
2142
|
-
|
|
2143
|
-
_host = None
|
|
2144
|
-
|
|
2145
|
-
_collection_formats: Dict[str, str] = {
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
_path_params: Dict[str, str] = {}
|
|
2149
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2150
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2151
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2152
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
2153
|
-
_body_params: Optional[bytes] = None
|
|
2154
|
-
|
|
2155
|
-
# process the path parameters
|
|
2156
|
-
if name is not None:
|
|
2157
|
-
_path_params['name'] = name
|
|
2158
|
-
# process the query parameters
|
|
2159
|
-
# process the header parameters
|
|
2160
|
-
# process the form parameters
|
|
2161
|
-
# process the body parameter
|
|
2162
|
-
if body is not None:
|
|
2163
|
-
_body_params = body
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
# set the HTTP header `Accept`
|
|
2167
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2168
|
-
[
|
|
2169
|
-
'application/json'
|
|
2170
|
-
]
|
|
2171
|
-
)
|
|
2172
|
-
|
|
2173
|
-
# set the HTTP header `Content-Type`
|
|
2174
|
-
if _content_type:
|
|
2175
|
-
_header_params['Content-Type'] = _content_type
|
|
2176
|
-
else:
|
|
2177
|
-
_default_content_type = (
|
|
2178
|
-
self.api_client.select_header_content_type(
|
|
2179
|
-
[
|
|
2180
|
-
'application/json'
|
|
2181
|
-
]
|
|
2182
|
-
)
|
|
2183
|
-
)
|
|
2184
|
-
if _default_content_type is not None:
|
|
2185
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2186
|
-
|
|
2187
|
-
# authentication setting
|
|
2188
|
-
_auth_settings: List[str] = [
|
|
2189
|
-
]
|
|
2190
|
-
|
|
2191
|
-
return self.api_client.param_serialize(
|
|
2192
|
-
method='POST',
|
|
2193
|
-
resource_path='/v1/{name}:importTestCasesFromLibrary',
|
|
2194
|
-
path_params=_path_params,
|
|
2195
|
-
query_params=_query_params,
|
|
2196
|
-
header_params=_header_params,
|
|
2197
|
-
body=_body_params,
|
|
2198
|
-
post_params=_form_params,
|
|
2199
|
-
files=_files,
|
|
2200
|
-
auth_settings=_auth_settings,
|
|
2201
|
-
collection_formats=_collection_formats,
|
|
2202
|
-
_host=_host,
|
|
2203
|
-
_request_auth=_request_auth
|
|
2204
|
-
)
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
1923
|
@validate_call
|
|
2210
1924
|
def test_service_list_most_recent_tests(
|
|
2211
1925
|
self,
|
|
@@ -2462,288 +2176,6 @@ class TestServiceApi:
|
|
|
2462
2176
|
|
|
2463
2177
|
|
|
2464
2178
|
|
|
2465
|
-
@validate_call
|
|
2466
|
-
def test_service_list_test_case_library_items(
|
|
2467
|
-
self,
|
|
2468
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2469
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2470
|
-
_request_timeout: Union[
|
|
2471
|
-
None,
|
|
2472
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2473
|
-
Tuple[
|
|
2474
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2475
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2476
|
-
]
|
|
2477
|
-
] = None,
|
|
2478
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2479
|
-
_content_type: Optional[StrictStr] = None,
|
|
2480
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2481
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2482
|
-
) -> V1ListTestCaseLibraryItemsResponse:
|
|
2483
|
-
"""test_service_list_test_case_library_items
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2487
|
-
:type name: str
|
|
2488
|
-
:param body: (required)
|
|
2489
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2490
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2491
|
-
number provided, it will be total request
|
|
2492
|
-
timeout. It can also be a pair (tuple) of
|
|
2493
|
-
(connection, read) timeouts.
|
|
2494
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2495
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2496
|
-
request; this effectively ignores the
|
|
2497
|
-
authentication in the spec for a single request.
|
|
2498
|
-
:type _request_auth: dict, optional
|
|
2499
|
-
:param _content_type: force content-type for the request.
|
|
2500
|
-
:type _content_type: str, Optional
|
|
2501
|
-
:param _headers: set to override the headers for a single
|
|
2502
|
-
request; this effectively ignores the headers
|
|
2503
|
-
in the spec for a single request.
|
|
2504
|
-
:type _headers: dict, optional
|
|
2505
|
-
:param _host_index: set to override the host_index for a single
|
|
2506
|
-
request; this effectively ignores the host_index
|
|
2507
|
-
in the spec for a single request.
|
|
2508
|
-
:type _host_index: int, optional
|
|
2509
|
-
:return: Returns the result object.
|
|
2510
|
-
""" # noqa: E501
|
|
2511
|
-
|
|
2512
|
-
_param = self._test_service_list_test_case_library_items_serialize(
|
|
2513
|
-
name=name,
|
|
2514
|
-
body=body,
|
|
2515
|
-
_request_auth=_request_auth,
|
|
2516
|
-
_content_type=_content_type,
|
|
2517
|
-
_headers=_headers,
|
|
2518
|
-
_host_index=_host_index
|
|
2519
|
-
)
|
|
2520
|
-
|
|
2521
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2522
|
-
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
2523
|
-
}
|
|
2524
|
-
response_data = self.api_client.call_api(
|
|
2525
|
-
*_param,
|
|
2526
|
-
_request_timeout=_request_timeout
|
|
2527
|
-
)
|
|
2528
|
-
response_data.read()
|
|
2529
|
-
return self.api_client.response_deserialize(
|
|
2530
|
-
response_data=response_data,
|
|
2531
|
-
response_types_map=_response_types_map,
|
|
2532
|
-
).data
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
@validate_call
|
|
2536
|
-
def test_service_list_test_case_library_items_with_http_info(
|
|
2537
|
-
self,
|
|
2538
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2539
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2540
|
-
_request_timeout: Union[
|
|
2541
|
-
None,
|
|
2542
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2543
|
-
Tuple[
|
|
2544
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2545
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2546
|
-
]
|
|
2547
|
-
] = None,
|
|
2548
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2549
|
-
_content_type: Optional[StrictStr] = None,
|
|
2550
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2551
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2552
|
-
) -> ApiResponse[V1ListTestCaseLibraryItemsResponse]:
|
|
2553
|
-
"""test_service_list_test_case_library_items
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2557
|
-
:type name: str
|
|
2558
|
-
:param body: (required)
|
|
2559
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2560
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2561
|
-
number provided, it will be total request
|
|
2562
|
-
timeout. It can also be a pair (tuple) of
|
|
2563
|
-
(connection, read) timeouts.
|
|
2564
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2565
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2566
|
-
request; this effectively ignores the
|
|
2567
|
-
authentication in the spec for a single request.
|
|
2568
|
-
:type _request_auth: dict, optional
|
|
2569
|
-
:param _content_type: force content-type for the request.
|
|
2570
|
-
:type _content_type: str, Optional
|
|
2571
|
-
:param _headers: set to override the headers for a single
|
|
2572
|
-
request; this effectively ignores the headers
|
|
2573
|
-
in the spec for a single request.
|
|
2574
|
-
:type _headers: dict, optional
|
|
2575
|
-
:param _host_index: set to override the host_index for a single
|
|
2576
|
-
request; this effectively ignores the host_index
|
|
2577
|
-
in the spec for a single request.
|
|
2578
|
-
:type _host_index: int, optional
|
|
2579
|
-
:return: Returns the result object.
|
|
2580
|
-
""" # noqa: E501
|
|
2581
|
-
|
|
2582
|
-
_param = self._test_service_list_test_case_library_items_serialize(
|
|
2583
|
-
name=name,
|
|
2584
|
-
body=body,
|
|
2585
|
-
_request_auth=_request_auth,
|
|
2586
|
-
_content_type=_content_type,
|
|
2587
|
-
_headers=_headers,
|
|
2588
|
-
_host_index=_host_index
|
|
2589
|
-
)
|
|
2590
|
-
|
|
2591
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2592
|
-
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
2593
|
-
}
|
|
2594
|
-
response_data = self.api_client.call_api(
|
|
2595
|
-
*_param,
|
|
2596
|
-
_request_timeout=_request_timeout
|
|
2597
|
-
)
|
|
2598
|
-
response_data.read()
|
|
2599
|
-
return self.api_client.response_deserialize(
|
|
2600
|
-
response_data=response_data,
|
|
2601
|
-
response_types_map=_response_types_map,
|
|
2602
|
-
)
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
@validate_call
|
|
2606
|
-
def test_service_list_test_case_library_items_without_preload_content(
|
|
2607
|
-
self,
|
|
2608
|
-
name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
|
|
2609
|
-
body: TestServiceListTestCaseLibraryItemsRequest,
|
|
2610
|
-
_request_timeout: Union[
|
|
2611
|
-
None,
|
|
2612
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2613
|
-
Tuple[
|
|
2614
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
2615
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
2616
|
-
]
|
|
2617
|
-
] = None,
|
|
2618
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2619
|
-
_content_type: Optional[StrictStr] = None,
|
|
2620
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2621
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2622
|
-
) -> RESTResponseType:
|
|
2623
|
-
"""test_service_list_test_case_library_items
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
:param name: Required. The Test for which to list the items. (required)
|
|
2627
|
-
:type name: str
|
|
2628
|
-
:param body: (required)
|
|
2629
|
-
:type body: TestServiceListTestCaseLibraryItemsRequest
|
|
2630
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
2631
|
-
number provided, it will be total request
|
|
2632
|
-
timeout. It can also be a pair (tuple) of
|
|
2633
|
-
(connection, read) timeouts.
|
|
2634
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
2635
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
2636
|
-
request; this effectively ignores the
|
|
2637
|
-
authentication in the spec for a single request.
|
|
2638
|
-
:type _request_auth: dict, optional
|
|
2639
|
-
:param _content_type: force content-type for the request.
|
|
2640
|
-
:type _content_type: str, Optional
|
|
2641
|
-
:param _headers: set to override the headers for a single
|
|
2642
|
-
request; this effectively ignores the headers
|
|
2643
|
-
in the spec for a single request.
|
|
2644
|
-
:type _headers: dict, optional
|
|
2645
|
-
:param _host_index: set to override the host_index for a single
|
|
2646
|
-
request; this effectively ignores the host_index
|
|
2647
|
-
in the spec for a single request.
|
|
2648
|
-
:type _host_index: int, optional
|
|
2649
|
-
:return: Returns the result object.
|
|
2650
|
-
""" # noqa: E501
|
|
2651
|
-
|
|
2652
|
-
_param = self._test_service_list_test_case_library_items_serialize(
|
|
2653
|
-
name=name,
|
|
2654
|
-
body=body,
|
|
2655
|
-
_request_auth=_request_auth,
|
|
2656
|
-
_content_type=_content_type,
|
|
2657
|
-
_headers=_headers,
|
|
2658
|
-
_host_index=_host_index
|
|
2659
|
-
)
|
|
2660
|
-
|
|
2661
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
2662
|
-
'200': "V1ListTestCaseLibraryItemsResponse",
|
|
2663
|
-
}
|
|
2664
|
-
response_data = self.api_client.call_api(
|
|
2665
|
-
*_param,
|
|
2666
|
-
_request_timeout=_request_timeout
|
|
2667
|
-
)
|
|
2668
|
-
return response_data.response
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
def _test_service_list_test_case_library_items_serialize(
|
|
2672
|
-
self,
|
|
2673
|
-
name,
|
|
2674
|
-
body,
|
|
2675
|
-
_request_auth,
|
|
2676
|
-
_content_type,
|
|
2677
|
-
_headers,
|
|
2678
|
-
_host_index,
|
|
2679
|
-
) -> RequestSerialized:
|
|
2680
|
-
|
|
2681
|
-
_host = None
|
|
2682
|
-
|
|
2683
|
-
_collection_formats: Dict[str, str] = {
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
_path_params: Dict[str, str] = {}
|
|
2687
|
-
_query_params: List[Tuple[str, str]] = []
|
|
2688
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2689
|
-
_form_params: List[Tuple[str, str]] = []
|
|
2690
|
-
_files: Dict[str, Union[str, bytes]] = {}
|
|
2691
|
-
_body_params: Optional[bytes] = None
|
|
2692
|
-
|
|
2693
|
-
# process the path parameters
|
|
2694
|
-
if name is not None:
|
|
2695
|
-
_path_params['name'] = name
|
|
2696
|
-
# process the query parameters
|
|
2697
|
-
# process the header parameters
|
|
2698
|
-
# process the form parameters
|
|
2699
|
-
# process the body parameter
|
|
2700
|
-
if body is not None:
|
|
2701
|
-
_body_params = body
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
# set the HTTP header `Accept`
|
|
2705
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2706
|
-
[
|
|
2707
|
-
'application/json'
|
|
2708
|
-
]
|
|
2709
|
-
)
|
|
2710
|
-
|
|
2711
|
-
# set the HTTP header `Content-Type`
|
|
2712
|
-
if _content_type:
|
|
2713
|
-
_header_params['Content-Type'] = _content_type
|
|
2714
|
-
else:
|
|
2715
|
-
_default_content_type = (
|
|
2716
|
-
self.api_client.select_header_content_type(
|
|
2717
|
-
[
|
|
2718
|
-
'application/json'
|
|
2719
|
-
]
|
|
2720
|
-
)
|
|
2721
|
-
)
|
|
2722
|
-
if _default_content_type is not None:
|
|
2723
|
-
_header_params['Content-Type'] = _default_content_type
|
|
2724
|
-
|
|
2725
|
-
# authentication setting
|
|
2726
|
-
_auth_settings: List[str] = [
|
|
2727
|
-
]
|
|
2728
|
-
|
|
2729
|
-
return self.api_client.param_serialize(
|
|
2730
|
-
method='POST',
|
|
2731
|
-
resource_path='/v1/{name}:listTestCaseLibraryItems',
|
|
2732
|
-
path_params=_path_params,
|
|
2733
|
-
query_params=_query_params,
|
|
2734
|
-
header_params=_header_params,
|
|
2735
|
-
body=_body_params,
|
|
2736
|
-
post_params=_form_params,
|
|
2737
|
-
files=_files,
|
|
2738
|
-
auth_settings=_auth_settings,
|
|
2739
|
-
collection_formats=_collection_formats,
|
|
2740
|
-
_host=_host,
|
|
2741
|
-
_request_auth=_request_auth
|
|
2742
|
-
)
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
2179
|
@validate_call
|
|
2748
2180
|
def test_service_list_tests(
|
|
2749
2181
|
self,
|
|
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**perturbator_configurations** | [**List[V1PerturbatorConfiguration]**](V1PerturbatorConfiguration.md) | Required. PerturbatorConfiguration to apply to the parent Test. | [optional]
|
|
9
9
|
**test_cases** | [**List[V1TestCase]**](V1TestCase.md) | Required. List of test cases to perturbate. These are the test cases from the parent test. TODO: breaks https://google.aip.dev/144 | [optional]
|
|
10
10
|
**test_case_relationships** | [**List[V1TestCaseRelationship]**](V1TestCaseRelationship.md) | Optional. List of relationships between test cases. | [optional]
|
|
11
|
-
**default_h2ogpte_model** | [**V1Model**](V1Model.md) | | [optional]
|
|
12
11
|
|
|
13
12
|
## Example
|
|
14
13
|
|
|
@@ -75,7 +75,7 @@ No authorization required
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
76
|
|
|
77
77
|
# **perturbator_service_list_perturbators**
|
|
78
|
-
> V1ListPerturbatorsResponse perturbator_service_list_perturbators(
|
|
78
|
+
> V1ListPerturbatorsResponse perturbator_service_list_perturbators()
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
@@ -99,23 +99,9 @@ configuration = eval_studio_client.api.Configuration(
|
|
|
99
99
|
with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
100
100
|
# Create an instance of the API class
|
|
101
101
|
api_instance = eval_studio_client.api.PerturbatorServiceApi(api_client)
|
|
102
|
-
default_h2ogpte_model_name = 'default_h2ogpte_model_name_example' # str | Output only. Name of the Model resource. e.g.: \"models/<UUID>\" (optional)
|
|
103
|
-
default_h2ogpte_model_create_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Timestamp when the Model was created. (optional)
|
|
104
|
-
default_h2ogpte_model_creator = 'default_h2ogpte_model_creator_example' # str | Output only. Name of the user or service that requested creation of the Model. (optional)
|
|
105
|
-
default_h2ogpte_model_update_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Optional. Timestamp when the Model was last updated. (optional)
|
|
106
|
-
default_h2ogpte_model_updater = 'default_h2ogpte_model_updater_example' # str | Output only. Optional. Name of the user or service that requested update of the Model. (optional)
|
|
107
|
-
default_h2ogpte_model_delete_time = '2013-10-20T19:20:30+01:00' # datetime | Output only. Optional. Set when the Model is deleted. When set Model should be considered as deleted. (optional)
|
|
108
|
-
default_h2ogpte_model_deleter = 'default_h2ogpte_model_deleter_example' # str | Output only. Optional. Name of the user or service that requested deletion of the Model. (optional)
|
|
109
|
-
default_h2ogpte_model_display_name = 'default_h2ogpte_model_display_name_example' # str | Human readable name of the Model. (optional)
|
|
110
|
-
default_h2ogpte_model_description = 'default_h2ogpte_model_description_example' # str | Optional. Arbitrary description of the Model. (optional)
|
|
111
|
-
default_h2ogpte_model_url = 'default_h2ogpte_model_url_example' # str | Optional. Immutable. Absolute URL to the Model. (optional)
|
|
112
|
-
default_h2ogpte_model_api_key = 'default_h2ogpte_model_api_key_example' # str | Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public clients (front-end). Set only for internal (server-to-worker) communication. (optional)
|
|
113
|
-
default_h2ogpte_model_type = 'MODEL_TYPE_UNSPECIFIED' # str | Immutable. Type of this Model. - MODEL_TYPE_UNSPECIFIED: Unspecified type. - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG. - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG. - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM. - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM. - MODEL_TYPE_OPENAI_CHAT: OpenAI chat. - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat. - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat. - MODEL_TYPE_H2OLLMOPS: H2O LLMOps. - MODEL_TYPE_OLLAMA: Ollama. - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock. (optional) (default to 'MODEL_TYPE_UNSPECIFIED')
|
|
114
|
-
default_h2ogpte_model_parameters = 'default_h2ogpte_model_parameters_example' # str | Optional. Model specific parameters in JSON format. (optional)
|
|
115
|
-
default_h2ogpte_model_demo = True # bool | Output only. Whether the Model is a demo resource or not. Demo resources are read only. (optional)
|
|
116
102
|
|
|
117
103
|
try:
|
|
118
|
-
api_response = api_instance.perturbator_service_list_perturbators(
|
|
104
|
+
api_response = api_instance.perturbator_service_list_perturbators()
|
|
119
105
|
print("The response of PerturbatorServiceApi->perturbator_service_list_perturbators:\n")
|
|
120
106
|
pprint(api_response)
|
|
121
107
|
except Exception as e:
|
|
@@ -126,23 +112,7 @@ with eval_studio_client.api.ApiClient(configuration) as api_client:
|
|
|
126
112
|
|
|
127
113
|
### Parameters
|
|
128
114
|
|
|
129
|
-
|
|
130
|
-
Name | Type | Description | Notes
|
|
131
|
-
------------- | ------------- | ------------- | -------------
|
|
132
|
-
**default_h2ogpte_model_name** | **str**| Output only. Name of the Model resource. e.g.: \"models/<UUID>\" | [optional]
|
|
133
|
-
**default_h2ogpte_model_create_time** | **datetime**| Output only. Timestamp when the Model was created. | [optional]
|
|
134
|
-
**default_h2ogpte_model_creator** | **str**| Output only. Name of the user or service that requested creation of the Model. | [optional]
|
|
135
|
-
**default_h2ogpte_model_update_time** | **datetime**| Output only. Optional. Timestamp when the Model was last updated. | [optional]
|
|
136
|
-
**default_h2ogpte_model_updater** | **str**| Output only. Optional. Name of the user or service that requested update of the Model. | [optional]
|
|
137
|
-
**default_h2ogpte_model_delete_time** | **datetime**| Output only. Optional. Set when the Model is deleted. When set Model should be considered as deleted. | [optional]
|
|
138
|
-
**default_h2ogpte_model_deleter** | **str**| Output only. Optional. Name of the user or service that requested deletion of the Model. | [optional]
|
|
139
|
-
**default_h2ogpte_model_display_name** | **str**| Human readable name of the Model. | [optional]
|
|
140
|
-
**default_h2ogpte_model_description** | **str**| Optional. Arbitrary description of the Model. | [optional]
|
|
141
|
-
**default_h2ogpte_model_url** | **str**| Optional. Immutable. Absolute URL to the Model. | [optional]
|
|
142
|
-
**default_h2ogpte_model_api_key** | **str**| Optional. API key used to access the Model. Not set for read calls (i.e. get, list) by public clients (front-end). Set only for internal (server-to-worker) communication. | [optional]
|
|
143
|
-
**default_h2ogpte_model_type** | **str**| Immutable. Type of this Model. - MODEL_TYPE_UNSPECIFIED: Unspecified type. - MODEL_TYPE_H2OGPTE_RAG: h2oGPTe RAG. - MODEL_TYPE_OPENAI_RAG: OpenAI Assistant RAG. - MODEL_TYPE_H2OGPTE_LLM: h2oGPTe LLM. - MODEL_TYPE_H2OGPT_LLM: h2oGPT LLM. - MODEL_TYPE_OPENAI_CHAT: OpenAI chat. - MODEL_TYPE_AZURE_OPENAI_CHAT: Microsoft Azure hosted OpenAI Chat. - MODEL_TYPE_OPENAI_API_CHAT: OpenAI API chat. - MODEL_TYPE_H2OLLMOPS: H2O LLMOps. - MODEL_TYPE_OLLAMA: Ollama. - MODEL_TYPE_AMAZON_BEDROCK: Amazon Bedrock. | [optional] [default to 'MODEL_TYPE_UNSPECIFIED']
|
|
144
|
-
**default_h2ogpte_model_parameters** | **str**| Optional. Model specific parameters in JSON format. | [optional]
|
|
145
|
-
**default_h2ogpte_model_demo** | **bool**| Output only. Whether the Model is a demo resource or not. Demo resources are read only. | [optional]
|
|
115
|
+
This endpoint does not need any parameter.
|
|
146
116
|
|
|
147
117
|
### Return type
|
|
148
118
|
|
|
@@ -10,9 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**count** | **int** | Required. The number of TestCases to generate. | [optional]
|
|
11
11
|
**base_llm_model** | **str** | Required. Base LLM model to use for generating the prompts. | [optional]
|
|
12
12
|
**document_urls** | **List[str]** | Optional. The list of document URLs. The document URL might be a managed document URL or a public URL. | [optional]
|
|
13
|
-
**generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional.
|
|
13
|
+
**generators** | [**List[V1TestCasesGenerator]**](V1TestCasesGenerator.md) | Optional. Topics to generate TestCases for. If not specified, all topics are selected. | [optional]
|
|
14
14
|
**h2ogpte_collection_id** | **str** | Optional. The ID of the h2oGPTe collection to use. If empty, new temporary collection will be created. | [optional]
|
|
15
|
-
**topics** | **List[str]** | Optional. Topics to generate questions for. If not specified, use document summarization as topic generation. | [optional]
|
|
16
15
|
|
|
17
16
|
## Example
|
|
18
17
|
|