scale-gp-beta 0.1.0a4__py3-none-any.whl → 0.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.
- scale_gp_beta/_client.py +35 -17
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +55 -27
- scale_gp_beta/resources/dataset_items.py +586 -0
- scale_gp_beta/resources/datasets.py +569 -0
- scale_gp_beta/resources/evaluation_items.py +295 -0
- scale_gp_beta/resources/{question_sets.py → evaluations.py} +259 -273
- scale_gp_beta/types/__init__.py +21 -11
- scale_gp_beta/types/dataset.py +27 -0
- scale_gp_beta/types/dataset_create_params.py +17 -0
- scale_gp_beta/types/{question_set_delete_response.py → dataset_delete_response.py} +3 -3
- scale_gp_beta/types/dataset_item.py +27 -0
- scale_gp_beta/types/dataset_item_batch_create_params.py +16 -0
- scale_gp_beta/types/dataset_item_batch_create_response.py +15 -0
- scale_gp_beta/types/dataset_item_delete_response.py +16 -0
- scale_gp_beta/types/dataset_item_list_params.py +30 -0
- scale_gp_beta/types/dataset_item_retrieve_params.py +13 -0
- scale_gp_beta/types/dataset_item_update_params.py +13 -0
- scale_gp_beta/types/{question_list_params.py → dataset_list_params.py} +4 -2
- scale_gp_beta/types/dataset_retrieve_params.py +11 -0
- scale_gp_beta/types/dataset_update_params.py +13 -0
- scale_gp_beta/types/evaluation.py +30 -0
- scale_gp_beta/types/evaluation_archive_response.py +16 -0
- scale_gp_beta/types/evaluation_create_params.py +734 -0
- scale_gp_beta/types/evaluation_item.py +29 -0
- scale_gp_beta/types/{question_set_list_params.py → evaluation_item_list_params.py} +6 -6
- scale_gp_beta/types/evaluation_item_retrieve_params.py +11 -0
- scale_gp_beta/types/evaluation_list_params.py +18 -0
- scale_gp_beta/types/evaluation_retrieve_params.py +11 -0
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a6.dist-info}/METADATA +1 -1
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a6.dist-info}/RECORD +33 -21
- scale_gp_beta/resources/questions.py +0 -396
- scale_gp_beta/types/question.py +0 -68
- scale_gp_beta/types/question_create_params.py +0 -59
- scale_gp_beta/types/question_list.py +0 -27
- scale_gp_beta/types/question_set.py +0 -106
- scale_gp_beta/types/question_set_create_params.py +0 -115
- scale_gp_beta/types/question_set_list.py +0 -27
- scale_gp_beta/types/question_set_retrieve_params.py +0 -12
- scale_gp_beta/types/question_set_update_params.py +0 -23
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a6.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a4.dist-info → scale_gp_beta-0.1.0a6.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict, Union, Iterable
|
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
-
|
|
8
|
-
from .._utils import PropertyInfo
|
|
9
|
-
|
|
10
|
-
__all__ = ["QuestionCreateParams", "Choice", "NumberOptions", "RatingOptions"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class QuestionCreateParams(TypedDict, total=False):
|
|
14
|
-
prompt: Required[str]
|
|
15
|
-
|
|
16
|
-
title: Required[str]
|
|
17
|
-
|
|
18
|
-
type: Required[Literal["categorical", "free_text", "rating", "number"]]
|
|
19
|
-
|
|
20
|
-
choices: Iterable[Choice]
|
|
21
|
-
|
|
22
|
-
conditions: Iterable[Dict[str, object]]
|
|
23
|
-
|
|
24
|
-
dropdown: bool
|
|
25
|
-
|
|
26
|
-
multi: bool
|
|
27
|
-
|
|
28
|
-
number_options: Annotated[NumberOptions, PropertyInfo(alias="numberOptions")]
|
|
29
|
-
|
|
30
|
-
rating_options: Annotated[RatingOptions, PropertyInfo(alias="ratingOptions")]
|
|
31
|
-
|
|
32
|
-
required: bool
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
class Choice(TypedDict, total=False):
|
|
36
|
-
label: Required[str]
|
|
37
|
-
|
|
38
|
-
value: Required[Union[str, bool, float]]
|
|
39
|
-
|
|
40
|
-
audit_required: bool
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class NumberOptions(TypedDict, total=False):
|
|
44
|
-
max: float
|
|
45
|
-
"""Maximum value for the number"""
|
|
46
|
-
|
|
47
|
-
min: float
|
|
48
|
-
"""Minimum value for the number"""
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class RatingOptions(TypedDict, total=False):
|
|
52
|
-
max_label: Required[Annotated[str, PropertyInfo(alias="maxLabel")]]
|
|
53
|
-
"""Maximum value for the rating"""
|
|
54
|
-
|
|
55
|
-
min_label: Required[Annotated[str, PropertyInfo(alias="minLabel")]]
|
|
56
|
-
"""Minimum value for the rating"""
|
|
57
|
-
|
|
58
|
-
scale_steps: Required[Annotated[int, PropertyInfo(alias="scaleSteps")]]
|
|
59
|
-
"""Number of steps in the rating scale"""
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List, Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from .._models import BaseModel
|
|
7
|
-
from .question import Question
|
|
8
|
-
|
|
9
|
-
__all__ = ["QuestionList"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class QuestionList(BaseModel):
|
|
13
|
-
has_more: bool
|
|
14
|
-
"""Whether there are more items left to be fetched."""
|
|
15
|
-
|
|
16
|
-
items: List[Question]
|
|
17
|
-
|
|
18
|
-
total: int
|
|
19
|
-
"""The total of items that match the query.
|
|
20
|
-
|
|
21
|
-
This is greater than or equal to the number of items returned.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
limit: Optional[int] = None
|
|
25
|
-
"""The maximum number of items to return."""
|
|
26
|
-
|
|
27
|
-
object: Optional[Literal["list"]] = None
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, List, Union, Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
6
|
-
|
|
7
|
-
from pydantic import Field as FieldInfo
|
|
8
|
-
|
|
9
|
-
from .._models import BaseModel
|
|
10
|
-
|
|
11
|
-
__all__ = [
|
|
12
|
-
"QuestionSet",
|
|
13
|
-
"Question",
|
|
14
|
-
"QuestionChoice",
|
|
15
|
-
"QuestionNumberOptions",
|
|
16
|
-
"QuestionOverrideConfig",
|
|
17
|
-
"QuestionRatingOptions",
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class QuestionChoice(BaseModel):
|
|
22
|
-
label: str
|
|
23
|
-
|
|
24
|
-
value: Union[str, bool, float]
|
|
25
|
-
|
|
26
|
-
audit_required: Optional[bool] = None
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class QuestionNumberOptions(BaseModel):
|
|
30
|
-
max: Optional[float] = None
|
|
31
|
-
"""Maximum value for the number"""
|
|
32
|
-
|
|
33
|
-
min: Optional[float] = None
|
|
34
|
-
"""Minimum value for the number"""
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class QuestionOverrideConfig(BaseModel):
|
|
38
|
-
required: Optional[bool] = None
|
|
39
|
-
"""Whether the question is required. False by default."""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
class QuestionRatingOptions(BaseModel):
|
|
43
|
-
max_label: str = FieldInfo(alias="maxLabel")
|
|
44
|
-
"""Maximum value for the rating"""
|
|
45
|
-
|
|
46
|
-
min_label: str = FieldInfo(alias="minLabel")
|
|
47
|
-
"""Minimum value for the rating"""
|
|
48
|
-
|
|
49
|
-
scale_steps: int = FieldInfo(alias="scaleSteps")
|
|
50
|
-
"""Number of steps in the rating scale"""
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
class Question(BaseModel):
|
|
54
|
-
id: str
|
|
55
|
-
|
|
56
|
-
created_at: datetime
|
|
57
|
-
|
|
58
|
-
created_by_user_id: str
|
|
59
|
-
|
|
60
|
-
prompt: str
|
|
61
|
-
|
|
62
|
-
title: str
|
|
63
|
-
|
|
64
|
-
type: Literal["categorical", "free_text", "rating", "number"]
|
|
65
|
-
|
|
66
|
-
choices: Optional[List[QuestionChoice]] = None
|
|
67
|
-
|
|
68
|
-
conditions: Optional[List[Dict[str, object]]] = None
|
|
69
|
-
|
|
70
|
-
dropdown: Optional[bool] = None
|
|
71
|
-
|
|
72
|
-
multi: Optional[bool] = None
|
|
73
|
-
|
|
74
|
-
number_options: Optional[QuestionNumberOptions] = FieldInfo(alias="numberOptions", default=None)
|
|
75
|
-
|
|
76
|
-
object: Optional[Literal["question"]] = None
|
|
77
|
-
|
|
78
|
-
override_config: Optional[QuestionOverrideConfig] = None
|
|
79
|
-
"""
|
|
80
|
-
Specifies additional configurations to use for the question in the context of
|
|
81
|
-
the question set. For example, `{required: true}` sets the question as required.
|
|
82
|
-
Writes to the question_id_to_config field on the response
|
|
83
|
-
"""
|
|
84
|
-
|
|
85
|
-
rating_options: Optional[QuestionRatingOptions] = FieldInfo(alias="ratingOptions", default=None)
|
|
86
|
-
|
|
87
|
-
required: Optional[bool] = None
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class QuestionSet(BaseModel):
|
|
91
|
-
id: str
|
|
92
|
-
|
|
93
|
-
created_at: datetime
|
|
94
|
-
|
|
95
|
-
created_by_user_id: str
|
|
96
|
-
|
|
97
|
-
name: str
|
|
98
|
-
|
|
99
|
-
archived_at: Optional[datetime] = None
|
|
100
|
-
|
|
101
|
-
instructions: Optional[str] = None
|
|
102
|
-
|
|
103
|
-
object: Optional[Literal["question_set"]] = None
|
|
104
|
-
|
|
105
|
-
questions: Optional[List[Question]] = None
|
|
106
|
-
"""Questions in the question set"""
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict, List, Union, Iterable
|
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
|
|
7
|
-
|
|
8
|
-
from .._utils import PropertyInfo
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"QuestionSetCreateParams",
|
|
12
|
-
"Question",
|
|
13
|
-
"QuestionQuestionCreateRequestWithConfig",
|
|
14
|
-
"QuestionQuestionCreateRequestWithConfigChoice",
|
|
15
|
-
"QuestionQuestionCreateRequestWithConfigNumberOptions",
|
|
16
|
-
"QuestionQuestionCreateRequestWithConfigOverrideConfig",
|
|
17
|
-
"QuestionQuestionCreateRequestWithConfigRatingOptions",
|
|
18
|
-
"QuestionQuestionIDWithConfiguration",
|
|
19
|
-
"QuestionQuestionIDWithConfigurationOverrideConfig",
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class QuestionSetCreateParams(TypedDict, total=False):
|
|
24
|
-
name: Required[str]
|
|
25
|
-
|
|
26
|
-
questions: Required[List[Question]]
|
|
27
|
-
"""IDs of existing questions in the question set or new questions to create.
|
|
28
|
-
|
|
29
|
-
You can also optionally specify configurations for each question. Example:
|
|
30
|
-
[`question_id`, {'id': 'question_id2', 'configuration': {...}}, {'title': 'New
|
|
31
|
-
question', ...}]
|
|
32
|
-
"""
|
|
33
|
-
|
|
34
|
-
instructions: str
|
|
35
|
-
"""Instructions to answer questions"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class QuestionQuestionCreateRequestWithConfigChoice(TypedDict, total=False):
|
|
39
|
-
label: Required[str]
|
|
40
|
-
|
|
41
|
-
value: Required[Union[str, bool, float]]
|
|
42
|
-
|
|
43
|
-
audit_required: bool
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class QuestionQuestionCreateRequestWithConfigNumberOptions(TypedDict, total=False):
|
|
47
|
-
max: float
|
|
48
|
-
"""Maximum value for the number"""
|
|
49
|
-
|
|
50
|
-
min: float
|
|
51
|
-
"""Minimum value for the number"""
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class QuestionQuestionCreateRequestWithConfigOverrideConfig(TypedDict, total=False):
|
|
55
|
-
required: bool
|
|
56
|
-
"""Whether the question is required. False by default."""
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
class QuestionQuestionCreateRequestWithConfigRatingOptions(TypedDict, total=False):
|
|
60
|
-
max_label: Required[Annotated[str, PropertyInfo(alias="maxLabel")]]
|
|
61
|
-
"""Maximum value for the rating"""
|
|
62
|
-
|
|
63
|
-
min_label: Required[Annotated[str, PropertyInfo(alias="minLabel")]]
|
|
64
|
-
"""Minimum value for the rating"""
|
|
65
|
-
|
|
66
|
-
scale_steps: Required[Annotated[int, PropertyInfo(alias="scaleSteps")]]
|
|
67
|
-
"""Number of steps in the rating scale"""
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class QuestionQuestionCreateRequestWithConfig(TypedDict, total=False):
|
|
71
|
-
prompt: Required[str]
|
|
72
|
-
|
|
73
|
-
title: Required[str]
|
|
74
|
-
|
|
75
|
-
type: Required[Literal["categorical", "free_text", "rating", "number"]]
|
|
76
|
-
|
|
77
|
-
choices: Iterable[QuestionQuestionCreateRequestWithConfigChoice]
|
|
78
|
-
|
|
79
|
-
conditions: Iterable[Dict[str, object]]
|
|
80
|
-
|
|
81
|
-
dropdown: bool
|
|
82
|
-
|
|
83
|
-
multi: bool
|
|
84
|
-
|
|
85
|
-
number_options: Annotated[QuestionQuestionCreateRequestWithConfigNumberOptions, PropertyInfo(alias="numberOptions")]
|
|
86
|
-
|
|
87
|
-
override_config: QuestionQuestionCreateRequestWithConfigOverrideConfig
|
|
88
|
-
"""
|
|
89
|
-
Specifies additional configurations to use for the question in the context of
|
|
90
|
-
the question set. For example, `{required: true}` sets the question as required.
|
|
91
|
-
Writes to the question_id_to_config field on the response
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
rating_options: Annotated[QuestionQuestionCreateRequestWithConfigRatingOptions, PropertyInfo(alias="ratingOptions")]
|
|
95
|
-
|
|
96
|
-
required: bool
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
class QuestionQuestionIDWithConfigurationOverrideConfig(TypedDict, total=False):
|
|
100
|
-
required: bool
|
|
101
|
-
"""Whether the question is required. False by default."""
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class QuestionQuestionIDWithConfiguration(TypedDict, total=False):
|
|
105
|
-
id: Required[str]
|
|
106
|
-
|
|
107
|
-
override_config: QuestionQuestionIDWithConfigurationOverrideConfig
|
|
108
|
-
"""
|
|
109
|
-
Specifies additional configurations to use for the question in the context of
|
|
110
|
-
the question set. For example, `{required: true}` sets the question as required.
|
|
111
|
-
Writes to the question_id_to_config field on the response
|
|
112
|
-
"""
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Question: TypeAlias = Union[QuestionQuestionCreateRequestWithConfig, QuestionQuestionIDWithConfiguration, str]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import List, Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from .._models import BaseModel
|
|
7
|
-
from .question_set import QuestionSet
|
|
8
|
-
|
|
9
|
-
__all__ = ["QuestionSetList"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class QuestionSetList(BaseModel):
|
|
13
|
-
has_more: bool
|
|
14
|
-
"""Whether there are more items left to be fetched."""
|
|
15
|
-
|
|
16
|
-
items: List[QuestionSet]
|
|
17
|
-
|
|
18
|
-
total: int
|
|
19
|
-
"""The total of items that match the query.
|
|
20
|
-
|
|
21
|
-
This is greater than or equal to the number of items returned.
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
limit: Optional[int] = None
|
|
25
|
-
"""The maximum number of items to return."""
|
|
26
|
-
|
|
27
|
-
object: Optional[Literal["list"]] = None
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import List
|
|
6
|
-
from typing_extensions import Literal, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["QuestionSetRetrieveParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class QuestionSetRetrieveParams(TypedDict, total=False):
|
|
12
|
-
views: List[Literal["questions"]]
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Union
|
|
6
|
-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["QuestionSetUpdateParams", "PartialQuestionSetRequestBase", "RestoreRequest"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class PartialQuestionSetRequestBase(TypedDict, total=False):
|
|
12
|
-
instructions: str
|
|
13
|
-
"""Instructions to answer questions"""
|
|
14
|
-
|
|
15
|
-
name: str
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class RestoreRequest(TypedDict, total=False):
|
|
19
|
-
restore: Required[Literal[True]]
|
|
20
|
-
"""Set to true to restore the entity from the database."""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
QuestionSetUpdateParams: TypeAlias = Union[PartialQuestionSetRequestBase, RestoreRequest]
|
|
File without changes
|
|
File without changes
|