arthur-client 1.4.1249__py3-none-any.whl → 1.4.1250__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.
- arthur_client/api_bindings/__init__.py +5 -0
- arthur_client/api_bindings/docs/CreateModelTaskJobSpec.md +2 -0
- arthur_client/api_bindings/docs/JobSpec.md +2 -0
- arthur_client/api_bindings/docs/MetricResponse.md +36 -0
- arthur_client/api_bindings/docs/MetricType.md +14 -0
- arthur_client/api_bindings/docs/ModelProblemType.md +2 -0
- arthur_client/api_bindings/docs/NewMetricRequest.md +32 -0
- arthur_client/api_bindings/docs/RelevanceMetricConfig.md +31 -0
- arthur_client/api_bindings/docs/TaskResponse.md +2 -0
- arthur_client/api_bindings/docs/TaskType.md +12 -0
- arthur_client/api_bindings/models/__init__.py +5 -0
- arthur_client/api_bindings/models/create_model_task_job_spec.py +15 -2
- arthur_client/api_bindings/models/metric_response.py +113 -0
- arthur_client/api_bindings/models/metric_type.py +38 -0
- arthur_client/api_bindings/models/model_problem_type.py +1 -0
- arthur_client/api_bindings/models/new_metric_request.py +103 -0
- arthur_client/api_bindings/models/relevance_metric_config.py +94 -0
- arthur_client/api_bindings/models/task_response.py +21 -4
- arthur_client/api_bindings/models/task_type.py +37 -0
- arthur_client/api_bindings/test/test_create_model_task_job_spec.py +19 -0
- arthur_client/api_bindings/test/test_job_spec.py +19 -0
- arthur_client/api_bindings/test/test_metric_response.py +64 -0
- arthur_client/api_bindings/test/test_metric_type.py +33 -0
- arthur_client/api_bindings/test/test_new_metric_request.py +59 -0
- arthur_client/api_bindings/test/test_put_task_state_cache_request.py +22 -0
- arthur_client/api_bindings/test/test_relevance_metric_config.py +52 -0
- arthur_client/api_bindings/test/test_task_read_response.py +11 -0
- arthur_client/api_bindings/test/test_task_response.py +13 -0
- arthur_client/api_bindings/test/test_task_type.py +33 -0
- arthur_client/api_bindings_README.md +5 -0
- {arthur_client-1.4.1249.dist-info → arthur_client-1.4.1250.dist-info}/METADATA +1 -1
- {arthur_client-1.4.1249.dist-info → arthur_client-1.4.1250.dist-info}/RECORD +33 -18
- {arthur_client-1.4.1249.dist-info → arthur_client-1.4.1250.dist-info}/WHEEL +0 -0
@@ -17,8 +17,9 @@ import pprint
|
|
17
17
|
import re # noqa: F401
|
18
18
|
import json
|
19
19
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
22
|
+
from arthur_client.api_bindings.models.metric_response import MetricResponse
|
22
23
|
from arthur_client.api_bindings.models.rule_response import RuleResponse
|
23
24
|
from typing import Optional, Set
|
24
25
|
from typing_extensions import Self
|
@@ -31,8 +32,10 @@ class TaskResponse(BaseModel):
|
|
31
32
|
name: StrictStr = Field(description="Name of the task")
|
32
33
|
created_at: StrictInt = Field(description="Time the task was created in unix milliseconds")
|
33
34
|
updated_at: StrictInt = Field(description="Time the task was created in unix milliseconds")
|
35
|
+
is_agentic: StrictBool = Field(description="Whether the task is agentic or not")
|
34
36
|
rules: List[RuleResponse] = Field(description="List of all the rules for the task.")
|
35
|
-
|
37
|
+
metrics: Optional[List[MetricResponse]] = None
|
38
|
+
__properties: ClassVar[List[str]] = ["id", "name", "created_at", "updated_at", "is_agentic", "rules", "metrics"]
|
36
39
|
|
37
40
|
model_config = ConfigDict(
|
38
41
|
populate_by_name=True,
|
@@ -80,6 +83,18 @@ class TaskResponse(BaseModel):
|
|
80
83
|
if _item_rules:
|
81
84
|
_items.append(_item_rules.to_dict())
|
82
85
|
_dict['rules'] = _items
|
86
|
+
# override the default output from pydantic by calling `to_dict()` of each item in metrics (list)
|
87
|
+
_items = []
|
88
|
+
if self.metrics:
|
89
|
+
for _item_metrics in self.metrics:
|
90
|
+
if _item_metrics:
|
91
|
+
_items.append(_item_metrics.to_dict())
|
92
|
+
_dict['metrics'] = _items
|
93
|
+
# set to None if metrics (nullable) is None
|
94
|
+
# and model_fields_set contains the field
|
95
|
+
if self.metrics is None and "metrics" in self.model_fields_set:
|
96
|
+
_dict['metrics'] = None
|
97
|
+
|
83
98
|
return _dict
|
84
99
|
|
85
100
|
@classmethod
|
@@ -96,7 +111,9 @@ class TaskResponse(BaseModel):
|
|
96
111
|
"name": obj.get("name"),
|
97
112
|
"created_at": obj.get("created_at"),
|
98
113
|
"updated_at": obj.get("updated_at"),
|
99
|
-
"
|
114
|
+
"is_agentic": obj.get("is_agentic"),
|
115
|
+
"rules": [RuleResponse.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None,
|
116
|
+
"metrics": [MetricResponse.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None
|
100
117
|
})
|
101
118
|
return _obj
|
102
119
|
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import json
|
17
|
+
from enum import Enum
|
18
|
+
from typing_extensions import Self
|
19
|
+
|
20
|
+
|
21
|
+
class TaskType(str, Enum):
|
22
|
+
"""
|
23
|
+
TaskType
|
24
|
+
"""
|
25
|
+
|
26
|
+
"""
|
27
|
+
allowed enum values
|
28
|
+
"""
|
29
|
+
TRADITIONAL = 'traditional'
|
30
|
+
AGENTIC = 'agentic'
|
31
|
+
|
32
|
+
@classmethod
|
33
|
+
def from_json(cls, json_str: str) -> Self:
|
34
|
+
"""Create an instance of TaskType from a JSON string"""
|
35
|
+
return cls(json.loads(json_str))
|
36
|
+
|
37
|
+
|
@@ -46,6 +46,16 @@ class TestCreateModelTaskJobSpec(unittest.TestCase):
|
|
46
46
|
apply_to_prompt = True,
|
47
47
|
apply_to_response = True,
|
48
48
|
config = null, )
|
49
|
+
],
|
50
|
+
task_type = 'traditional',
|
51
|
+
initial_metrics = [
|
52
|
+
arthur_client.api_bindings.models.new_metric_request.NewMetricRequest(
|
53
|
+
type = 'QueryRelevance',
|
54
|
+
name = '',
|
55
|
+
metric_metadata = '',
|
56
|
+
config = arthur_client.api_bindings.models.relevance_metric_config.RelevanceMetricConfig(
|
57
|
+
relevance_threshold = 1.337,
|
58
|
+
use_llm_judge = True, ), )
|
49
59
|
]
|
50
60
|
)
|
51
61
|
else:
|
@@ -60,6 +70,15 @@ class TestCreateModelTaskJobSpec(unittest.TestCase):
|
|
60
70
|
apply_to_response = True,
|
61
71
|
config = null, )
|
62
72
|
],
|
73
|
+
initial_metrics = [
|
74
|
+
arthur_client.api_bindings.models.new_metric_request.NewMetricRequest(
|
75
|
+
type = 'QueryRelevance',
|
76
|
+
name = '',
|
77
|
+
metric_metadata = '',
|
78
|
+
config = arthur_client.api_bindings.models.relevance_metric_config.RelevanceMetricConfig(
|
79
|
+
relevance_threshold = 1.337,
|
80
|
+
use_llm_judge = True, ), )
|
81
|
+
],
|
63
82
|
)
|
64
83
|
"""
|
65
84
|
|
@@ -64,6 +64,16 @@ class TestJobSpec(unittest.TestCase):
|
|
64
64
|
apply_to_response = True,
|
65
65
|
config = null, )
|
66
66
|
],
|
67
|
+
task_type = 'traditional',
|
68
|
+
initial_metrics = [
|
69
|
+
arthur_client.api_bindings.models.new_metric_request.NewMetricRequest(
|
70
|
+
type = 'QueryRelevance',
|
71
|
+
name = '',
|
72
|
+
metric_metadata = '',
|
73
|
+
config = arthur_client.api_bindings.models.relevance_metric_config.RelevanceMetricConfig(
|
74
|
+
relevance_threshold = 1.337,
|
75
|
+
use_llm_judge = True, ), )
|
76
|
+
],
|
67
77
|
rules_to_enable = [
|
68
78
|
''
|
69
79
|
],
|
@@ -111,6 +121,15 @@ class TestJobSpec(unittest.TestCase):
|
|
111
121
|
apply_to_response = True,
|
112
122
|
config = null, )
|
113
123
|
],
|
124
|
+
initial_metrics = [
|
125
|
+
arthur_client.api_bindings.models.new_metric_request.NewMetricRequest(
|
126
|
+
type = 'QueryRelevance',
|
127
|
+
name = '',
|
128
|
+
metric_metadata = '',
|
129
|
+
config = arthur_client.api_bindings.models.relevance_metric_config.RelevanceMetricConfig(
|
130
|
+
relevance_threshold = 1.337,
|
131
|
+
use_llm_judge = True, ), )
|
132
|
+
],
|
114
133
|
task_id = '',
|
115
134
|
)
|
116
135
|
"""
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
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 arthur_client.api_bindings.models.metric_response import MetricResponse
|
18
|
+
|
19
|
+
class TestMetricResponse(unittest.TestCase):
|
20
|
+
"""MetricResponse 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) -> MetricResponse:
|
29
|
+
"""Test MetricResponse
|
30
|
+
include_optional 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 `MetricResponse`
|
34
|
+
"""
|
35
|
+
model = MetricResponse()
|
36
|
+
if include_optional:
|
37
|
+
return MetricResponse(
|
38
|
+
id = '',
|
39
|
+
name = '',
|
40
|
+
type = 'QueryRelevance',
|
41
|
+
metric_metadata = '',
|
42
|
+
config = '',
|
43
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
44
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
45
|
+
enabled = True
|
46
|
+
)
|
47
|
+
else:
|
48
|
+
return MetricResponse(
|
49
|
+
id = '',
|
50
|
+
name = '',
|
51
|
+
type = 'QueryRelevance',
|
52
|
+
metric_metadata = '',
|
53
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
54
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
55
|
+
)
|
56
|
+
"""
|
57
|
+
|
58
|
+
def testMetricResponse(self):
|
59
|
+
"""Test MetricResponse"""
|
60
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
61
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
62
|
+
|
63
|
+
if __name__ == '__main__':
|
64
|
+
unittest.main()
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
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 arthur_client.api_bindings.models.metric_type import MetricType
|
18
|
+
|
19
|
+
class TestMetricType(unittest.TestCase):
|
20
|
+
"""MetricType unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def testMetricType(self):
|
29
|
+
"""Test MetricType"""
|
30
|
+
# inst = MetricType()
|
31
|
+
|
32
|
+
if __name__ == '__main__':
|
33
|
+
unittest.main()
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
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 arthur_client.api_bindings.models.new_metric_request import NewMetricRequest
|
18
|
+
|
19
|
+
class TestNewMetricRequest(unittest.TestCase):
|
20
|
+
"""NewMetricRequest 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) -> NewMetricRequest:
|
29
|
+
"""Test NewMetricRequest
|
30
|
+
include_optional 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 `NewMetricRequest`
|
34
|
+
"""
|
35
|
+
model = NewMetricRequest()
|
36
|
+
if include_optional:
|
37
|
+
return NewMetricRequest(
|
38
|
+
type = 'QueryRelevance',
|
39
|
+
name = '',
|
40
|
+
metric_metadata = '',
|
41
|
+
config = arthur_client.api_bindings.models.relevance_metric_config.RelevanceMetricConfig(
|
42
|
+
relevance_threshold = 1.337,
|
43
|
+
use_llm_judge = True, )
|
44
|
+
)
|
45
|
+
else:
|
46
|
+
return NewMetricRequest(
|
47
|
+
type = 'QueryRelevance',
|
48
|
+
name = '',
|
49
|
+
metric_metadata = '',
|
50
|
+
)
|
51
|
+
"""
|
52
|
+
|
53
|
+
def testNewMetricRequest(self):
|
54
|
+
"""Test NewMetricRequest"""
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
57
|
+
|
58
|
+
if __name__ == '__main__':
|
59
|
+
unittest.main()
|
@@ -40,6 +40,7 @@ class TestPutTaskStateCacheRequest(unittest.TestCase):
|
|
40
40
|
name = '',
|
41
41
|
created_at = 56,
|
42
42
|
updated_at = 56,
|
43
|
+
is_agentic = True,
|
43
44
|
rules = [
|
44
45
|
arthur_client.api_bindings.models.rule_response.RuleResponse(
|
45
46
|
id = '',
|
@@ -52,6 +53,16 @@ class TestPutTaskStateCacheRequest(unittest.TestCase):
|
|
52
53
|
created_at = 56,
|
53
54
|
updated_at = 56,
|
54
55
|
config = null, )
|
56
|
+
],
|
57
|
+
metrics = [
|
58
|
+
arthur_client.api_bindings.models.metric_response.MetricResponse(
|
59
|
+
id = '',
|
60
|
+
name = '',
|
61
|
+
type = 'QueryRelevance',
|
62
|
+
metric_metadata = '',
|
63
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
64
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
65
|
+
enabled = True, )
|
55
66
|
], )
|
56
67
|
)
|
57
68
|
else:
|
@@ -61,6 +72,7 @@ class TestPutTaskStateCacheRequest(unittest.TestCase):
|
|
61
72
|
name = '',
|
62
73
|
created_at = 56,
|
63
74
|
updated_at = 56,
|
75
|
+
is_agentic = True,
|
64
76
|
rules = [
|
65
77
|
arthur_client.api_bindings.models.rule_response.RuleResponse(
|
66
78
|
id = '',
|
@@ -73,6 +85,16 @@ class TestPutTaskStateCacheRequest(unittest.TestCase):
|
|
73
85
|
created_at = 56,
|
74
86
|
updated_at = 56,
|
75
87
|
config = null, )
|
88
|
+
],
|
89
|
+
metrics = [
|
90
|
+
arthur_client.api_bindings.models.metric_response.MetricResponse(
|
91
|
+
id = '',
|
92
|
+
name = '',
|
93
|
+
type = 'QueryRelevance',
|
94
|
+
metric_metadata = '',
|
95
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
96
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
97
|
+
enabled = True, )
|
76
98
|
], ),
|
77
99
|
)
|
78
100
|
"""
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
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 arthur_client.api_bindings.models.relevance_metric_config import RelevanceMetricConfig
|
18
|
+
|
19
|
+
class TestRelevanceMetricConfig(unittest.TestCase):
|
20
|
+
"""RelevanceMetricConfig 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) -> RelevanceMetricConfig:
|
29
|
+
"""Test RelevanceMetricConfig
|
30
|
+
include_optional 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 `RelevanceMetricConfig`
|
34
|
+
"""
|
35
|
+
model = RelevanceMetricConfig()
|
36
|
+
if include_optional:
|
37
|
+
return RelevanceMetricConfig(
|
38
|
+
relevance_threshold = 1.337,
|
39
|
+
use_llm_judge = True
|
40
|
+
)
|
41
|
+
else:
|
42
|
+
return RelevanceMetricConfig(
|
43
|
+
)
|
44
|
+
"""
|
45
|
+
|
46
|
+
def testRelevanceMetricConfig(self):
|
47
|
+
"""Test RelevanceMetricConfig"""
|
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()
|
@@ -40,6 +40,7 @@ class TestTaskReadResponse(unittest.TestCase):
|
|
40
40
|
name = '',
|
41
41
|
created_at = 56,
|
42
42
|
updated_at = 56,
|
43
|
+
is_agentic = True,
|
43
44
|
rules = [
|
44
45
|
arthur_client.api_bindings.models.rule_response.RuleResponse(
|
45
46
|
id = '',
|
@@ -52,6 +53,16 @@ class TestTaskReadResponse(unittest.TestCase):
|
|
52
53
|
created_at = 56,
|
53
54
|
updated_at = 56,
|
54
55
|
config = null, )
|
56
|
+
],
|
57
|
+
metrics = [
|
58
|
+
arthur_client.api_bindings.models.metric_response.MetricResponse(
|
59
|
+
id = '',
|
60
|
+
name = '',
|
61
|
+
type = 'QueryRelevance',
|
62
|
+
metric_metadata = '',
|
63
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
64
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
65
|
+
enabled = True, )
|
55
66
|
], ),
|
56
67
|
last_synced_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
57
68
|
scope_model_id = ''
|
@@ -39,6 +39,7 @@ class TestTaskResponse(unittest.TestCase):
|
|
39
39
|
name = '',
|
40
40
|
created_at = 56,
|
41
41
|
updated_at = 56,
|
42
|
+
is_agentic = True,
|
42
43
|
rules = [
|
43
44
|
arthur_client.api_bindings.models.rule_response.RuleResponse(
|
44
45
|
id = '',
|
@@ -51,6 +52,17 @@ class TestTaskResponse(unittest.TestCase):
|
|
51
52
|
created_at = 56,
|
52
53
|
updated_at = 56,
|
53
54
|
config = null, )
|
55
|
+
],
|
56
|
+
metrics = [
|
57
|
+
arthur_client.api_bindings.models.metric_response.MetricResponse(
|
58
|
+
id = '',
|
59
|
+
name = '',
|
60
|
+
type = 'QueryRelevance',
|
61
|
+
metric_metadata = '',
|
62
|
+
config = '',
|
63
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
64
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
65
|
+
enabled = True, )
|
54
66
|
]
|
55
67
|
)
|
56
68
|
else:
|
@@ -59,6 +71,7 @@ class TestTaskResponse(unittest.TestCase):
|
|
59
71
|
name = '',
|
60
72
|
created_at = 56,
|
61
73
|
updated_at = 56,
|
74
|
+
is_agentic = True,
|
62
75
|
rules = [
|
63
76
|
arthur_client.api_bindings.models.rule_response.RuleResponse(
|
64
77
|
id = '',
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
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 arthur_client.api_bindings.models.task_type import TaskType
|
18
|
+
|
19
|
+
class TestTaskType(unittest.TestCase):
|
20
|
+
"""TaskType unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def testTaskType(self):
|
29
|
+
"""Test TaskType"""
|
30
|
+
# inst = TaskType()
|
31
|
+
|
32
|
+
if __name__ == '__main__':
|
33
|
+
unittest.main()
|
@@ -338,6 +338,8 @@ Class | Method | HTTP request | Description
|
|
338
338
|
- [KeywordsConfig](arthur_client/api_bindings/docs/KeywordsConfig.md)
|
339
339
|
- [ListDatasetsJobSpec](arthur_client/api_bindings/docs/ListDatasetsJobSpec.md)
|
340
340
|
- [ListType](arthur_client/api_bindings/docs/ListType.md)
|
341
|
+
- [MetricResponse](arthur_client/api_bindings/docs/MetricResponse.md)
|
342
|
+
- [MetricType](arthur_client/api_bindings/docs/MetricType.md)
|
341
343
|
- [MetricsArgSpec](arthur_client/api_bindings/docs/MetricsArgSpec.md)
|
342
344
|
- [MetricsCalculationJobSpec](arthur_client/api_bindings/docs/MetricsCalculationJobSpec.md)
|
343
345
|
- [MetricsColumnListParameterSchema](arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md)
|
@@ -356,6 +358,7 @@ Class | Method | HTTP request | Description
|
|
356
358
|
- [ModelMetricsSchedule](arthur_client/api_bindings/docs/ModelMetricsSchedule.md)
|
357
359
|
- [ModelProblemType](arthur_client/api_bindings/docs/ModelProblemType.md)
|
358
360
|
- [ModelsSort](arthur_client/api_bindings/docs/ModelsSort.md)
|
361
|
+
- [NewMetricRequest](arthur_client/api_bindings/docs/NewMetricRequest.md)
|
359
362
|
- [NewRuleRequest](arthur_client/api_bindings/docs/NewRuleRequest.md)
|
360
363
|
- [NotFoundError](arthur_client/api_bindings/docs/NotFoundError.md)
|
361
364
|
- [NumericMetric](arthur_client/api_bindings/docs/NumericMetric.md)
|
@@ -440,6 +443,7 @@ Class | Method | HTTP request | Description
|
|
440
443
|
- [RegenerateTaskValidationKeyJobSpec](arthur_client/api_bindings/docs/RegenerateTaskValidationKeyJobSpec.md)
|
441
444
|
- [RegexConfig](arthur_client/api_bindings/docs/RegexConfig.md)
|
442
445
|
- [RegisterUser](arthur_client/api_bindings/docs/RegisterUser.md)
|
446
|
+
- [RelevanceMetricConfig](arthur_client/api_bindings/docs/RelevanceMetricConfig.md)
|
443
447
|
- [ReportedCustomAggregation](arthur_client/api_bindings/docs/ReportedCustomAggregation.md)
|
444
448
|
- [ResourceKind](arthur_client/api_bindings/docs/ResourceKind.md)
|
445
449
|
- [ResourceListAggregationSpecSchema](arthur_client/api_bindings/docs/ResourceListAggregationSpecSchema.md)
|
@@ -487,6 +491,7 @@ Class | Method | HTTP request | Description
|
|
487
491
|
- [TaskMutationResponse](arthur_client/api_bindings/docs/TaskMutationResponse.md)
|
488
492
|
- [TaskReadResponse](arthur_client/api_bindings/docs/TaskReadResponse.md)
|
489
493
|
- [TaskResponse](arthur_client/api_bindings/docs/TaskResponse.md)
|
494
|
+
- [TaskType](arthur_client/api_bindings/docs/TaskType.md)
|
490
495
|
- [TaskValidationAPIKey](arthur_client/api_bindings/docs/TaskValidationAPIKey.md)
|
491
496
|
- [TaskValidationKeyRegenerationResponse](arthur_client/api_bindings/docs/TaskValidationKeyRegenerationResponse.md)
|
492
497
|
- [ToxicityConfig](arthur_client/api_bindings/docs/ToxicityConfig.md)
|