eval-studio-client 1.2.0a1__py3-none-any.whl → 1.2.0a3__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 +21 -0
- eval_studio_client/api/api/__init__.py +1 -0
- eval_studio_client/api/api/dashboard_service_api.py +1134 -73
- eval_studio_client/api/api/info_service_api.py +240 -0
- eval_studio_client/api/api/test_service_api.py +1233 -172
- eval_studio_client/api/api/workflow_result_service_api.py +1075 -0
- eval_studio_client/api/api/workflow_service_api.py +1420 -101
- eval_studio_client/api/docs/DashboardServiceApi.md +272 -0
- eval_studio_client/api/docs/InfoServiceApi.md +63 -0
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -1
- eval_studio_client/api/docs/TestServiceApi.md +268 -0
- eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/V1CreatePerturbationResponse.md +1 -1
- eval_studio_client/api/docs/V1FindWorkflowsByCollectionIDResponse.md +29 -0
- eval_studio_client/api/docs/V1GetStatsResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +30 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1Info.md +2 -0
- eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1Role.md +12 -0
- eval_studio_client/api/docs/V1RoleBinding.md +32 -0
- eval_studio_client/api/docs/V1Stats.md +32 -0
- eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
- eval_studio_client/api/docs/V1WorkflowResultReportFormat.md +11 -0
- eval_studio_client/api/docs/WorkflowResultServiceApi.md +282 -0
- eval_studio_client/api/docs/WorkflowServiceApi.md +340 -0
- eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
- eval_studio_client/api/models/__init__.py +20 -0
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +1 -1
- eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
- eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
- eval_studio_client/api/models/v1_create_perturbation_response.py +1 -1
- eval_studio_client/api/models/v1_find_workflows_by_collection_id_response.py +95 -0
- eval_studio_client/api/models/v1_get_stats_response.py +91 -0
- eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
- eval_studio_client/api/models/v1_get_workflow_result_report_response.py +89 -0
- eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
- eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
- eval_studio_client/api/models/v1_info.py +6 -2
- eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_role.py +38 -0
- eval_studio_client/api/models/v1_role_binding.py +92 -0
- eval_studio_client/api/models/v1_stats.py +106 -0
- eval_studio_client/api/models/v1_workflow_node_type.py +1 -0
- eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
- eval_studio_client/api/models/v1_workflow_result_report_format.py +37 -0
- eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
- eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
- eval_studio_client/api/test/test_info_service_api.py +6 -0
- eval_studio_client/api/test/test_test_service_api.py +24 -0
- eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
- eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
- eval_studio_client/api/test/test_v1_find_workflows_by_collection_id_response.py +95 -0
- eval_studio_client/api/test/test_v1_get_info_response.py +3 -1
- eval_studio_client/api/test/test_v1_get_stats_response.py +54 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +54 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_info.py +3 -1
- eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
- eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
- eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/test/test_v1_role.py +33 -0
- eval_studio_client/api/test/test_v1_role_binding.py +53 -0
- eval_studio_client/api/test/test_v1_stats.py +53 -0
- eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
- eval_studio_client/api/test/test_v1_workflow_result_report_format.py +33 -0
- eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
- eval_studio_client/api/test/test_workflow_service_api.py +35 -0
- eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +940 -13
- eval_studio_client/tests.py +3 -3
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/METADATA +2 -1
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/RECORD +92 -29
- {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_list_tests_shared_with_me_response import V1ListTestsSharedWithMeResponse
|
|
18
|
+
|
|
19
|
+
class TestV1ListTestsSharedWithMeResponse(unittest.TestCase):
|
|
20
|
+
"""V1ListTestsSharedWithMeResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1ListTestsSharedWithMeResponse:
|
|
29
|
+
"""Test V1ListTestsSharedWithMeResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1ListTestsSharedWithMeResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1ListTestsSharedWithMeResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1ListTestsSharedWithMeResponse(
|
|
38
|
+
tests = [
|
|
39
|
+
eval_studio_client.api.models.v1_test.v1Test(
|
|
40
|
+
name = '',
|
|
41
|
+
create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
+
creator = '',
|
|
43
|
+
update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
44
|
+
updater = '',
|
|
45
|
+
delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
46
|
+
deleter = '',
|
|
47
|
+
display_name = '',
|
|
48
|
+
description = '',
|
|
49
|
+
documents = [
|
|
50
|
+
''
|
|
51
|
+
],
|
|
52
|
+
tags = [
|
|
53
|
+
''
|
|
54
|
+
],
|
|
55
|
+
demo = True,
|
|
56
|
+
type = 'TEST_TYPE_UNSPECIFIED', )
|
|
57
|
+
]
|
|
58
|
+
)
|
|
59
|
+
else:
|
|
60
|
+
return V1ListTestsSharedWithMeResponse(
|
|
61
|
+
)
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
def testV1ListTestsSharedWithMeResponse(self):
|
|
65
|
+
"""Test V1ListTestsSharedWithMeResponse"""
|
|
66
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
67
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
68
|
+
|
|
69
|
+
if __name__ == '__main__':
|
|
70
|
+
unittest.main()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_list_workflow_access_response import V1ListWorkflowAccessResponse
|
|
18
|
+
|
|
19
|
+
class TestV1ListWorkflowAccessResponse(unittest.TestCase):
|
|
20
|
+
"""V1ListWorkflowAccessResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1ListWorkflowAccessResponse:
|
|
29
|
+
"""Test V1ListWorkflowAccessResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1ListWorkflowAccessResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1ListWorkflowAccessResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1ListWorkflowAccessResponse(
|
|
38
|
+
role_bindings = [
|
|
39
|
+
eval_studio_client.api.models.v1_role_binding.v1RoleBinding(
|
|
40
|
+
subject = '',
|
|
41
|
+
role = 'ROLE_UNSPECIFIED',
|
|
42
|
+
resource = '', )
|
|
43
|
+
]
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return V1ListWorkflowAccessResponse(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testV1ListWorkflowAccessResponse(self):
|
|
51
|
+
"""Test V1ListWorkflowAccessResponse"""
|
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
54
|
+
|
|
55
|
+
if __name__ == '__main__':
|
|
56
|
+
unittest.main()
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_list_workflows_shared_with_me_response import V1ListWorkflowsSharedWithMeResponse
|
|
18
|
+
|
|
19
|
+
class TestV1ListWorkflowsSharedWithMeResponse(unittest.TestCase):
|
|
20
|
+
"""V1ListWorkflowsSharedWithMeResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1ListWorkflowsSharedWithMeResponse:
|
|
29
|
+
"""Test V1ListWorkflowsSharedWithMeResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1ListWorkflowsSharedWithMeResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1ListWorkflowsSharedWithMeResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1ListWorkflowsSharedWithMeResponse(
|
|
38
|
+
workflows = [
|
|
39
|
+
eval_studio_client.api.models.v1_workflow.v1Workflow(
|
|
40
|
+
name = '',
|
|
41
|
+
display_name = '',
|
|
42
|
+
description = '',
|
|
43
|
+
create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
44
|
+
creator = '',
|
|
45
|
+
update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
46
|
+
updater = '',
|
|
47
|
+
delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
48
|
+
deleter = '',
|
|
49
|
+
type = 'WORKFLOW_TYPE_UNSPECIFIED',
|
|
50
|
+
model = '',
|
|
51
|
+
nodes = [
|
|
52
|
+
''
|
|
53
|
+
],
|
|
54
|
+
edges = [
|
|
55
|
+
''
|
|
56
|
+
],
|
|
57
|
+
outputs = {
|
|
58
|
+
'key' : None
|
|
59
|
+
},
|
|
60
|
+
output_artifacts = {
|
|
61
|
+
'key' : eval_studio_client.api.models.v1_workflow_node_artifacts.v1WorkflowNodeArtifacts(
|
|
62
|
+
artifacts = [
|
|
63
|
+
eval_studio_client.api.models.v1_workflow_node_artifact.v1WorkflowNodeArtifact(
|
|
64
|
+
name = '',
|
|
65
|
+
parent = '',
|
|
66
|
+
display_name = '',
|
|
67
|
+
description = '',
|
|
68
|
+
create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
69
|
+
creator = '',
|
|
70
|
+
update_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
71
|
+
updater = '',
|
|
72
|
+
delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
73
|
+
deleter = '',
|
|
74
|
+
mime_type = '', )
|
|
75
|
+
], )
|
|
76
|
+
},
|
|
77
|
+
llm_model = '',
|
|
78
|
+
model_parameters = '',
|
|
79
|
+
document = '',
|
|
80
|
+
h2ogpte_collection = '',
|
|
81
|
+
cloned_from_workflow = '', )
|
|
82
|
+
]
|
|
83
|
+
)
|
|
84
|
+
else:
|
|
85
|
+
return V1ListWorkflowsSharedWithMeResponse(
|
|
86
|
+
)
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
def testV1ListWorkflowsSharedWithMeResponse(self):
|
|
90
|
+
"""Test V1ListWorkflowsSharedWithMeResponse"""
|
|
91
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
92
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
93
|
+
|
|
94
|
+
if __name__ == '__main__':
|
|
95
|
+
unittest.main()
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_role import V1Role
|
|
18
|
+
|
|
19
|
+
class TestV1Role(unittest.TestCase):
|
|
20
|
+
"""V1Role unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testV1Role(self):
|
|
29
|
+
"""Test V1Role"""
|
|
30
|
+
# inst = V1Role()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_role_binding import V1RoleBinding
|
|
18
|
+
|
|
19
|
+
class TestV1RoleBinding(unittest.TestCase):
|
|
20
|
+
"""V1RoleBinding unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1RoleBinding:
|
|
29
|
+
"""Test V1RoleBinding
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1RoleBinding`
|
|
34
|
+
"""
|
|
35
|
+
model = V1RoleBinding()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1RoleBinding(
|
|
38
|
+
subject = '',
|
|
39
|
+
role = 'ROLE_UNSPECIFIED',
|
|
40
|
+
resource = ''
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return V1RoleBinding(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testV1RoleBinding(self):
|
|
48
|
+
"""Test V1RoleBinding"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_stats import V1Stats
|
|
18
|
+
|
|
19
|
+
class TestV1Stats(unittest.TestCase):
|
|
20
|
+
"""V1Stats unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1Stats:
|
|
29
|
+
"""Test V1Stats
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1Stats`
|
|
34
|
+
"""
|
|
35
|
+
model = V1Stats()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1Stats(
|
|
38
|
+
topic_modeling_pending_jobs = '',
|
|
39
|
+
test_validation_pending_jobs = '',
|
|
40
|
+
failure_clustering_pending_jobs = ''
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return V1Stats(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testV1Stats(self):
|
|
48
|
+
"""Test V1Stats"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_workflow_result_artifact_type import V1WorkflowResultArtifactType
|
|
18
|
+
|
|
19
|
+
class TestV1WorkflowResultArtifactType(unittest.TestCase):
|
|
20
|
+
"""V1WorkflowResultArtifactType unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testV1WorkflowResultArtifactType(self):
|
|
29
|
+
"""Test V1WorkflowResultArtifactType"""
|
|
30
|
+
# inst = V1WorkflowResultArtifactType()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_workflow_result_report_format import V1WorkflowResultReportFormat
|
|
18
|
+
|
|
19
|
+
class TestV1WorkflowResultReportFormat(unittest.TestCase):
|
|
20
|
+
"""V1WorkflowResultReportFormat unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testV1WorkflowResultReportFormat(self):
|
|
29
|
+
"""Test V1WorkflowResultReportFormat"""
|
|
30
|
+
# inst = V1WorkflowResultReportFormat()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.api.workflow_result_service_api import WorkflowResultServiceApi
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TestWorkflowResultServiceApi(unittest.TestCase):
|
|
21
|
+
"""WorkflowResultServiceApi unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self) -> None:
|
|
24
|
+
self.api = WorkflowResultServiceApi()
|
|
25
|
+
|
|
26
|
+
def tearDown(self) -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def test_workflow_result_service_get_workflow_result_corpus_patch(self) -> None:
|
|
30
|
+
"""Test case for workflow_result_service_get_workflow_result_corpus_patch
|
|
31
|
+
|
|
32
|
+
GetWorkflowResultCorpusPatch retrieves the corpus patch of a Workflow result. The corpus patch is a HTML document that contains questions and answers identified as problematic in HEC and RT IV workflow steps.
|
|
33
|
+
"""
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
def test_workflow_result_service_get_workflow_result_report(self) -> None:
|
|
37
|
+
"""Test case for workflow_result_service_get_workflow_result_report
|
|
38
|
+
|
|
39
|
+
GetWorkflowResultReport retrieves the report of a Workflow result. The report is a detailed HTML document summarizing the Workflow's execution and findings.
|
|
40
|
+
"""
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
def test_workflow_result_service_get_workflow_result_summary(self) -> None:
|
|
44
|
+
"""Test case for workflow_result_service_get_workflow_result_summary
|
|
45
|
+
|
|
46
|
+
GetWorkflowResultSummary retrieves the 3x3x3 summary of a Workflow result. The summary includes 3 summary sentences, 3 bullets with most serious highlights, and 3 recommended actions sentences.
|
|
47
|
+
"""
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
def test_workflow_result_service_get_workflow_result_system_prompt_patch(self) -> None:
|
|
51
|
+
"""Test case for workflow_result_service_get_workflow_result_system_prompt_patch
|
|
52
|
+
|
|
53
|
+
GetWorkflowResultSystemPromptPatch retrieves the system prompt patch of a Workflow result.
|
|
54
|
+
"""
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|
|
@@ -54,6 +54,13 @@ class TestWorkflowServiceApi(unittest.TestCase):
|
|
|
54
54
|
"""
|
|
55
55
|
pass
|
|
56
56
|
|
|
57
|
+
def test_workflow_service_find_workflows_by_collection_id(self) -> None:
|
|
58
|
+
"""Test case for workflow_service_find_workflows_by_collection_id
|
|
59
|
+
|
|
60
|
+
FindWorkflowByCollectionID finds a Workflow by used H2OGPTe collection ID.
|
|
61
|
+
"""
|
|
62
|
+
pass
|
|
63
|
+
|
|
57
64
|
def test_workflow_service_get_guardrails_configuration(self) -> None:
|
|
58
65
|
"""Test case for workflow_service_get_guardrails_configuration
|
|
59
66
|
|
|
@@ -67,6 +74,20 @@ class TestWorkflowServiceApi(unittest.TestCase):
|
|
|
67
74
|
"""
|
|
68
75
|
pass
|
|
69
76
|
|
|
77
|
+
def test_workflow_service_grant_workflow_access(self) -> None:
|
|
78
|
+
"""Test case for workflow_service_grant_workflow_access
|
|
79
|
+
|
|
80
|
+
GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
|
|
81
|
+
"""
|
|
82
|
+
pass
|
|
83
|
+
|
|
84
|
+
def test_workflow_service_list_workflow_access(self) -> None:
|
|
85
|
+
"""Test case for workflow_service_list_workflow_access
|
|
86
|
+
|
|
87
|
+
ListWorkflowAccess lists access to a Workflow.
|
|
88
|
+
"""
|
|
89
|
+
pass
|
|
90
|
+
|
|
70
91
|
def test_workflow_service_list_workflow_dependencies(self) -> None:
|
|
71
92
|
"""Test case for workflow_service_list_workflow_dependencies
|
|
72
93
|
|
|
@@ -81,6 +102,20 @@ class TestWorkflowServiceApi(unittest.TestCase):
|
|
|
81
102
|
"""
|
|
82
103
|
pass
|
|
83
104
|
|
|
105
|
+
def test_workflow_service_list_workflows_shared_with_me(self) -> None:
|
|
106
|
+
"""Test case for workflow_service_list_workflows_shared_with_me
|
|
107
|
+
|
|
108
|
+
ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
|
|
109
|
+
"""
|
|
110
|
+
pass
|
|
111
|
+
|
|
112
|
+
def test_workflow_service_revoke_workflow_access(self) -> None:
|
|
113
|
+
"""Test case for workflow_service_revoke_workflow_access
|
|
114
|
+
|
|
115
|
+
RevokeWorkflowAccess revokes access to a Workflow from a subject.
|
|
116
|
+
"""
|
|
117
|
+
pass
|
|
118
|
+
|
|
84
119
|
def test_workflow_service_update_workflow(self) -> None:
|
|
85
120
|
"""Test case for workflow_service_update_workflow
|
|
86
121
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
ai/h2o/eval_studio/v1/insight.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
|
+
|
|
15
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
|
|
18
|
+
|
|
19
|
+
class TestWorkflowServiceRevokeWorkflowAccessRequest(unittest.TestCase):
|
|
20
|
+
"""WorkflowServiceRevokeWorkflowAccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> WorkflowServiceRevokeWorkflowAccessRequest:
|
|
29
|
+
"""Test WorkflowServiceRevokeWorkflowAccessRequest
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `WorkflowServiceRevokeWorkflowAccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = WorkflowServiceRevokeWorkflowAccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return WorkflowServiceRevokeWorkflowAccessRequest(
|
|
38
|
+
subject = '',
|
|
39
|
+
role = 'ROLE_UNSPECIFIED'
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return WorkflowServiceRevokeWorkflowAccessRequest(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testWorkflowServiceRevokeWorkflowAccessRequest(self):
|
|
47
|
+
"""Test WorkflowServiceRevokeWorkflowAccessRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|