scaleapi 2.17.0__tar.gz → 2.18.0__tar.gz
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.
- {scaleapi-2.17.0 → scaleapi-2.18.0}/PKG-INFO +55 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/README.rst +54 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/_version.py +1 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/__init__.py +57 -81
- scaleapi-2.18.0/scaleapi/api_client/v2/api/v2_api.py +5399 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/__init__.py +57 -81
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation.py +72 -3
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_boolean.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_category.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_category_multiple.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_file.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_integer.py +3 -1
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_labeled_text.py +121 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_labeled_text_properties.py +94 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_ranked_choices.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_ranked_groups.py +3 -1
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_rubric_criteria.py +114 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_rubric_criteria_properties.py +90 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_rubric_rating.py +114 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_rubric_rating_properties.py +90 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_text.py +3 -1
- scaleapi-2.18.0/scaleapi/api_client/v2/models/annotation_type.py +45 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_workspace_container.py +3 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/base_annotation.py +4 -2
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/batch.py +21 -3
- scaleapi-2.18.0/scaleapi/api_client/v2/models/batch_operation_request.py +88 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/batch_status.py +38 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/cancel_batch200_response.py +92 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/create_batch_request.py +96 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/create_batch_request_project.py +141 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/create_chat_task_request.py +98 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/criterion_definition.py +100 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/criterion_evaluation.py +98 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/expandable_enum_batch.py +34 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/finalize_batch_request.py +88 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/gen_ai_project_type.py +43 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/get_batch500_response.py +88 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/get_batches_response.py +96 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/get_projects_response.py +94 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/labeled_text_value.py +88 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/message.py +12 -2
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/message_content.py +1 -1
- scaleapi-2.18.0/scaleapi/api_client/v2/models/pause_batch200_response.py +92 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/project.py +11 -3
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/reasoning.py +3 -3
- scaleapi-2.18.0/scaleapi/api_client/v2/models/resume_batch200_response.py +92 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/rubric.py +96 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/rubric_criteria_value.py +100 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/rubric_evaluation.py +108 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/rubric_rating_value.py +104 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/set_batch_metadata_request.py +92 -0
- scaleapi-2.18.0/scaleapi/api_client/v2/models/set_task_metadata_request.py +90 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/task.py +1 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/turn.py +13 -3
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi.egg-info/PKG-INFO +55 -1
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi.egg-info/SOURCES.txt +29 -0
- scaleapi-2.18.0/tests/test_v2_client.py +309 -0
- scaleapi-2.17.0/scaleapi/api_client/v2/api/v2_api.py +0 -1816
- scaleapi-2.17.0/scaleapi/api_client/v2/models/annotation_type.py +0 -42
- scaleapi-2.17.0/tests/test_v2_client.py +0 -66
- {scaleapi-2.17.0 → scaleapi-2.18.0}/LICENSE +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/__init__.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/__init__.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/api/__init__.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/api_client.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/api_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/configuration.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/exceptions.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_boolean_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_category_multiple_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_category_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_file_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_file_properties_value.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_integer_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_metadata.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_ranked_choices_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_ranked_groups_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_text_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/annotation_workspace_container_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/audio_file.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/base_chunk.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/basic_file.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/chunk.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/chunk_text.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/chunk_text_properties.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/content_and_url.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/delivery.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/detailed_file.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/error_detail.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/error_type.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_annotation.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_batch.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_delivery.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_enum_deliveries.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_enum_delivery.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_enum_task.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/expandable_project.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/get_delivered_tasks_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/get_deliveries_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/get_task500_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/get_tasks_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/image_file.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/message_role.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/model_parameters.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/option.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/reference_text.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/sensitive_content_report.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/submission.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/task_status.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/thread.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/v1_task_task_id_get200_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/v1_task_task_id_get200_response_response.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_container_config.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_container_value.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_execution_data.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_execution_data_result.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_execution_data_result_status.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/models/workspace_file.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/api_client/v2/rest.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/batches.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/evaluation_tasks.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/exceptions.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/files.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/projects.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/quality_tasks.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/studio.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/tasks.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/teams.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi/training_tasks.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi.egg-info/dependency_links.txt +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi.egg-info/requires.txt +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/scaleapi.egg-info/top_level.txt +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/setup.cfg +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/setup.py +0 -0
- {scaleapi-2.17.0 → scaleapi-2.18.0}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scaleapi
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.18.0
|
|
4
4
|
Summary: The official Python client library for Scale AI, the Data Platform for AI
|
|
5
5
|
Home-page: https://github.com/scaleapi/scaleapi-python-client
|
|
6
6
|
Author: Scale AI
|
|
@@ -959,9 +959,42 @@ __ https://docs.genai.scale.com/get-started/quickstart
|
|
|
959
959
|
* - **get_task**
|
|
960
960
|
- **GET** /v2/task
|
|
961
961
|
- Get a Task
|
|
962
|
+
* - **create_chat_task**
|
|
963
|
+
- **POST** /v2/task
|
|
964
|
+
- Create a Chat Task
|
|
962
965
|
* - **get_tasks**
|
|
963
966
|
- **GET** /v2/tasks
|
|
964
967
|
- Get Multiple Tasks
|
|
968
|
+
* - **get_batch**
|
|
969
|
+
- **GET** /v2/batch
|
|
970
|
+
- Get a Batch
|
|
971
|
+
* - **create_batch**
|
|
972
|
+
- **POST** /v2/batch
|
|
973
|
+
- Create a Batch
|
|
974
|
+
* - **get_batches**
|
|
975
|
+
- **GET** /v2/batches
|
|
976
|
+
- Get Multiple Batches
|
|
977
|
+
* - **finalize_batch**
|
|
978
|
+
- **POST** /v2/batch/finalize
|
|
979
|
+
- Finalize a Batch
|
|
980
|
+
* - **pause_batch**
|
|
981
|
+
- **POST** /v2/batch/pause
|
|
982
|
+
- Pause a Batch
|
|
983
|
+
* - **resume_batch**
|
|
984
|
+
- **POST** /v2/batch/resume
|
|
985
|
+
- Resume a Batch
|
|
986
|
+
* - **cancel_batch**
|
|
987
|
+
- **POST** /v2/batch/cancel
|
|
988
|
+
- Cancel a Batch
|
|
989
|
+
* - **set_batch_metadata**
|
|
990
|
+
- **POST** /v2/batch/metadata
|
|
991
|
+
- Set Batch Metadata
|
|
992
|
+
* - **get_project**
|
|
993
|
+
- **GET** /v2/project
|
|
994
|
+
- Get a Project
|
|
995
|
+
* - **get_projects**
|
|
996
|
+
- **GET** /v2/projects
|
|
997
|
+
- Get Multiple Projects
|
|
965
998
|
* - **get_deliveries**
|
|
966
999
|
- **GET** /v2/deliveries
|
|
967
1000
|
- List All Deliveries
|
|
@@ -994,6 +1027,27 @@ For example:
|
|
|
994
1027
|
# Download task or do something!
|
|
995
1028
|
print(task.task_id)
|
|
996
1029
|
|
|
1030
|
+
# Create a chat task
|
|
1031
|
+
task = client.v2.create_chat_task(
|
|
1032
|
+
project_name="My Chat Project",
|
|
1033
|
+
template_variables={
|
|
1034
|
+
"prompt": "Explain quantum computing",
|
|
1035
|
+
"context": "For a general audience"
|
|
1036
|
+
}
|
|
1037
|
+
)
|
|
1038
|
+
|
|
1039
|
+
# Get a batch
|
|
1040
|
+
batch = client.v2.get_batch('batch_123')
|
|
1041
|
+
|
|
1042
|
+
# Create a batch
|
|
1043
|
+
batch = client.v2.create_batch(
|
|
1044
|
+
name="My New Batch",
|
|
1045
|
+
project="project_123"
|
|
1046
|
+
)
|
|
1047
|
+
|
|
1048
|
+
# Finalize a batch
|
|
1049
|
+
batch = client.v2.finalize_batch('batch_123')
|
|
1050
|
+
|
|
997
1051
|
|
|
998
1052
|
Troubleshooting
|
|
999
1053
|
_______________
|
|
@@ -931,9 +931,42 @@ __ https://docs.genai.scale.com/get-started/quickstart
|
|
|
931
931
|
* - **get_task**
|
|
932
932
|
- **GET** /v2/task
|
|
933
933
|
- Get a Task
|
|
934
|
+
* - **create_chat_task**
|
|
935
|
+
- **POST** /v2/task
|
|
936
|
+
- Create a Chat Task
|
|
934
937
|
* - **get_tasks**
|
|
935
938
|
- **GET** /v2/tasks
|
|
936
939
|
- Get Multiple Tasks
|
|
940
|
+
* - **get_batch**
|
|
941
|
+
- **GET** /v2/batch
|
|
942
|
+
- Get a Batch
|
|
943
|
+
* - **create_batch**
|
|
944
|
+
- **POST** /v2/batch
|
|
945
|
+
- Create a Batch
|
|
946
|
+
* - **get_batches**
|
|
947
|
+
- **GET** /v2/batches
|
|
948
|
+
- Get Multiple Batches
|
|
949
|
+
* - **finalize_batch**
|
|
950
|
+
- **POST** /v2/batch/finalize
|
|
951
|
+
- Finalize a Batch
|
|
952
|
+
* - **pause_batch**
|
|
953
|
+
- **POST** /v2/batch/pause
|
|
954
|
+
- Pause a Batch
|
|
955
|
+
* - **resume_batch**
|
|
956
|
+
- **POST** /v2/batch/resume
|
|
957
|
+
- Resume a Batch
|
|
958
|
+
* - **cancel_batch**
|
|
959
|
+
- **POST** /v2/batch/cancel
|
|
960
|
+
- Cancel a Batch
|
|
961
|
+
* - **set_batch_metadata**
|
|
962
|
+
- **POST** /v2/batch/metadata
|
|
963
|
+
- Set Batch Metadata
|
|
964
|
+
* - **get_project**
|
|
965
|
+
- **GET** /v2/project
|
|
966
|
+
- Get a Project
|
|
967
|
+
* - **get_projects**
|
|
968
|
+
- **GET** /v2/projects
|
|
969
|
+
- Get Multiple Projects
|
|
937
970
|
* - **get_deliveries**
|
|
938
971
|
- **GET** /v2/deliveries
|
|
939
972
|
- List All Deliveries
|
|
@@ -966,6 +999,27 @@ For example:
|
|
|
966
999
|
# Download task or do something!
|
|
967
1000
|
print(task.task_id)
|
|
968
1001
|
|
|
1002
|
+
# Create a chat task
|
|
1003
|
+
task = client.v2.create_chat_task(
|
|
1004
|
+
project_name="My Chat Project",
|
|
1005
|
+
template_variables={
|
|
1006
|
+
"prompt": "Explain quantum computing",
|
|
1007
|
+
"context": "For a general audience"
|
|
1008
|
+
}
|
|
1009
|
+
)
|
|
1010
|
+
|
|
1011
|
+
# Get a batch
|
|
1012
|
+
batch = client.v2.get_batch('batch_123')
|
|
1013
|
+
|
|
1014
|
+
# Create a batch
|
|
1015
|
+
batch = client.v2.create_batch(
|
|
1016
|
+
name="My New Batch",
|
|
1017
|
+
project="project_123"
|
|
1018
|
+
)
|
|
1019
|
+
|
|
1020
|
+
# Finalize a batch
|
|
1021
|
+
batch = client.v2.finalize_batch('batch_123')
|
|
1022
|
+
|
|
969
1023
|
|
|
970
1024
|
Troubleshooting
|
|
971
1025
|
_______________
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.18.0"
|
|
2
2
|
__package_name__ = "scaleapi"
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
# flake8: noqa
|
|
4
4
|
|
|
5
5
|
"""
|
|
6
|
-
GenAI API Spec
|
|
6
|
+
GenAI API Spec
|
|
7
7
|
|
|
8
|
-
Data Engine: Generative AI API Specification
|
|
8
|
+
Data Engine: Generative AI API Specification
|
|
9
9
|
|
|
10
|
-
The version of the OpenAPI document: 0.0.1
|
|
11
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
The version of the OpenAPI document: 0.0.1
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
12
|
|
|
13
|
-
Do not edit the class manually.
|
|
13
|
+
Do not edit the class manually.
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
@@ -33,63 +33,48 @@ from scaleapi.api_client.v2.exceptions import ApiException
|
|
|
33
33
|
# import models into sdk package
|
|
34
34
|
from scaleapi.api_client.v2.models.annotation import Annotation
|
|
35
35
|
from scaleapi.api_client.v2.models.annotation_boolean import AnnotationBoolean
|
|
36
|
-
from scaleapi.api_client.v2.models.annotation_boolean_properties import
|
|
37
|
-
AnnotationBooleanProperties,
|
|
38
|
-
)
|
|
36
|
+
from scaleapi.api_client.v2.models.annotation_boolean_properties import AnnotationBooleanProperties
|
|
39
37
|
from scaleapi.api_client.v2.models.annotation_category import AnnotationCategory
|
|
40
|
-
from scaleapi.api_client.v2.models.annotation_category_multiple import
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
from scaleapi.api_client.v2.models.annotation_category_multiple_properties import (
|
|
44
|
-
AnnotationCategoryMultipleProperties,
|
|
45
|
-
)
|
|
46
|
-
from scaleapi.api_client.v2.models.annotation_category_properties import (
|
|
47
|
-
AnnotationCategoryProperties,
|
|
48
|
-
)
|
|
38
|
+
from scaleapi.api_client.v2.models.annotation_category_multiple import AnnotationCategoryMultiple
|
|
39
|
+
from scaleapi.api_client.v2.models.annotation_category_multiple_properties import AnnotationCategoryMultipleProperties
|
|
40
|
+
from scaleapi.api_client.v2.models.annotation_category_properties import AnnotationCategoryProperties
|
|
49
41
|
from scaleapi.api_client.v2.models.annotation_file import AnnotationFile
|
|
50
|
-
from scaleapi.api_client.v2.models.annotation_file_properties import
|
|
51
|
-
|
|
52
|
-
)
|
|
53
|
-
from scaleapi.api_client.v2.models.annotation_file_properties_value import (
|
|
54
|
-
AnnotationFilePropertiesValue,
|
|
55
|
-
)
|
|
42
|
+
from scaleapi.api_client.v2.models.annotation_file_properties import AnnotationFileProperties
|
|
43
|
+
from scaleapi.api_client.v2.models.annotation_file_properties_value import AnnotationFilePropertiesValue
|
|
56
44
|
from scaleapi.api_client.v2.models.annotation_integer import AnnotationInteger
|
|
57
|
-
from scaleapi.api_client.v2.models.annotation_integer_properties import
|
|
58
|
-
|
|
59
|
-
|
|
45
|
+
from scaleapi.api_client.v2.models.annotation_integer_properties import AnnotationIntegerProperties
|
|
46
|
+
from scaleapi.api_client.v2.models.annotation_labeled_text import AnnotationLabeledText
|
|
47
|
+
from scaleapi.api_client.v2.models.annotation_labeled_text_properties import AnnotationLabeledTextProperties
|
|
60
48
|
from scaleapi.api_client.v2.models.annotation_metadata import AnnotationMetadata
|
|
61
|
-
from scaleapi.api_client.v2.models.annotation_ranked_choices import
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
from scaleapi.api_client.v2.models.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
from scaleapi.api_client.v2.models.
|
|
68
|
-
|
|
69
|
-
)
|
|
70
|
-
from scaleapi.api_client.v2.models.annotation_ranked_groups_properties import (
|
|
71
|
-
AnnotationRankedGroupsProperties,
|
|
72
|
-
)
|
|
49
|
+
from scaleapi.api_client.v2.models.annotation_ranked_choices import AnnotationRankedChoices
|
|
50
|
+
from scaleapi.api_client.v2.models.annotation_ranked_choices_properties import AnnotationRankedChoicesProperties
|
|
51
|
+
from scaleapi.api_client.v2.models.annotation_ranked_groups import AnnotationRankedGroups
|
|
52
|
+
from scaleapi.api_client.v2.models.annotation_ranked_groups_properties import AnnotationRankedGroupsProperties
|
|
53
|
+
from scaleapi.api_client.v2.models.annotation_rubric_criteria import AnnotationRubricCriteria
|
|
54
|
+
from scaleapi.api_client.v2.models.annotation_rubric_criteria_properties import AnnotationRubricCriteriaProperties
|
|
55
|
+
from scaleapi.api_client.v2.models.annotation_rubric_rating import AnnotationRubricRating
|
|
56
|
+
from scaleapi.api_client.v2.models.annotation_rubric_rating_properties import AnnotationRubricRatingProperties
|
|
73
57
|
from scaleapi.api_client.v2.models.annotation_text import AnnotationText
|
|
74
|
-
from scaleapi.api_client.v2.models.annotation_text_properties import
|
|
75
|
-
AnnotationTextProperties,
|
|
76
|
-
)
|
|
58
|
+
from scaleapi.api_client.v2.models.annotation_text_properties import AnnotationTextProperties
|
|
77
59
|
from scaleapi.api_client.v2.models.annotation_type import AnnotationType
|
|
78
|
-
from scaleapi.api_client.v2.models.annotation_workspace_container import
|
|
79
|
-
|
|
80
|
-
)
|
|
81
|
-
from scaleapi.api_client.v2.models.annotation_workspace_container_properties import (
|
|
82
|
-
AnnotationWorkspaceContainerProperties,
|
|
83
|
-
)
|
|
60
|
+
from scaleapi.api_client.v2.models.annotation_workspace_container import AnnotationWorkspaceContainer
|
|
61
|
+
from scaleapi.api_client.v2.models.annotation_workspace_container_properties import AnnotationWorkspaceContainerProperties
|
|
84
62
|
from scaleapi.api_client.v2.models.audio_file import AudioFile
|
|
85
63
|
from scaleapi.api_client.v2.models.base_annotation import BaseAnnotation
|
|
86
64
|
from scaleapi.api_client.v2.models.base_chunk import BaseChunk
|
|
87
65
|
from scaleapi.api_client.v2.models.basic_file import BasicFile
|
|
88
66
|
from scaleapi.api_client.v2.models.batch import Batch
|
|
67
|
+
from scaleapi.api_client.v2.models.batch_operation_request import BatchOperationRequest
|
|
68
|
+
from scaleapi.api_client.v2.models.batch_status import BatchStatus
|
|
69
|
+
from scaleapi.api_client.v2.models.cancel_batch200_response import CancelBatch200Response
|
|
89
70
|
from scaleapi.api_client.v2.models.chunk import Chunk
|
|
90
71
|
from scaleapi.api_client.v2.models.chunk_text import ChunkText
|
|
91
72
|
from scaleapi.api_client.v2.models.chunk_text_properties import ChunkTextProperties
|
|
92
73
|
from scaleapi.api_client.v2.models.content_and_url import ContentAndUrl
|
|
74
|
+
from scaleapi.api_client.v2.models.create_batch_request import CreateBatchRequest
|
|
75
|
+
from scaleapi.api_client.v2.models.create_chat_task_request import CreateChatTaskRequest
|
|
76
|
+
from scaleapi.api_client.v2.models.criterion_definition import CriterionDefinition
|
|
77
|
+
from scaleapi.api_client.v2.models.criterion_evaluation import CriterionEvaluation
|
|
93
78
|
from scaleapi.api_client.v2.models.delivery import Delivery
|
|
94
79
|
from scaleapi.api_client.v2.models.detailed_file import DetailedFile
|
|
95
80
|
from scaleapi.api_client.v2.models.error_detail import ErrorDetail
|
|
@@ -98,56 +83,47 @@ from scaleapi.api_client.v2.models.expandable import Expandable
|
|
|
98
83
|
from scaleapi.api_client.v2.models.expandable_annotation import ExpandableAnnotation
|
|
99
84
|
from scaleapi.api_client.v2.models.expandable_batch import ExpandableBatch
|
|
100
85
|
from scaleapi.api_client.v2.models.expandable_delivery import ExpandableDelivery
|
|
101
|
-
from scaleapi.api_client.v2.models.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
from scaleapi.api_client.v2.models.expandable_enum_delivery import (
|
|
105
|
-
ExpandableEnumDelivery,
|
|
106
|
-
)
|
|
86
|
+
from scaleapi.api_client.v2.models.expandable_enum_batch import ExpandableEnumBatch
|
|
87
|
+
from scaleapi.api_client.v2.models.expandable_enum_deliveries import ExpandableEnumDeliveries
|
|
88
|
+
from scaleapi.api_client.v2.models.expandable_enum_delivery import ExpandableEnumDelivery
|
|
107
89
|
from scaleapi.api_client.v2.models.expandable_enum_task import ExpandableEnumTask
|
|
108
90
|
from scaleapi.api_client.v2.models.expandable_project import ExpandableProject
|
|
109
|
-
from scaleapi.api_client.v2.models.
|
|
110
|
-
|
|
111
|
-
|
|
91
|
+
from scaleapi.api_client.v2.models.gen_ai_project_type import GenAIProjectType
|
|
92
|
+
from scaleapi.api_client.v2.models.get_batch500_response import GetBatch500Response
|
|
93
|
+
from scaleapi.api_client.v2.models.get_batches_response import GetBatchesResponse
|
|
94
|
+
from scaleapi.api_client.v2.models.get_delivered_tasks_response import GetDeliveredTasksResponse
|
|
112
95
|
from scaleapi.api_client.v2.models.get_deliveries_response import GetDeliveriesResponse
|
|
113
|
-
from scaleapi.api_client.v2.models.
|
|
96
|
+
from scaleapi.api_client.v2.models.get_projects_response import GetProjectsResponse
|
|
114
97
|
from scaleapi.api_client.v2.models.get_tasks_response import GetTasksResponse
|
|
115
98
|
from scaleapi.api_client.v2.models.image_file import ImageFile
|
|
99
|
+
from scaleapi.api_client.v2.models.labeled_text_value import LabeledTextValue
|
|
116
100
|
from scaleapi.api_client.v2.models.message import Message
|
|
117
101
|
from scaleapi.api_client.v2.models.message_content import MessageContent
|
|
118
102
|
from scaleapi.api_client.v2.models.message_role import MessageRole
|
|
119
103
|
from scaleapi.api_client.v2.models.model_parameters import ModelParameters
|
|
120
104
|
from scaleapi.api_client.v2.models.option import Option
|
|
105
|
+
from scaleapi.api_client.v2.models.pause_batch200_response import PauseBatch200Response
|
|
121
106
|
from scaleapi.api_client.v2.models.project import Project
|
|
122
107
|
from scaleapi.api_client.v2.models.reasoning import Reasoning
|
|
123
108
|
from scaleapi.api_client.v2.models.reference_text import ReferenceText
|
|
124
|
-
from scaleapi.api_client.v2.models.
|
|
125
|
-
|
|
126
|
-
|
|
109
|
+
from scaleapi.api_client.v2.models.resume_batch200_response import ResumeBatch200Response
|
|
110
|
+
from scaleapi.api_client.v2.models.rubric import Rubric
|
|
111
|
+
from scaleapi.api_client.v2.models.rubric_criteria_value import RubricCriteriaValue
|
|
112
|
+
from scaleapi.api_client.v2.models.rubric_evaluation import RubricEvaluation
|
|
113
|
+
from scaleapi.api_client.v2.models.rubric_rating_value import RubricRatingValue
|
|
114
|
+
from scaleapi.api_client.v2.models.sensitive_content_report import SensitiveContentReport
|
|
115
|
+
from scaleapi.api_client.v2.models.set_batch_metadata_request import SetBatchMetadataRequest
|
|
116
|
+
from scaleapi.api_client.v2.models.set_task_metadata_request import SetTaskMetadataRequest
|
|
127
117
|
from scaleapi.api_client.v2.models.submission import Submission
|
|
128
118
|
from scaleapi.api_client.v2.models.task import Task
|
|
129
119
|
from scaleapi.api_client.v2.models.task_status import TaskStatus
|
|
130
120
|
from scaleapi.api_client.v2.models.thread import Thread
|
|
131
121
|
from scaleapi.api_client.v2.models.turn import Turn
|
|
132
|
-
from scaleapi.api_client.v2.models.v1_task_task_id_get200_response import
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
from scaleapi.api_client.v2.models.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
from scaleapi.api_client.v2.models.
|
|
139
|
-
WorkspaceContainerConfig,
|
|
140
|
-
)
|
|
141
|
-
from scaleapi.api_client.v2.models.workspace_container_value import (
|
|
142
|
-
WorkspaceContainerValue,
|
|
143
|
-
)
|
|
144
|
-
from scaleapi.api_client.v2.models.workspace_execution_data import (
|
|
145
|
-
WorkspaceExecutionData,
|
|
146
|
-
)
|
|
147
|
-
from scaleapi.api_client.v2.models.workspace_execution_data_result import (
|
|
148
|
-
WorkspaceExecutionDataResult,
|
|
149
|
-
)
|
|
150
|
-
from scaleapi.api_client.v2.models.workspace_execution_data_result_status import (
|
|
151
|
-
WorkspaceExecutionDataResultStatus,
|
|
152
|
-
)
|
|
122
|
+
from scaleapi.api_client.v2.models.v1_task_task_id_get200_response import V1TaskTaskIdGet200Response
|
|
123
|
+
from scaleapi.api_client.v2.models.v1_task_task_id_get200_response_response import V1TaskTaskIdGet200ResponseResponse
|
|
124
|
+
from scaleapi.api_client.v2.models.workspace_container_config import WorkspaceContainerConfig
|
|
125
|
+
from scaleapi.api_client.v2.models.workspace_container_value import WorkspaceContainerValue
|
|
126
|
+
from scaleapi.api_client.v2.models.workspace_execution_data import WorkspaceExecutionData
|
|
127
|
+
from scaleapi.api_client.v2.models.workspace_execution_data_result import WorkspaceExecutionDataResult
|
|
128
|
+
from scaleapi.api_client.v2.models.workspace_execution_data_result_status import WorkspaceExecutionDataResultStatus
|
|
153
129
|
from scaleapi.api_client.v2.models.workspace_file import WorkspaceFile
|