label-studio-sdk 2.0.0__py3-none-any.whl → 2.0.2__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.
Potentially problematic release.
This version of label-studio-sdk might be problematic. Click here for more details.
- label_studio_sdk/__init__.py +24 -0
- label_studio_sdk/actions/client.py +13 -13
- label_studio_sdk/actions/types/actions_list_response_item.py +3 -3
- label_studio_sdk/actions/types/actions_list_response_item_dialog.py +2 -2
- label_studio_sdk/annotations/client.py +441 -441
- label_studio_sdk/base_client.py +4 -0
- label_studio_sdk/billing/__init__.py +2 -0
- label_studio_sdk/billing/client.py +112 -0
- label_studio_sdk/comments/client.py +176 -176
- label_studio_sdk/export_storage/azure/client.py +274 -274
- label_studio_sdk/export_storage/gcs/client.py +263 -263
- label_studio_sdk/export_storage/local/client.py +206 -206
- label_studio_sdk/export_storage/redis/client.py +287 -287
- label_studio_sdk/export_storage/s3/client.py +347 -347
- label_studio_sdk/export_storage/s3s/client.py +678 -678
- label_studio_sdk/import_storage/azure/client.py +357 -357
- label_studio_sdk/import_storage/gcs/client.py +357 -357
- label_studio_sdk/import_storage/local/client.py +206 -206
- label_studio_sdk/import_storage/redis/client.py +309 -309
- label_studio_sdk/import_storage/s3/client.py +452 -452
- label_studio_sdk/import_storage/s3s/client.py +735 -735
- label_studio_sdk/jwt_settings/client.py +10 -10
- label_studio_sdk/ml/client.py +118 -118
- label_studio_sdk/ml/types/ml_list_model_versions_response.py +1 -1
- label_studio_sdk/model_providers/client.py +181 -181
- label_studio_sdk/organizations/members/client.py +348 -2
- label_studio_sdk/predictions/client.py +60 -60
- label_studio_sdk/projects/__init__.py +30 -1
- label_studio_sdk/projects/assignments/__init__.py +33 -0
- label_studio_sdk/projects/assignments/client.py +764 -0
- label_studio_sdk/projects/assignments/types/__init__.py +35 -0
- label_studio_sdk/projects/assignments/types/assignments_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters.py +33 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_conjunction.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item.py +44 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_filter.py +31 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_operator.py +23 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_filters_items_item_value.py +7 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items.py +9 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_excluded.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_selected_items_included.py +29 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_request_type.py +5 -0
- label_studio_sdk/projects/assignments/types/assignments_bulk_assign_response.py +22 -0
- label_studio_sdk/projects/assignments/types/assignments_update_request_type.py +5 -0
- label_studio_sdk/projects/client.py +441 -425
- label_studio_sdk/projects/exports/client.py +55 -55
- label_studio_sdk/projects/exports/types/exports_convert_response.py +1 -1
- label_studio_sdk/projects/stats/types/stats_iaa_response.py +5 -5
- label_studio_sdk/projects/types/projects_import_tasks_response.py +12 -12
- label_studio_sdk/prompts/client.py +211 -211
- label_studio_sdk/prompts/runs/client.py +33 -33
- label_studio_sdk/prompts/versions/client.py +72 -72
- label_studio_sdk/tasks/client.py +174 -174
- label_studio_sdk/types/__init__.py +22 -0
- label_studio_sdk/types/all_roles_project_list.py +98 -98
- label_studio_sdk/types/annotation.py +35 -35
- label_studio_sdk/types/annotation_request.py +27 -27
- label_studio_sdk/types/azure_blob_export_storage.py +29 -29
- label_studio_sdk/types/azure_blob_import_storage.py +33 -33
- label_studio_sdk/types/batch_failed_predictions.py +1 -1
- label_studio_sdk/types/billing_checks.py +39 -0
- label_studio_sdk/types/billing_flags.py +44 -0
- label_studio_sdk/types/billing_info_response.py +22 -0
- label_studio_sdk/types/blueprint_list.py +7 -8
- label_studio_sdk/types/child_filter.py +11 -10
- label_studio_sdk/types/comment.py +15 -15
- label_studio_sdk/types/comment_request.py +7 -8
- label_studio_sdk/types/comment_serializer_with_expanded_user.py +17 -18
- label_studio_sdk/types/converted_format.py +1 -1
- label_studio_sdk/types/converted_format_request.py +1 -1
- label_studio_sdk/types/count_limit.py +22 -0
- label_studio_sdk/types/export.py +8 -8
- label_studio_sdk/types/file_upload.py +3 -2
- label_studio_sdk/types/filter.py +10 -9
- label_studio_sdk/types/filter_group.py +4 -3
- label_studio_sdk/types/gcs_export_storage.py +23 -23
- label_studio_sdk/types/gcs_import_storage.py +27 -27
- label_studio_sdk/types/import_api_request.py +26 -26
- label_studio_sdk/types/inference_run_cost_estimate.py +10 -10
- label_studio_sdk/types/local_files_export_storage.py +23 -23
- label_studio_sdk/types/local_files_import_storage.py +26 -26
- label_studio_sdk/types/lse_annotation_filter_options.py +10 -10
- label_studio_sdk/types/lse_annotation_filter_options_request.py +10 -10
- label_studio_sdk/types/lse_export_create.py +12 -12
- label_studio_sdk/types/lse_fields.py +14 -14
- label_studio_sdk/types/lse_organization.py +17 -17
- label_studio_sdk/types/lse_organization_member_list.py +32 -0
- label_studio_sdk/types/lse_project_create.py +72 -72
- label_studio_sdk/types/lse_project_update.py +89 -89
- label_studio_sdk/types/lse_s3export_storage.py +46 -46
- label_studio_sdk/types/lse_s3export_storage_request.py +43 -43
- label_studio_sdk/types/lse_s3import_storage.py +53 -53
- label_studio_sdk/types/lse_s3import_storage_request.py +49 -49
- label_studio_sdk/types/lse_task.py +49 -49
- label_studio_sdk/types/lse_task_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_filter_options.py +14 -14
- label_studio_sdk/types/lse_task_filter_options_request.py +14 -14
- label_studio_sdk/types/lse_task_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_annotators.py +12 -12
- label_studio_sdk/types/lse_task_serializer_for_annotators_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_annotators_predictions_item.py +5 -5
- label_studio_sdk/types/lse_task_serializer_for_reviewers.py +49 -49
- label_studio_sdk/types/lse_task_serializer_for_reviewers_drafts_item.py +1 -1
- label_studio_sdk/types/lse_task_serializer_for_reviewers_predictions_item.py +5 -5
- label_studio_sdk/types/lse_user.py +13 -13
- label_studio_sdk/types/lse_user_api.py +11 -11
- label_studio_sdk/types/lse_user_organization_member_list.py +48 -0
- label_studio_sdk/types/lseapi_token_create.py +1 -1
- label_studio_sdk/types/lseapi_token_list.py +1 -1
- label_studio_sdk/types/lsejwt_settings.py +5 -5
- label_studio_sdk/types/ml_backend.py +27 -28
- label_studio_sdk/types/model_interface.py +12 -12
- label_studio_sdk/types/model_interface_request.py +7 -8
- label_studio_sdk/types/model_interface_serializer_get.py +13 -13
- label_studio_sdk/types/model_provider_connection.py +34 -34
- label_studio_sdk/types/model_provider_connection_request.py +15 -14
- label_studio_sdk/types/model_run.py +12 -12
- label_studio_sdk/types/organization_billing.py +1 -1
- label_studio_sdk/types/organization_id.py +2 -2
- label_studio_sdk/types/organization_invite.py +1 -1
- label_studio_sdk/types/organization_member.py +8 -9
- label_studio_sdk/types/organization_membership.py +2 -1
- label_studio_sdk/types/paginated_lse_organization_member_list_list.py +23 -0
- label_studio_sdk/types/pause.py +23 -23
- label_studio_sdk/types/prediction.py +21 -21
- label_studio_sdk/types/prediction_request.py +16 -16
- label_studio_sdk/types/project.py +72 -72
- label_studio_sdk/types/project_import.py +21 -21
- label_studio_sdk/types/prompts_status_enum.py +16 -0
- label_studio_sdk/types/redis_export_storage.py +34 -34
- label_studio_sdk/types/redis_import_storage.py +37 -37
- label_studio_sdk/types/refined_prompt_response.py +11 -11
- label_studio_sdk/types/review_settings.py +29 -30
- label_studio_sdk/types/review_settings_request.py +29 -30
- label_studio_sdk/types/role9e7enum.py +5 -0
- label_studio_sdk/types/s3export_storage.py +45 -45
- label_studio_sdk/types/s3import_storage.py +44 -44
- label_studio_sdk/types/selected_items_request.py +1 -1
- label_studio_sdk/types/serialization_options.py +10 -10
- label_studio_sdk/types/serialization_options_request.py +10 -10
- label_studio_sdk/types/task_assignment.py +43 -0
- label_studio_sdk/types/third_party_model_version.py +11 -11
- label_studio_sdk/types/third_party_model_version_request.py +6 -7
- label_studio_sdk/types/type_enum.py +5 -0
- label_studio_sdk/types/user_simple.py +3 -3
- label_studio_sdk/types/user_simple_request.py +1 -1
- label_studio_sdk/types/version_response.py +19 -20
- label_studio_sdk/types/view.py +8 -8
- label_studio_sdk/types/webhook.py +16 -16
- label_studio_sdk/types/webhook_serializer_for_update.py +16 -16
- label_studio_sdk/types/workspace.py +10 -11
- label_studio_sdk/users/client.py +160 -160
- label_studio_sdk/views/client.py +164 -164
- label_studio_sdk/webhooks/client.py +183 -183
- label_studio_sdk/webhooks/types/webhooks_info_response.py +32 -32
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotation_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_annotations_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_label_link_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_project_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_review_updated.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_reviews_deleted.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_created.py +1 -1
- label_studio_sdk/webhooks/types/webhooks_info_response_tasks_deleted.py +1 -1
- label_studio_sdk/workspaces/client.py +40 -40
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/METADATA +73 -25
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/RECORD +175 -146
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/LICENSE +0 -0
- {label_studio_sdk-2.0.0.dist-info → label_studio_sdk-2.0.2.dist-info}/WHEEL +0 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
|
-
from .user_simple import UserSimple
|
|
7
6
|
import datetime as dt
|
|
7
|
+
from .user_simple import UserSimple
|
|
8
8
|
from .project_sampling import ProjectSampling
|
|
9
9
|
from .project_skip_queue import ProjectSkipQueue
|
|
10
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -16,10 +16,22 @@ class Project(UncheckedBaseModel):
|
|
|
16
16
|
make sure, that you use correct one(Project.objects.with_counts())
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
color: typing.Optional[str] = None
|
|
20
|
+
config_has_control_tags: bool = pydantic.Field()
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
Flag to detect is project ready for labeling
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
config_suitable_for_bulk_annotation: bool = pydantic.Field()
|
|
26
|
+
"""
|
|
27
|
+
Flag to detect is project ready for bulk annotation
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
control_weights: typing.Optional[typing.Optional[typing.Any]] = None
|
|
31
|
+
created_at: dt.datetime
|
|
32
|
+
created_by: typing.Optional[UserSimple] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
Project owner
|
|
23
35
|
"""
|
|
24
36
|
|
|
25
37
|
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -27,9 +39,14 @@ class Project(UncheckedBaseModel):
|
|
|
27
39
|
Project description
|
|
28
40
|
"""
|
|
29
41
|
|
|
30
|
-
|
|
42
|
+
enable_empty_annotation: typing.Optional[bool] = pydantic.Field(default=None)
|
|
31
43
|
"""
|
|
32
|
-
|
|
44
|
+
Allow annotators to submit empty annotations
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
|
|
48
|
+
"""
|
|
49
|
+
Retrieve and display predictions when loading a task
|
|
33
50
|
"""
|
|
34
51
|
|
|
35
52
|
expert_instruction: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -37,36 +54,40 @@ class Project(UncheckedBaseModel):
|
|
|
37
54
|
Labeling instructions in HTML format
|
|
38
55
|
"""
|
|
39
56
|
|
|
40
|
-
|
|
57
|
+
finished_task_number: int = pydantic.Field()
|
|
41
58
|
"""
|
|
42
|
-
|
|
59
|
+
Finished tasks
|
|
43
60
|
"""
|
|
44
61
|
|
|
45
|
-
|
|
62
|
+
ground_truth_number: int = pydantic.Field()
|
|
46
63
|
"""
|
|
47
|
-
|
|
64
|
+
Honeypot annotation number in project
|
|
48
65
|
"""
|
|
49
66
|
|
|
50
|
-
|
|
67
|
+
id: int
|
|
68
|
+
is_draft: typing.Optional[bool] = pydantic.Field(default=None)
|
|
51
69
|
"""
|
|
52
|
-
|
|
70
|
+
Whether or not the project is in the middle of being created
|
|
53
71
|
"""
|
|
54
72
|
|
|
55
|
-
|
|
73
|
+
is_published: typing.Optional[bool] = pydantic.Field(default=None)
|
|
56
74
|
"""
|
|
57
|
-
|
|
75
|
+
Whether or not the project is published to annotators
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
label_config: typing.Optional[str] = pydantic.Field(default=None)
|
|
79
|
+
"""
|
|
80
|
+
Label config in XML format. See more about it in documentation
|
|
58
81
|
"""
|
|
59
82
|
|
|
60
|
-
organization: typing.Optional[int] = None
|
|
61
|
-
color: typing.Optional[str] = None
|
|
62
83
|
maximum_annotations: typing.Optional[int] = pydantic.Field(default=None)
|
|
63
84
|
"""
|
|
64
85
|
Maximum number of annotations for one task. If the number of annotations per task is equal or greater to this value, the task is completed (is_labeled=True)
|
|
65
86
|
"""
|
|
66
87
|
|
|
67
|
-
|
|
88
|
+
min_annotations_to_start_training: typing.Optional[int] = pydantic.Field(default=None)
|
|
68
89
|
"""
|
|
69
|
-
|
|
90
|
+
Minimum number of completed tasks after which model training is started
|
|
70
91
|
"""
|
|
71
92
|
|
|
72
93
|
model_version: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -74,25 +95,30 @@ class Project(UncheckedBaseModel):
|
|
|
74
95
|
Machine learning model version
|
|
75
96
|
"""
|
|
76
97
|
|
|
77
|
-
|
|
98
|
+
num_tasks_with_annotations: int = pydantic.Field()
|
|
78
99
|
"""
|
|
79
|
-
|
|
100
|
+
Tasks with annotations count
|
|
80
101
|
"""
|
|
81
102
|
|
|
82
|
-
|
|
103
|
+
organization: typing.Optional[int] = None
|
|
104
|
+
overlap_cohort_percentage: typing.Optional[int] = None
|
|
105
|
+
parsed_label_config: typing.Optional[typing.Any] = None
|
|
106
|
+
pinned_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
83
107
|
"""
|
|
84
|
-
|
|
108
|
+
Pinned date and time
|
|
85
109
|
"""
|
|
86
110
|
|
|
87
|
-
|
|
88
|
-
|
|
111
|
+
queue_done: int
|
|
112
|
+
queue_total: int
|
|
113
|
+
reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
|
|
89
114
|
"""
|
|
90
|
-
|
|
115
|
+
Reveal pre-annotations interactively
|
|
91
116
|
"""
|
|
92
117
|
|
|
93
|
-
|
|
118
|
+
sampling: typing.Optional[ProjectSampling] = None
|
|
119
|
+
show_annotation_history: typing.Optional[bool] = pydantic.Field(default=None)
|
|
94
120
|
"""
|
|
95
|
-
|
|
121
|
+
Show annotation history to annotator
|
|
96
122
|
"""
|
|
97
123
|
|
|
98
124
|
show_collab_predictions: typing.Optional[bool] = pydantic.Field(default=None)
|
|
@@ -100,45 +126,29 @@ class Project(UncheckedBaseModel):
|
|
|
100
126
|
If set, the annotator can view model predictions
|
|
101
127
|
"""
|
|
102
128
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Tasks with annotations count
|
|
106
|
-
"""
|
|
107
|
-
|
|
108
|
-
task_number: int = pydantic.Field()
|
|
109
|
-
"""
|
|
110
|
-
Total task number in project
|
|
111
|
-
"""
|
|
112
|
-
|
|
113
|
-
useful_annotation_number: int = pydantic.Field()
|
|
129
|
+
show_ground_truth_first: typing.Optional[bool] = None
|
|
130
|
+
show_instruction: typing.Optional[bool] = pydantic.Field(default=None)
|
|
114
131
|
"""
|
|
115
|
-
|
|
132
|
+
Show instructions to the annotator before they start
|
|
116
133
|
"""
|
|
117
134
|
|
|
118
|
-
|
|
135
|
+
show_overlap_first: typing.Optional[bool] = None
|
|
136
|
+
show_skip_button: typing.Optional[bool] = pydantic.Field(default=None)
|
|
119
137
|
"""
|
|
120
|
-
|
|
138
|
+
Show a skip button in interface and allow annotators to skip the task
|
|
121
139
|
"""
|
|
122
140
|
|
|
141
|
+
skip_queue: typing.Optional[ProjectSkipQueue] = None
|
|
123
142
|
skipped_annotations_number: int = pydantic.Field()
|
|
124
143
|
"""
|
|
125
144
|
Skipped by collaborators annotation number in project
|
|
126
145
|
"""
|
|
127
146
|
|
|
128
|
-
|
|
129
|
-
"""
|
|
130
|
-
Total annotations number in project including skipped_annotations_number and ground_truth_number.
|
|
131
|
-
"""
|
|
132
|
-
|
|
133
|
-
total_predictions_number: int = pydantic.Field()
|
|
147
|
+
start_training_on_annotation_update: bool = pydantic.Field()
|
|
134
148
|
"""
|
|
135
|
-
|
|
149
|
+
Start model training after any annotations are submitted or updated
|
|
136
150
|
"""
|
|
137
151
|
|
|
138
|
-
sampling: typing.Optional[ProjectSampling] = None
|
|
139
|
-
show_ground_truth_first: typing.Optional[bool] = None
|
|
140
|
-
show_overlap_first: typing.Optional[bool] = None
|
|
141
|
-
overlap_cohort_percentage: typing.Optional[int] = None
|
|
142
152
|
task_data_login: typing.Optional[str] = pydantic.Field(default=None)
|
|
143
153
|
"""
|
|
144
154
|
Task data credentials: login
|
|
@@ -149,39 +159,29 @@ class Project(UncheckedBaseModel):
|
|
|
149
159
|
Task data credentials: password
|
|
150
160
|
"""
|
|
151
161
|
|
|
152
|
-
|
|
153
|
-
parsed_label_config: typing.Optional[typing.Any] = None
|
|
154
|
-
evaluate_predictions_automatically: typing.Optional[bool] = pydantic.Field(default=None)
|
|
155
|
-
"""
|
|
156
|
-
Retrieve and display predictions when loading a task
|
|
157
|
-
"""
|
|
158
|
-
|
|
159
|
-
config_has_control_tags: bool = pydantic.Field()
|
|
162
|
+
task_number: int = pydantic.Field()
|
|
160
163
|
"""
|
|
161
|
-
|
|
164
|
+
Total task number in project
|
|
162
165
|
"""
|
|
163
166
|
|
|
164
|
-
|
|
165
|
-
reveal_preannotations_interactively: typing.Optional[bool] = pydantic.Field(default=None)
|
|
167
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
166
168
|
"""
|
|
167
|
-
|
|
169
|
+
Project name. Must be between 3 and 50 characters long.
|
|
168
170
|
"""
|
|
169
171
|
|
|
170
|
-
|
|
172
|
+
total_annotations_number: int = pydantic.Field()
|
|
171
173
|
"""
|
|
172
|
-
|
|
174
|
+
Total annotations number in project including skipped_annotations_number and ground_truth_number.
|
|
173
175
|
"""
|
|
174
176
|
|
|
175
|
-
|
|
177
|
+
total_predictions_number: int = pydantic.Field()
|
|
176
178
|
"""
|
|
177
|
-
|
|
179
|
+
Total predictions number in project including skipped_annotations_number, ground_truth_number, and useful_annotation_number.
|
|
178
180
|
"""
|
|
179
181
|
|
|
180
|
-
|
|
181
|
-
queue_done: int
|
|
182
|
-
config_suitable_for_bulk_annotation: bool = pydantic.Field()
|
|
182
|
+
useful_annotation_number: int = pydantic.Field()
|
|
183
183
|
"""
|
|
184
|
-
|
|
184
|
+
Useful annotation number in project not including skipped_annotations_number and ground_truth_number. Total annotations = annotation_number + skipped_annotations_number + ground_truth_number
|
|
185
185
|
"""
|
|
186
186
|
|
|
187
187
|
if IS_PYDANTIC_V2:
|
|
@@ -2,46 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .status7bf_enum import Status7BfEnum
|
|
6
5
|
import datetime as dt
|
|
7
6
|
import pydantic
|
|
7
|
+
from .status7bf_enum import Status7BfEnum
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class ProjectImport(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
project: typing.Optional[int] = None
|
|
14
|
-
preannotated_from_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
12
|
+
annotation_count: typing.Optional[int] = None
|
|
15
13
|
commit_to_project: typing.Optional[bool] = None
|
|
16
|
-
|
|
17
|
-
status: typing.Optional[Status7BfEnum] = None
|
|
18
|
-
url: typing.Optional[str] = None
|
|
19
|
-
error: typing.Optional[str] = None
|
|
14
|
+
could_be_tasks_list: typing.Optional[bool] = None
|
|
20
15
|
created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
21
16
|
"""
|
|
22
17
|
Creation time
|
|
23
18
|
"""
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
data_columns: typing.Optional[typing.Optional[typing.Any]] = None
|
|
21
|
+
duration: typing.Optional[int] = None
|
|
22
|
+
error: typing.Optional[str] = None
|
|
23
|
+
file_upload_ids: typing.Optional[typing.Optional[typing.Any]] = None
|
|
30
24
|
finished_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
31
25
|
"""
|
|
32
26
|
Complete or fail time
|
|
33
27
|
"""
|
|
34
28
|
|
|
35
|
-
task_count: typing.Optional[int] = None
|
|
36
|
-
annotation_count: typing.Optional[int] = None
|
|
37
|
-
prediction_count: typing.Optional[int] = None
|
|
38
|
-
duration: typing.Optional[int] = None
|
|
39
|
-
file_upload_ids: typing.Optional[typing.Optional[typing.Any]] = None
|
|
40
|
-
could_be_tasks_list: typing.Optional[bool] = None
|
|
41
29
|
found_formats: typing.Optional[typing.Optional[typing.Any]] = None
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
id: int
|
|
31
|
+
preannotated_from_fields: typing.Optional[typing.Optional[typing.Any]] = None
|
|
32
|
+
prediction_count: typing.Optional[int] = None
|
|
33
|
+
project: typing.Optional[int] = None
|
|
34
|
+
return_task_ids: typing.Optional[bool] = None
|
|
35
|
+
status: typing.Optional[Status7BfEnum] = None
|
|
36
|
+
task_count: typing.Optional[int] = None
|
|
44
37
|
task_ids: typing.Optional[typing.Optional[typing.Any]] = None
|
|
38
|
+
tasks: typing.Optional[typing.Optional[typing.Any]] = None
|
|
39
|
+
updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
40
|
+
"""
|
|
41
|
+
Updated time
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
url: typing.Optional[str] = None
|
|
45
45
|
|
|
46
46
|
if IS_PYDANTIC_V2:
|
|
47
47
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
PromptsStatusEnum = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"Enabled",
|
|
8
|
+
"Cloud license per organization disabled",
|
|
9
|
+
"On-premise global license disabled",
|
|
10
|
+
"Expired",
|
|
11
|
+
"Adala not connected",
|
|
12
|
+
"Disabled for this organization [FF]",
|
|
13
|
+
"unknown",
|
|
14
|
+
],
|
|
15
|
+
typing.Any,
|
|
16
|
+
]
|
|
@@ -9,39 +9,32 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class RedisExportStorage(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
|
-
"""
|
|
17
|
-
Storage prefix (optional)
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
host: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
can_delete_objects: typing.Optional[bool] = pydantic.Field(default=None)
|
|
21
13
|
"""
|
|
22
|
-
|
|
14
|
+
Deletion from storage enabled
|
|
23
15
|
"""
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
created_at: dt.datetime = pydantic.Field()
|
|
26
18
|
"""
|
|
27
|
-
|
|
19
|
+
Creation time
|
|
28
20
|
"""
|
|
29
21
|
|
|
30
|
-
|
|
22
|
+
db: typing.Optional[int] = pydantic.Field(default=None)
|
|
31
23
|
"""
|
|
32
|
-
Server
|
|
24
|
+
Server Database
|
|
33
25
|
"""
|
|
34
26
|
|
|
35
|
-
|
|
27
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
28
|
"""
|
|
37
|
-
Cloud storage
|
|
29
|
+
Cloud storage description
|
|
38
30
|
"""
|
|
39
31
|
|
|
40
|
-
|
|
32
|
+
host: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
33
|
"""
|
|
42
|
-
|
|
34
|
+
Server Host IP (optional)
|
|
43
35
|
"""
|
|
44
36
|
|
|
37
|
+
id: int
|
|
45
38
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
46
39
|
"""
|
|
47
40
|
Last sync finished time
|
|
@@ -57,41 +50,48 @@ class RedisExportStorage(UncheckedBaseModel):
|
|
|
57
50
|
Last sync job ID
|
|
58
51
|
"""
|
|
59
52
|
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
54
|
+
password: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
55
|
"""
|
|
63
|
-
|
|
56
|
+
Server Password (optional)
|
|
64
57
|
"""
|
|
65
58
|
|
|
66
|
-
|
|
67
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
59
|
+
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
68
60
|
"""
|
|
69
|
-
|
|
61
|
+
Storage prefix (optional)
|
|
70
62
|
"""
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
port: typing.Optional[str] = pydantic.Field(default=None)
|
|
73
65
|
"""
|
|
74
|
-
|
|
66
|
+
Server Port (optional)
|
|
75
67
|
"""
|
|
76
68
|
|
|
77
|
-
|
|
69
|
+
project: int = pydantic.Field()
|
|
78
70
|
"""
|
|
79
|
-
|
|
71
|
+
A unique integer value identifying this project.
|
|
80
72
|
"""
|
|
81
73
|
|
|
82
|
-
|
|
74
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
83
75
|
"""
|
|
84
|
-
|
|
76
|
+
Cloud storage regex for filtering objects
|
|
85
77
|
"""
|
|
86
78
|
|
|
87
|
-
|
|
79
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
80
|
+
synchronizable: typing.Optional[bool] = None
|
|
81
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
88
82
|
"""
|
|
89
|
-
|
|
83
|
+
Cloud storage title
|
|
90
84
|
"""
|
|
91
85
|
|
|
92
|
-
|
|
86
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
93
87
|
"""
|
|
94
|
-
|
|
88
|
+
Traceback report for the last failed sync
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
type: str
|
|
92
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
93
|
+
"""
|
|
94
|
+
Interpret objects as BLOBs and generate URLs
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
if IS_PYDANTIC_V2:
|
|
@@ -1,47 +1,35 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import typing
|
|
5
|
-
import pydantic
|
|
6
4
|
import datetime as dt
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing
|
|
7
7
|
from .status_c5a_enum import StatusC5AEnum
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class RedisImportStorage(UncheckedBaseModel):
|
|
12
|
-
|
|
13
|
-
type: str
|
|
14
|
-
synchronizable: typing.Optional[bool] = None
|
|
15
|
-
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
16
|
-
"""
|
|
17
|
-
Storage prefix (optional)
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
host: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
-
"""
|
|
22
|
-
Server Host IP (optional)
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
port: typing.Optional[str] = pydantic.Field(default=None)
|
|
12
|
+
created_at: dt.datetime = pydantic.Field()
|
|
26
13
|
"""
|
|
27
|
-
|
|
14
|
+
Creation time
|
|
28
15
|
"""
|
|
29
16
|
|
|
30
|
-
|
|
17
|
+
db: typing.Optional[int] = pydantic.Field(default=None)
|
|
31
18
|
"""
|
|
32
|
-
Server
|
|
19
|
+
Server Database
|
|
33
20
|
"""
|
|
34
21
|
|
|
35
|
-
|
|
22
|
+
description: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
23
|
"""
|
|
37
|
-
Cloud storage
|
|
24
|
+
Cloud storage description
|
|
38
25
|
"""
|
|
39
26
|
|
|
40
|
-
|
|
27
|
+
host: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
28
|
"""
|
|
42
|
-
|
|
29
|
+
Server Host IP (optional)
|
|
43
30
|
"""
|
|
44
31
|
|
|
32
|
+
id: int
|
|
45
33
|
last_sync: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
46
34
|
"""
|
|
47
35
|
Last sync finished time
|
|
@@ -57,36 +45,48 @@ class RedisImportStorage(UncheckedBaseModel):
|
|
|
57
45
|
Last sync job ID
|
|
58
46
|
"""
|
|
59
47
|
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
meta: typing.Optional[typing.Optional[typing.Any]] = None
|
|
49
|
+
password: typing.Optional[str] = pydantic.Field(default=None)
|
|
62
50
|
"""
|
|
63
|
-
|
|
51
|
+
Server Password (optional)
|
|
64
52
|
"""
|
|
65
53
|
|
|
66
|
-
|
|
67
|
-
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
54
|
+
path: typing.Optional[str] = pydantic.Field(default=None)
|
|
68
55
|
"""
|
|
69
|
-
|
|
56
|
+
Storage prefix (optional)
|
|
70
57
|
"""
|
|
71
58
|
|
|
72
|
-
|
|
59
|
+
port: typing.Optional[str] = pydantic.Field(default=None)
|
|
73
60
|
"""
|
|
74
|
-
|
|
61
|
+
Server Port (optional)
|
|
75
62
|
"""
|
|
76
63
|
|
|
77
|
-
|
|
64
|
+
project: int = pydantic.Field()
|
|
78
65
|
"""
|
|
79
|
-
|
|
66
|
+
A unique integer value identifying this project.
|
|
80
67
|
"""
|
|
81
68
|
|
|
82
|
-
|
|
69
|
+
regex_filter: typing.Optional[str] = pydantic.Field(default=None)
|
|
83
70
|
"""
|
|
84
|
-
|
|
71
|
+
Cloud storage regex for filtering objects
|
|
85
72
|
"""
|
|
86
73
|
|
|
87
|
-
|
|
74
|
+
status: typing.Optional[StatusC5AEnum] = None
|
|
75
|
+
synchronizable: typing.Optional[bool] = None
|
|
76
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
88
77
|
"""
|
|
89
|
-
|
|
78
|
+
Cloud storage title
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
traceback: typing.Optional[str] = pydantic.Field(default=None)
|
|
82
|
+
"""
|
|
83
|
+
Traceback report for the last failed sync
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
type: str
|
|
87
|
+
use_blob_urls: typing.Optional[bool] = pydantic.Field(default=None)
|
|
88
|
+
"""
|
|
89
|
+
Interpret objects as BLOBs and generate URLs
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
92
|
if IS_PYDANTIC_V2:
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
import pydantic
|
|
6
5
|
from .third_party_model_version import ThirdPartyModelVersion
|
|
6
|
+
import pydantic
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class RefinedPromptResponse(UncheckedBaseModel):
|
|
11
|
-
|
|
11
|
+
previous_version: typing.Optional[ThirdPartyModelVersion] = pydantic.Field(default=None)
|
|
12
12
|
"""
|
|
13
|
-
|
|
13
|
+
Previous version of the prompt
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
prompt: str = pydantic.Field()
|
|
17
17
|
"""
|
|
18
|
-
|
|
18
|
+
The refined prompt text
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
reasoning: typing.Optional[str] = pydantic.Field(default=None)
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
Reasoning behind the refinement
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
26
|
refinement_job_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -33,14 +33,14 @@ class RefinedPromptResponse(UncheckedBaseModel):
|
|
|
33
33
|
Status of the refinement job
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
title: typing.Optional[str] = pydantic.Field(default=None)
|
|
37
37
|
"""
|
|
38
|
-
|
|
38
|
+
Title of the refined prompt
|
|
39
39
|
"""
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
total_cost: typing.Optional[str] = pydantic.Field(default=None)
|
|
42
42
|
"""
|
|
43
|
-
|
|
43
|
+
Total cost of the refinement job (in USD)
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
46
|
if IS_PYDANTIC_V2:
|