eval-studio-client 1.1.0a5__py3-none-any.whl → 1.1.0a6__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 +7 -3
- eval_studio_client/api/api/__init__.py +0 -1
- eval_studio_client/api/api/dashboard_service_api.py +17 -0
- eval_studio_client/api/api/test_service_api.py +34 -0
- eval_studio_client/api/api/workflow_service_api.py +510 -0
- eval_studio_client/api/docs/DashboardServiceApi.md +4 -2
- eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -1
- eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +1 -0
- eval_studio_client/api/docs/RequiredTheTestToUpdate.md +1 -0
- eval_studio_client/api/docs/TestServiceApi.md +8 -4
- eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +1 -1
- eval_studio_client/api/docs/V1Context.md +9 -4
- eval_studio_client/api/docs/V1Dashboard.md +1 -0
- eval_studio_client/api/docs/V1DashboardType.md +12 -0
- eval_studio_client/api/docs/V1DependencyList.md +30 -0
- eval_studio_client/api/docs/V1Evaluator.md +2 -0
- eval_studio_client/api/docs/V1GetGuardrailsConfigurationResponse.md +29 -0
- eval_studio_client/api/docs/V1LeaderboardReportModel.md +0 -2
- eval_studio_client/api/docs/V1ListWorkflowDependenciesResponse.md +30 -0
- eval_studio_client/api/docs/V1RepeatedContext.md +29 -0
- eval_studio_client/api/docs/V1Test.md +1 -0
- eval_studio_client/api/docs/V1TestType.md +12 -0
- eval_studio_client/api/docs/V1WorkflowDependency.md +30 -0
- eval_studio_client/api/docs/V1WorkflowEdgeType.md +1 -1
- eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +1 -0
- eval_studio_client/api/docs/WorkflowServiceApi.md +135 -0
- eval_studio_client/api/models/__init__.py +7 -2
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -2
- eval_studio_client/api/models/required_the_dashboard_to_update.py +5 -2
- eval_studio_client/api/models/required_the_test_to_update.py +5 -2
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +10 -2
- eval_studio_client/api/models/v1_context.py +16 -6
- eval_studio_client/api/models/v1_dashboard.py +5 -2
- eval_studio_client/api/models/v1_dashboard_type.py +38 -0
- eval_studio_client/api/models/{generated_questions_validation_service_validate_generated_questions_request.py → v1_dependency_list.py} +14 -14
- eval_studio_client/api/models/v1_evaluator.py +11 -3
- eval_studio_client/api/models/v1_get_guardrails_configuration_response.py +87 -0
- eval_studio_client/api/models/v1_leaderboard_report_model.py +2 -10
- eval_studio_client/api/models/v1_list_workflow_dependencies_response.py +105 -0
- eval_studio_client/api/models/{v1_generated_test_case.py → v1_repeated_context.py} +12 -18
- eval_studio_client/api/models/v1_test.py +5 -2
- eval_studio_client/api/models/v1_test_type.py +38 -0
- eval_studio_client/api/models/v1_workflow_dependency.py +89 -0
- eval_studio_client/api/models/v1_workflow_edge_type.py +3 -2
- eval_studio_client/api/models/v1_workflow_node_artifact.py +6 -2
- eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +10 -2
- eval_studio_client/api/test/test_required_the_dashboard_to_update.py +2 -1
- eval_studio_client/api/test/test_required_the_test_to_update.py +2 -1
- eval_studio_client/api/test/test_required_the_updated_workflow.py +2 -1
- eval_studio_client/api/test/test_required_the_updated_workflow_node.py +2 -1
- eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +10 -1
- eval_studio_client/api/test/test_v1_batch_delete_dashboards_response.py +2 -1
- eval_studio_client/api/test/test_v1_batch_delete_evaluators_response.py +3 -1
- eval_studio_client/api/test/test_v1_batch_delete_tests_response.py +2 -1
- eval_studio_client/api/test/test_v1_batch_get_dashboards_response.py +2 -1
- eval_studio_client/api/test/test_v1_batch_get_tests_response.py +2 -1
- eval_studio_client/api/test/test_v1_batch_import_tests_response.py +2 -1
- eval_studio_client/api/test/test_v1_clone_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_context.py +6 -1
- eval_studio_client/api/test/test_v1_create_dashboard_response.py +2 -1
- eval_studio_client/api/test/test_v1_create_evaluator_response.py +3 -1
- eval_studio_client/api/test/test_v1_create_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_dashboard.py +2 -1
- eval_studio_client/api/test/test_v1_dashboard_type.py +33 -0
- eval_studio_client/api/test/test_v1_delete_dashboard_response.py +2 -1
- eval_studio_client/api/test/test_v1_delete_evaluator_response.py +3 -1
- eval_studio_client/api/test/test_v1_delete_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_dependency_list.py +56 -0
- eval_studio_client/api/test/test_v1_evaluator.py +3 -1
- eval_studio_client/api/test/test_v1_get_dashboard_response.py +2 -1
- eval_studio_client/api/test/test_v1_get_evaluator_response.py +3 -1
- eval_studio_client/api/test/test_v1_get_guardrails_configuration_response.py +51 -0
- eval_studio_client/api/test/test_v1_get_leaderboard_report_response.py +1 -3
- eval_studio_client/api/test/test_v1_get_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_leaderboard_report.py +1 -3
- eval_studio_client/api/test/test_v1_leaderboard_report_model.py +1 -3
- eval_studio_client/api/test/test_v1_list_dashboards_response.py +2 -1
- eval_studio_client/api/test/test_v1_list_evaluators_response.py +3 -1
- eval_studio_client/api/test/test_v1_list_most_recent_dashboards_response.py +2 -1
- eval_studio_client/api/test/test_v1_list_most_recent_tests_response.py +2 -1
- eval_studio_client/api/test/test_v1_list_tests_response.py +2 -1
- eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +93 -0
- eval_studio_client/api/test/test_v1_perturb_test_in_place_response.py +2 -1
- eval_studio_client/api/test/test_v1_perturb_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_repeated_context.py +62 -0
- eval_studio_client/api/test/test_v1_test.py +2 -1
- eval_studio_client/api/test/test_v1_test_type.py +33 -0
- eval_studio_client/api/test/test_v1_update_dashboard_response.py +2 -1
- eval_studio_client/api/test/test_v1_update_test_response.py +2 -1
- eval_studio_client/api/test/test_v1_workflow.py +2 -1
- eval_studio_client/api/test/test_v1_workflow_dependency.py +52 -0
- eval_studio_client/api/test/test_v1_workflow_node.py +2 -1
- eval_studio_client/api/test/test_v1_workflow_node_artifact.py +2 -1
- eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +2 -1
- eval_studio_client/api/test/test_workflow_service_api.py +13 -0
- eval_studio_client/client.py +11 -2
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +241 -92
- {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a6.dist-info}/METADATA +1 -1
- {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a6.dist-info}/RECORD +100 -88
- eval_studio_client/api/api/generated_questions_validation_service_api.py +0 -321
- eval_studio_client/api/docs/GeneratedQuestionsValidationServiceApi.md +0 -78
- eval_studio_client/api/docs/GeneratedQuestionsValidationServiceValidateGeneratedQuestionsRequest.md +0 -30
- eval_studio_client/api/docs/V1GeneratedTestCase.md +0 -30
- eval_studio_client/api/test/test_generated_questions_validation_service_api.py +0 -37
- eval_studio_client/api/test/test_generated_questions_validation_service_validate_generated_questions_request.py +0 -83
- eval_studio_client/api/test/test_v1_generated_test_case.py +0 -79
- {eval_studio_client-1.1.0a5.dist-info → eval_studio_client-1.1.0a6.dist-info}/WHEEL +0 -0
|
@@ -20,14 +20,15 @@ from typing_extensions import Self
|
|
|
20
20
|
|
|
21
21
|
class V1WorkflowEdgeType(str, Enum):
|
|
22
22
|
"""
|
|
23
|
-
WorkflowEdgeType represents the type of a WorkflowEdge. - WORKFLOW_EDGE_TYPE_UNSPECIFIED: Unspecified type. -
|
|
23
|
+
WorkflowEdgeType represents the type of a WorkflowEdge. - WORKFLOW_EDGE_TYPE_UNSPECIFIED: Unspecified type. - WORKFLOW_EDGE_TYPE_DEPENDENCY: A required dependency type of edge. This edge type defines that the \"to\" node depends on the outputs of the \"from\" node. - WORKFLOW_EDGE_TYPE_OPTIONAL_DEPENDENCY: Optional dependency edge, which indicates that the outputs of the \"from\" node can be used in case they exist, but the \"to\" node does not rely on them.
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
26
|
"""
|
|
27
27
|
allowed enum values
|
|
28
28
|
"""
|
|
29
29
|
WORKFLOW_EDGE_TYPE_UNSPECIFIED = 'WORKFLOW_EDGE_TYPE_UNSPECIFIED'
|
|
30
|
-
|
|
30
|
+
WORKFLOW_EDGE_TYPE_DEPENDENCY = 'WORKFLOW_EDGE_TYPE_DEPENDENCY'
|
|
31
|
+
WORKFLOW_EDGE_TYPE_OPTIONAL_DEPENDENCY = 'WORKFLOW_EDGE_TYPE_OPTIONAL_DEPENDENCY'
|
|
31
32
|
|
|
32
33
|
@classmethod
|
|
33
34
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -38,7 +38,8 @@ class V1WorkflowNodeArtifact(BaseModel):
|
|
|
38
38
|
delete_time: Optional[datetime] = Field(default=None, description="Output only. Optional. Deletion time of the WorkflowNodeArtifact.", alias="deleteTime")
|
|
39
39
|
deleter: Optional[StrictStr] = Field(default=None, description="Output only. Name of the user or service that requested deletion of the WorkflowNodeArtifact.")
|
|
40
40
|
mime_type: Optional[StrictStr] = Field(default=None, description="Optional MIME type of the WorkflowNodeArtifact.", alias="mimeType")
|
|
41
|
-
|
|
41
|
+
type: Optional[StrictStr] = Field(default=None, description="Output only. Immutable. Type of the WorkflowNodeArtifact.")
|
|
42
|
+
__properties: ClassVar[List[str]] = ["name", "parent", "displayName", "description", "createTime", "creator", "updateTime", "updater", "deleteTime", "deleter", "mimeType", "type"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
45
|
populate_by_name=True,
|
|
@@ -77,6 +78,7 @@ class V1WorkflowNodeArtifact(BaseModel):
|
|
|
77
78
|
* OpenAPI `readOnly` fields are excluded.
|
|
78
79
|
* OpenAPI `readOnly` fields are excluded.
|
|
79
80
|
* OpenAPI `readOnly` fields are excluded.
|
|
81
|
+
* OpenAPI `readOnly` fields are excluded.
|
|
80
82
|
"""
|
|
81
83
|
excluded_fields: Set[str] = set([
|
|
82
84
|
"parent",
|
|
@@ -86,6 +88,7 @@ class V1WorkflowNodeArtifact(BaseModel):
|
|
|
86
88
|
"updater",
|
|
87
89
|
"delete_time",
|
|
88
90
|
"deleter",
|
|
91
|
+
"type",
|
|
89
92
|
])
|
|
90
93
|
|
|
91
94
|
_dict = self.model_dump(
|
|
@@ -115,7 +118,8 @@ class V1WorkflowNodeArtifact(BaseModel):
|
|
|
115
118
|
"updater": obj.get("updater"),
|
|
116
119
|
"deleteTime": obj.get("deleteTime"),
|
|
117
120
|
"deleter": obj.get("deleter"),
|
|
118
|
-
"mimeType": obj.get("mimeType")
|
|
121
|
+
"mimeType": obj.get("mimeType"),
|
|
122
|
+
"type": obj.get("type")
|
|
119
123
|
})
|
|
120
124
|
return _obj
|
|
121
125
|
|
|
@@ -57,9 +57,17 @@ class TestPromptGenerationServiceAutoGeneratePromptsRequest(unittest.TestCase):
|
|
|
57
57
|
content = [
|
|
58
58
|
''
|
|
59
59
|
], ),
|
|
60
|
-
chunks = eval_studio_client.api.models.
|
|
60
|
+
chunks = eval_studio_client.api.models.v1_repeated_context.v1RepeatedContext(
|
|
61
61
|
content = [
|
|
62
|
-
|
|
62
|
+
eval_studio_client.api.models.v1_context.v1Context(
|
|
63
|
+
collection_id = '',
|
|
64
|
+
chunk_id = 56,
|
|
65
|
+
score = 1.337,
|
|
66
|
+
document_id = '',
|
|
67
|
+
document_name = '',
|
|
68
|
+
pages = '',
|
|
69
|
+
topic = '',
|
|
70
|
+
topic_id = 56, )
|
|
63
71
|
], ),
|
|
64
72
|
generators = [
|
|
65
73
|
'TEST_CASES_GENERATOR_UNSPECIFIED'
|
|
@@ -68,7 +68,8 @@ class TestRequiredTheUpdatedWorkflow(unittest.TestCase):
|
|
|
68
68
|
updater = '',
|
|
69
69
|
delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
70
70
|
deleter = '',
|
|
71
|
-
mime_type = '',
|
|
71
|
+
mime_type = '',
|
|
72
|
+
type = '', )
|
|
72
73
|
], )
|
|
73
74
|
},
|
|
74
75
|
llm_model = '',
|
|
@@ -59,7 +59,8 @@ class TestRequiredTheUpdatedWorkflowNode(unittest.TestCase):
|
|
|
59
59
|
updater = '',
|
|
60
60
|
delete_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
61
61
|
deleter = '',
|
|
62
|
-
mime_type = '',
|
|
62
|
+
mime_type = '',
|
|
63
|
+
type = '', )
|
|
63
64
|
],
|
|
64
65
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
65
66
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
@@ -46,7 +46,16 @@ class TestTestServiceGenerateTestCasesRequest(unittest.TestCase):
|
|
|
46
46
|
''
|
|
47
47
|
],
|
|
48
48
|
chunks = [
|
|
49
|
-
|
|
49
|
+
eval_studio_client.api.models.v1_context.v1Context(
|
|
50
|
+
collection_id = '',
|
|
51
|
+
chunk_id = 56,
|
|
52
|
+
score = 1.337,
|
|
53
|
+
content = '',
|
|
54
|
+
document_id = '',
|
|
55
|
+
document_name = '',
|
|
56
|
+
pages = '',
|
|
57
|
+
topic = '',
|
|
58
|
+
topic_id = 56, )
|
|
50
59
|
]
|
|
51
60
|
)
|
|
52
61
|
else:
|
|
@@ -75,7 +75,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
75
75
|
],
|
|
76
76
|
brief_description = '',
|
|
77
77
|
enabled = True,
|
|
78
|
-
tagline = '',
|
|
78
|
+
tagline = '',
|
|
79
|
+
primary_metric = '',
|
|
80
|
+
primary_metric_default_threshold = 1.337, )
|
|
79
81
|
]
|
|
80
82
|
)
|
|
81
83
|
else:
|
|
@@ -38,7 +38,12 @@ class TestV1Context(unittest.TestCase):
|
|
|
38
38
|
collection_id = '',
|
|
39
39
|
chunk_id = 56,
|
|
40
40
|
score = 1.337,
|
|
41
|
-
content = ''
|
|
41
|
+
content = '',
|
|
42
|
+
document_id = '',
|
|
43
|
+
document_name = '',
|
|
44
|
+
pages = '',
|
|
45
|
+
topic = '',
|
|
46
|
+
topic_id = 56
|
|
42
47
|
)
|
|
43
48
|
else:
|
|
44
49
|
return V1Context(
|
|
@@ -74,7 +74,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
74
74
|
],
|
|
75
75
|
brief_description = '',
|
|
76
76
|
enabled = True,
|
|
77
|
-
tagline = '',
|
|
77
|
+
tagline = '',
|
|
78
|
+
primary_metric = '',
|
|
79
|
+
primary_metric_default_threshold = 1.337, )
|
|
78
80
|
)
|
|
79
81
|
else:
|
|
80
82
|
return V1CreateEvaluatorResponse(
|
|
@@ -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_dashboard_type import V1DashboardType
|
|
18
|
+
|
|
19
|
+
class TestV1DashboardType(unittest.TestCase):
|
|
20
|
+
"""V1DashboardType unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def testV1DashboardType(self):
|
|
29
|
+
"""Test V1DashboardType"""
|
|
30
|
+
# inst = V1DashboardType()
|
|
31
|
+
|
|
32
|
+
if __name__ == '__main__':
|
|
33
|
+
unittest.main()
|
|
@@ -74,7 +74,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
74
74
|
],
|
|
75
75
|
brief_description = '',
|
|
76
76
|
enabled = True,
|
|
77
|
-
tagline = '',
|
|
77
|
+
tagline = '',
|
|
78
|
+
primary_metric = '',
|
|
79
|
+
primary_metric_default_threshold = 1.337, )
|
|
78
80
|
)
|
|
79
81
|
else:
|
|
80
82
|
return V1DeleteEvaluatorResponse(
|
|
@@ -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_dependency_list import V1DependencyList
|
|
18
|
+
|
|
19
|
+
class TestV1DependencyList(unittest.TestCase):
|
|
20
|
+
"""V1DependencyList 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) -> V1DependencyList:
|
|
29
|
+
"""Test V1DependencyList
|
|
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 `V1DependencyList`
|
|
34
|
+
"""
|
|
35
|
+
model = V1DependencyList()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1DependencyList(
|
|
38
|
+
node = '',
|
|
39
|
+
dependencies = [
|
|
40
|
+
eval_studio_client.api.models.v1_workflow_dependency.v1WorkflowDependency(
|
|
41
|
+
name = '',
|
|
42
|
+
optional = True, )
|
|
43
|
+
]
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return V1DependencyList(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testV1DependencyList(self):
|
|
51
|
+
"""Test V1DependencyList"""
|
|
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()
|
|
@@ -76,7 +76,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
76
76
|
],
|
|
77
77
|
brief_description = '',
|
|
78
78
|
enabled = True,
|
|
79
|
-
tagline = ''
|
|
79
|
+
tagline = '',
|
|
80
|
+
primary_metric = '',
|
|
81
|
+
primary_metric_default_threshold = 1.337
|
|
80
82
|
)
|
|
81
83
|
else:
|
|
82
84
|
return V1Evaluator(
|
|
@@ -74,7 +74,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
74
74
|
],
|
|
75
75
|
brief_description = '',
|
|
76
76
|
enabled = True,
|
|
77
|
-
tagline = '',
|
|
77
|
+
tagline = '',
|
|
78
|
+
primary_metric = '',
|
|
79
|
+
primary_metric_default_threshold = 1.337, )
|
|
78
80
|
)
|
|
79
81
|
else:
|
|
80
82
|
return V1GetEvaluatorResponse(
|
|
@@ -0,0 +1,51 @@
|
|
|
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_get_guardrails_configuration_response import V1GetGuardrailsConfigurationResponse
|
|
18
|
+
|
|
19
|
+
class TestV1GetGuardrailsConfigurationResponse(unittest.TestCase):
|
|
20
|
+
"""V1GetGuardrailsConfigurationResponse 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) -> V1GetGuardrailsConfigurationResponse:
|
|
29
|
+
"""Test V1GetGuardrailsConfigurationResponse
|
|
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 `V1GetGuardrailsConfigurationResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1GetGuardrailsConfigurationResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1GetGuardrailsConfigurationResponse(
|
|
38
|
+
guardrails_configuration_json = ''
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return V1GetGuardrailsConfigurationResponse(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testV1GetGuardrailsConfigurationResponse(self):
|
|
46
|
+
"""Test V1GetGuardrailsConfigurationResponse"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -91,9 +91,7 @@ class TestV1GetLeaderboardReportResponse(unittest.TestCase):
|
|
|
91
91
|
documents = [
|
|
92
92
|
''
|
|
93
93
|
],
|
|
94
|
-
|
|
95
|
-
key = '',
|
|
96
|
-
llm_model_meta = eval_studio_client.api.models.llm_model_meta.llmModelMeta(), )
|
|
94
|
+
key = '', )
|
|
97
95
|
],
|
|
98
96
|
evaluator = eval_studio_client.api.models.v1_leaderboard_report_evaluator.v1LeaderboardReportEvaluator(
|
|
99
97
|
id = '',
|
|
@@ -90,9 +90,7 @@ class TestV1LeaderboardReport(unittest.TestCase):
|
|
|
90
90
|
documents = [
|
|
91
91
|
''
|
|
92
92
|
],
|
|
93
|
-
|
|
94
|
-
key = '',
|
|
95
|
-
llm_model_meta = eval_studio_client.api.models.llm_model_meta.llmModelMeta(), )
|
|
93
|
+
key = '', )
|
|
96
94
|
],
|
|
97
95
|
evaluator = eval_studio_client.api.models.v1_leaderboard_report_evaluator.v1LeaderboardReportEvaluator(
|
|
98
96
|
id = '',
|
|
@@ -44,9 +44,7 @@ class TestV1LeaderboardReportModel(unittest.TestCase):
|
|
|
44
44
|
documents = [
|
|
45
45
|
''
|
|
46
46
|
],
|
|
47
|
-
|
|
48
|
-
key = '',
|
|
49
|
-
llm_model_meta = eval_studio_client.api.models.llm_model_meta.llmModelMeta()
|
|
47
|
+
key = ''
|
|
50
48
|
)
|
|
51
49
|
else:
|
|
52
50
|
return V1LeaderboardReportModel(
|
|
@@ -75,7 +75,9 @@ https://github.com/h2oai/h2o-sonar/blob/0492b2f2651fb2fde08d981b72c9fda7dc6b9697
|
|
|
75
75
|
],
|
|
76
76
|
brief_description = '',
|
|
77
77
|
enabled = True,
|
|
78
|
-
tagline = '',
|
|
78
|
+
tagline = '',
|
|
79
|
+
primary_metric = '',
|
|
80
|
+
primary_metric_default_threshold = 1.337, )
|
|
79
81
|
]
|
|
80
82
|
)
|
|
81
83
|
else:
|