rapidata 2.37.0__py3-none-any.whl → 3.0.0a8__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 rapidata might be problematic. Click here for more details.
- rapidata/__init__.py +23 -15
- rapidata/api_client/__init__.py +84 -427
- rapidata/api_client/api/__init__.py +5 -2
- rapidata/api_client/api/asset_api.py +853 -0
- rapidata/api_client/api/audience_api.py +2505 -0
- rapidata/api_client/api/benchmark_api.py +618 -253
- rapidata/api_client/api/campaign_api.py +322 -32
- rapidata/api_client/api/client_api.py +38 -33
- rapidata/api_client/api/compare_workflow_api.py +11 -10
- rapidata/api_client/api/customer_rapid_api.py +119 -125
- rapidata/api_client/api/datapoint_api.py +8 -6
- rapidata/api_client/api/dataset_api.py +240 -1516
- rapidata/api_client/api/evaluation_workflow_api.py +29 -82
- rapidata/api_client/api/feedback_api.py +11 -11
- rapidata/api_client/api/grouped_ranking_workflow_api.py +319 -0
- rapidata/api_client/api/identity_api.py +26 -300
- rapidata/api_client/api/job_api.py +3902 -0
- rapidata/api_client/api/job_definition_api.py +319 -0
- rapidata/api_client/api/job_revision_api.py +335 -0
- rapidata/api_client/api/leaderboard_api.py +139 -2355
- rapidata/api_client/api/newsletter_api.py +20 -19
- rapidata/api_client/api/order_api.py +375 -91
- rapidata/api_client/api/participant_api.py +80 -118
- rapidata/api_client/api/pipeline_api.py +24 -607
- rapidata/api_client/api/prompt_api.py +11 -11
- rapidata/api_client/api/rapidata_identity_api_api.py +5 -4
- rapidata/api_client/api/sample_api.py +5 -4
- rapidata/api_client/api/simple_workflow_api.py +11 -10
- rapidata/api_client/api/survey_api.py +304 -0
- rapidata/api_client/api/user_rapid_api.py +35 -31
- rapidata/api_client/api/validation_set_api.py +337 -2043
- rapidata/api_client/api/workflow_api.py +32 -26
- rapidata/api_client/api_client.py +2 -2
- rapidata/api_client/configuration.py +16 -29
- rapidata/api_client/exceptions.py +2 -2
- rapidata/api_client/models/__init__.py +65 -400
- rapidata/api_client/models/ab_test_selection_a_inner.py +1 -1
- rapidata/api_client/models/add_rapid_to_audience_model.py +144 -0
- rapidata/api_client/models/add_user_response_result.py +10 -5
- rapidata/api_client/models/add_validation_rapid_model.py +34 -36
- rapidata/api_client/models/add_validation_rapid_model_asset.py +154 -0
- rapidata/api_client/models/add_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/add_validation_rapid_model_metadata_inner.py +140 -0
- rapidata/api_client/models/add_validation_rapid_new_model.py +137 -0
- rapidata/api_client/models/add_validation_rapid_new_model_asset.py +182 -0
- rapidata/api_client/models/add_validation_rapid_new_model_truth.py +286 -0
- rapidata/api_client/models/age_user_filter_model.py +2 -2
- rapidata/api_client/models/age_user_filter_model_age_group.py +41 -0
- rapidata/api_client/models/aggregated_orders_model.py +98 -0
- rapidata/api_client/models/aggregator_type.py +4 -2
- rapidata/api_client/models/and_filter_filters_inner.py +24 -10
- rapidata/api_client/models/are_rapids_active_result.py +2 -2
- rapidata/api_client/models/asset_metadata.py +2 -8
- rapidata/api_client/models/attach_category_rapid_blueprint.py +13 -3
- rapidata/api_client/models/attach_category_rapid_blueprint_category.py +89 -0
- rapidata/api_client/models/audience_job_state.py +38 -0
- rapidata/api_client/models/audience_status.py +39 -0
- rapidata/api_client/models/benchmark_query_result.py +5 -3
- rapidata/api_client/models/boost_leaderboard_model.py +5 -5
- rapidata/api_client/models/boost_query_result.py +4 -4
- rapidata/api_client/models/boost_query_result_boost_mode.py +37 -0
- rapidata/api_client/models/boost_query_result_boost_status.py +39 -0
- rapidata/api_client/models/boosting_profile.py +91 -0
- rapidata/api_client/models/box_shape.py +4 -33
- rapidata/api_client/models/campaign_query_result.py +13 -5
- rapidata/api_client/models/campaign_status.py +2 -2
- rapidata/api_client/models/change_boost_model.py +5 -5
- rapidata/api_client/models/classify_payload.py +14 -15
- rapidata/api_client/models/classify_payload_category.py +89 -0
- rapidata/api_client/models/client_model.py +25 -35
- rapidata/api_client/models/clients_query_result.py +5 -5
- rapidata/api_client/models/clone_order_model.py +4 -4
- rapidata/api_client/models/clone_order_result.py +9 -4
- rapidata/api_client/models/compare_workflow_config.py +19 -18
- rapidata/api_client/models/compare_workflow_config_context_asset.py +174 -0
- rapidata/api_client/models/compare_workflow_config_model.py +3 -3
- rapidata/api_client/models/compare_workflow_model.py +25 -7
- rapidata/api_client/models/compare_workflow_model1.py +20 -9
- rapidata/api_client/models/compare_workflow_model_context_asset.py +160 -0
- rapidata/api_client/models/compare_workflow_model_metadata_inner.py +154 -0
- rapidata/api_client/models/compare_workflow_model_pair_maker_config.py +1 -1
- rapidata/api_client/models/comparison_operator.py +2 -2
- rapidata/api_client/models/conditional_validation_selection.py +6 -11
- rapidata/api_client/models/conditional_validation_selection_validation_chance.py +103 -0
- rapidata/api_client/models/confidence_interval.py +89 -0
- rapidata/api_client/models/create_audience_request.py +122 -0
- rapidata/api_client/models/create_audience_result.py +87 -0
- rapidata/api_client/models/create_benchmark_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_model.py +5 -5
- rapidata/api_client/models/create_benchmark_participant_result.py +4 -4
- rapidata/api_client/models/create_benchmark_prompt_result.py +87 -0
- rapidata/api_client/models/create_benchmark_result.py +2 -2
- rapidata/api_client/models/create_bridge_token_result.py +2 -2
- rapidata/api_client/models/create_client_model.py +6 -13
- rapidata/api_client/models/create_complex_order_model.py +9 -9
- rapidata/api_client/models/create_complex_order_result.py +2 -2
- rapidata/api_client/models/create_customer_client_result.py +2 -2
- rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
- rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
- rapidata/api_client/models/create_datapoint_model.py +124 -0
- rapidata/api_client/models/create_datapoint_model_asset.py +154 -0
- rapidata/api_client/models/create_datapoint_model_context_asset.py +160 -0
- rapidata/api_client/models/create_datapoint_model_metadata_inner.py +154 -0
- rapidata/api_client/models/create_datapoint_result.py +2 -2
- rapidata/api_client/models/create_dataset_endpoint_input.py +87 -0
- rapidata/api_client/models/create_dataset_endpoint_output.py +87 -0
- rapidata/api_client/models/create_demographic_rapid_model.py +33 -10
- rapidata/api_client/models/create_demographic_rapid_model_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/create_demographic_rapid_model_new.py +119 -0
- rapidata/api_client/models/create_empty_validation_set_result.py +2 -2
- rapidata/api_client/models/create_job_definition_endpoint_input.py +119 -0
- rapidata/api_client/models/create_job_definition_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_endpoint_input.py +100 -0
- rapidata/api_client/models/create_job_endpoint_output.py +89 -0
- rapidata/api_client/models/create_job_revision_endpoint_input.py +127 -0
- rapidata/api_client/models/create_job_revision_endpoint_output.py +89 -0
- rapidata/api_client/models/create_leaderboard_model.py +23 -26
- rapidata/api_client/models/create_leaderboard_result.py +2 -2
- rapidata/api_client/models/create_order_definition_model.py +119 -0
- rapidata/api_client/models/create_order_definition_result.py +87 -0
- rapidata/api_client/models/create_order_definition_revision_model.py +117 -0
- rapidata/api_client/models/create_order_definition_revision_result.py +87 -0
- rapidata/api_client/models/create_order_model.py +33 -62
- rapidata/api_client/models/create_order_model_referee.py +12 -12
- rapidata/api_client/models/create_order_model_workflow.py +35 -21
- rapidata/api_client/models/create_order_result.py +2 -2
- rapidata/api_client/models/create_rapid_result.py +2 -2
- rapidata/api_client/models/create_sample_model.py +13 -7
- rapidata/api_client/models/create_sample_model_asset.py +154 -0
- rapidata/api_client/models/create_sample_model_obsolete.py +87 -0
- rapidata/api_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +8 -22
- rapidata/api_client/models/create_unsupported_order_model.py +6 -6
- rapidata/api_client/models/create_validation_set_model.py +5 -5
- rapidata/api_client/models/datapoint_model.py +3 -3
- rapidata/api_client/models/datapoint_state.py +2 -2
- rapidata/api_client/models/definition_type.py +49 -0
- rapidata/api_client/models/dynamic_client_registration_request.py +21 -36
- rapidata/api_client/models/early_stopping_referee_model.py +3 -3
- rapidata/api_client/models/elo_config.py +2 -2
- rapidata/api_client/models/elo_config_model.py +6 -6
- rapidata/api_client/models/entity_tag_header_value.py +93 -0
- rapidata/api_client/models/evaluation_workflow_model.py +4 -4
- rapidata/api_client/models/existing_asset_input.py +109 -0
- rapidata/api_client/models/existing_asset_input_metadata_value.py +126 -0
- rapidata/api_client/models/feature_flag.py +2 -2
- rapidata/api_client/models/feature_flag_model.py +2 -2
- rapidata/api_client/models/feedback_model.py +7 -7
- rapidata/api_client/models/file_asset.py +3 -5
- rapidata/api_client/models/file_asset_input_file.py +8 -22
- rapidata/api_client/models/file_asset_metadata_value.py +252 -0
- rapidata/api_client/models/file_asset_model_metadata_value.py +18 -88
- rapidata/api_client/models/file_stream_result.py +122 -0
- rapidata/api_client/models/file_type.py +2 -2
- rapidata/api_client/models/filter.py +2 -2
- rapidata/api_client/models/filter_operator.py +2 -2
- rapidata/api_client/models/fork_benchmark_result.py +87 -0
- rapidata/api_client/models/form_file_wrapper.py +17 -2
- rapidata/api_client/models/gender_user_filter_model.py +2 -2
- rapidata/api_client/models/gender_user_filter_model_gender.py +38 -0
- rapidata/api_client/models/get_asset_metadata_result.py +100 -0
- rapidata/api_client/models/get_audience_by_id_result.py +118 -0
- rapidata/api_client/models/get_available_validation_sets_result.py +2 -2
- rapidata/api_client/models/get_benchmark_by_id_result.py +8 -4
- rapidata/api_client/models/get_boost_result.py +97 -0
- rapidata/api_client/models/get_boost_result_boost_mode.py +37 -0
- rapidata/api_client/models/get_boost_result_boost_status.py +39 -0
- rapidata/api_client/models/get_compare_ab_summary_result.py +3 -5
- rapidata/api_client/models/get_compare_workflow_results_model.py +7 -7
- rapidata/api_client/models/get_compare_workflow_results_result.py +5 -5
- rapidata/api_client/models/get_datapoint_by_id_result.py +7 -12
- rapidata/api_client/models/get_datapoint_by_id_result_asset.py +170 -0
- rapidata/api_client/models/get_dataset_by_id_result.py +2 -2
- rapidata/api_client/models/get_dataset_progress_result.py +2 -2
- rapidata/api_client/models/get_evaluation_workflow_results_model.py +119 -0
- rapidata/api_client/models/get_failed_datapoints_result.py +5 -5
- rapidata/api_client/models/get_failed_datapoints_result_datapoint.py +100 -0
- rapidata/api_client/models/get_file_metadata_result.py +100 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_model.py +106 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result.py +97 -0
- rapidata/api_client/models/get_grouped_ranking_workflow_results_result_paged_result.py +105 -0
- rapidata/api_client/models/get_job_by_id_endpoint_output.py +130 -0
- rapidata/api_client/models/get_job_definition_by_id_endpoint_output.py +95 -0
- rapidata/api_client/models/get_job_revision_endpoint_output.py +133 -0
- rapidata/api_client/models/get_leaderboard_by_id_result.py +5 -5
- rapidata/api_client/models/get_order_by_id_result.py +12 -5
- rapidata/api_client/models/get_participant_by_id_result.py +4 -6
- rapidata/api_client/models/get_pipeline_by_id_result.py +5 -5
- rapidata/api_client/models/get_public_orders_result.py +2 -2
- rapidata/api_client/models/get_public_responses_result.py +5 -5
- rapidata/api_client/models/get_public_responses_result_response.py +112 -0
- rapidata/api_client/models/get_rapid_responses_result.py +3 -3
- rapidata/api_client/models/get_recommended_validation_set_result.py +2 -2
- rapidata/api_client/models/get_responses_for_rapid_result.py +106 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response.py +103 -0
- rapidata/api_client/models/get_responses_for_rapid_result_response_result.py +266 -0
- rapidata/api_client/models/get_responses_result.py +5 -5
- rapidata/api_client/models/get_responses_result_response.py +103 -0
- rapidata/api_client/models/get_sample_by_id_result.py +7 -8
- rapidata/api_client/models/get_simple_workflow_results_model.py +20 -15
- rapidata/api_client/models/get_standing_by_id_result.py +3 -5
- rapidata/api_client/models/get_validation_rapids_result.py +29 -32
- rapidata/api_client/models/get_validation_set_by_id_result.py +10 -4
- rapidata/api_client/models/get_workflow_by_id_result.py +5 -5
- rapidata/api_client/models/get_workflow_by_id_result_workflow.py +23 -9
- rapidata/api_client/models/get_workflow_progress_result.py +2 -2
- rapidata/api_client/models/get_workflow_results_result.py +31 -14
- rapidata/api_client/models/get_workflow_results_result_response.py +103 -0
- rapidata/api_client/models/google_one_tap_login_model.py +4 -4
- rapidata/api_client/models/grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/grouped_ranking_workflow_config_context_assets_value.py +170 -0
- rapidata/api_client/models/grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/grouped_ranking_workflow_model1.py +121 -0
- rapidata/api_client/models/i_artifact_model.py +182 -0
- rapidata/api_client/models/i_artifact_model_campaign_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_dataset_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_file_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_artifact_model.py +98 -0
- rapidata/api_client/models/i_artifact_model_workflow_config_artifact_model.py +102 -0
- rapidata/api_client/models/i_asset.py +170 -0
- rapidata/api_client/models/i_asset_file_asset.py +111 -0
- rapidata/api_client/models/i_asset_input.py +156 -0
- rapidata/api_client/models/i_asset_input_existing_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_input_multi_asset_input.py +128 -0
- rapidata/api_client/models/i_asset_input_text_asset_input.py +118 -0
- rapidata/api_client/models/i_asset_model.py +170 -0
- rapidata/api_client/models/i_asset_model_file_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_model_multi_asset_model.py +123 -0
- rapidata/api_client/models/i_asset_model_null_asset_model.py +111 -0
- rapidata/api_client/models/i_asset_model_text_asset_model.py +113 -0
- rapidata/api_client/models/i_asset_multi_asset.py +121 -0
- rapidata/api_client/models/i_asset_null_asset.py +109 -0
- rapidata/api_client/models/i_asset_text_asset.py +111 -0
- rapidata/api_client/models/i_audience_filter.py +184 -0
- rapidata/api_client/models/i_audience_filter_and_audience_filter.py +106 -0
- rapidata/api_client/models/i_audience_filter_country_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_country_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_audience_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_language_filter.py +96 -0
- rapidata/api_client/models/i_audience_filter_not_audience_filter.py +102 -0
- rapidata/api_client/models/i_audience_filter_or_audience_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter.py +296 -0
- rapidata/api_client/models/i_campaign_filter_and_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_campaign_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_campaign_session_count_filter.py +101 -0
- rapidata/api_client/models/i_campaign_filter_country_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_demographic_filter.py +100 -0
- rapidata/api_client/models/i_campaign_filter_device_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_language_filter.py +98 -0
- rapidata/api_client/models/i_campaign_filter_new_user_filter.py +96 -0
- rapidata/api_client/models/i_campaign_filter_not_filter.py +113 -0
- rapidata/api_client/models/i_campaign_filter_or_filter.py +117 -0
- rapidata/api_client/models/i_campaign_filter_response_count_filter.py +103 -0
- rapidata/api_client/models/i_campaign_filter_user_action_restriction_filter.py +106 -0
- rapidata/api_client/models/i_campaign_filter_user_score_filter.py +102 -0
- rapidata/api_client/models/i_campaign_filter_user_state_filter.py +106 -0
- rapidata/api_client/models/i_dataset_metadata_input.py +154 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_dataset_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_metadata_input_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/i_dataset_model.py +126 -0
- rapidata/api_client/models/i_dataset_model_clone_dataset_model.py +98 -0
- rapidata/api_client/models/i_metadata.py +252 -0
- rapidata/api_client/models/i_metadata_classification_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_count_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_duration_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_file_type_metadata.py +110 -0
- rapidata/api_client/models/i_metadata_image_dimension_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_input.py +126 -0
- rapidata/api_client/models/i_metadata_input_text_metadata_input.py +111 -0
- rapidata/api_client/models/i_metadata_location_metadata.py +111 -0
- rapidata/api_client/models/i_metadata_model.py +252 -0
- rapidata/api_client/models/i_metadata_model_classification_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_count_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_file_type_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_model_image_dimension_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_location_metadata_model.py +98 -0
- rapidata/api_client/models/i_metadata_model_original_filename_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_source_url_metadata_model.py +96 -0
- rapidata/api_client/models/i_metadata_model_streams_metadata_model.py +100 -0
- rapidata/api_client/models/i_metadata_model_text_metadata_model.py +101 -0
- rapidata/api_client/models/i_metadata_model_video_duration_metadata_model.py +97 -0
- rapidata/api_client/models/i_metadata_original_filename_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_source_url_metadata.py +109 -0
- rapidata/api_client/models/i_metadata_streams_metadata.py +113 -0
- rapidata/api_client/models/i_metadata_text_metadata.py +114 -0
- rapidata/api_client/models/i_metadata_video_duration_metadata.py +110 -0
- rapidata/api_client/models/i_order_workflow_model.py +168 -0
- rapidata/api_client/models/i_order_workflow_model_compare_workflow_model.py +146 -0
- rapidata/api_client/models/i_order_workflow_model_evaluation_workflow_model.py +108 -0
- rapidata/api_client/models/i_order_workflow_model_grouped_ranking_workflow_model.py +147 -0
- rapidata/api_client/models/i_order_workflow_model_simple_workflow_model.py +110 -0
- rapidata/api_client/models/i_pair_maker_config.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model.py +126 -0
- rapidata/api_client/models/i_pair_maker_config_model_online_pair_maker_config_model.py +98 -0
- rapidata/api_client/models/i_pair_maker_config_online_pair_maker_config.py +98 -0
- rapidata/api_client/models/i_pair_maker_information.py +126 -0
- rapidata/api_client/models/i_pair_maker_information_online_pair_maker_information.py +100 -0
- rapidata/api_client/models/i_pipeline_artifact_model.py +126 -0
- rapidata/api_client/models/i_pipeline_artifact_model_create_dataset_artifact_model.py +102 -0
- rapidata/api_client/models/i_pipeline_model.py +126 -0
- rapidata/api_client/models/i_pipeline_model_create_simple_pipeline_model.py +116 -0
- rapidata/api_client/models/i_pipeline_step_model.py +168 -0
- rapidata/api_client/models/i_pipeline_step_model_dataset_evaluation_step_model.py +102 -0
- rapidata/api_client/models/i_pipeline_step_model_send_completion_mail_step_model.py +98 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_aggregation_step_model.py +103 -0
- rapidata/api_client/models/i_pipeline_step_model_workflow_labeling_step_model.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint.py +252 -0
- rapidata/api_client/models/i_rapid_blueprint_attach_category_rapid_blueprint.py +108 -0
- rapidata/api_client/models/i_rapid_blueprint_bounding_box_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_compare_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_free_text_rapid_blueprint.py +105 -0
- rapidata/api_client/models/i_rapid_blueprint_line_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_locate_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_named_entity_rapid_blueprint.py +98 -0
- rapidata/api_client/models/i_rapid_blueprint_polygon_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_scrub_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_blueprint_transcription_rapid_blueprint.py +96 -0
- rapidata/api_client/models/i_rapid_payload.py +252 -0
- rapidata/api_client/models/i_rapid_payload_bounding_box_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_classify_payload.py +106 -0
- rapidata/api_client/models/i_rapid_payload_compare_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_free_text_payload.py +105 -0
- rapidata/api_client/models/i_rapid_payload_line_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_locate_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_named_entity_payload.py +98 -0
- rapidata/api_client/models/i_rapid_payload_polygon_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_scrub_payload.py +96 -0
- rapidata/api_client/models/i_rapid_payload_transcription_payload.py +106 -0
- rapidata/api_client/models/i_rapid_result.py +266 -0
- rapidata/api_client/models/i_rapid_result_attach_category_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_bounding_box_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_compare_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_free_text_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_line_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_locate_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_named_entity_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_polygon_result.py +106 -0
- rapidata/api_client/models/i_rapid_result_scrub_result.py +98 -0
- rapidata/api_client/models/i_rapid_result_skip_result.py +96 -0
- rapidata/api_client/models/i_rapid_result_transcription_result.py +106 -0
- rapidata/api_client/models/i_referee_config.py +154 -0
- rapidata/api_client/models/i_referee_config_naive_referee_config.py +96 -0
- rapidata/api_client/models/i_referee_config_never_ending_referee_config.py +94 -0
- rapidata/api_client/models/i_referee_config_probabilistic_attach_category_referee_config.py +98 -0
- rapidata/api_client/models/i_referee_info.py +154 -0
- rapidata/api_client/models/i_referee_info_naive_referee_info.py +96 -0
- rapidata/api_client/models/i_referee_info_never_ending_referee_info.py +94 -0
- rapidata/api_client/models/i_referee_info_probabilistic_attach_category_referee_info.py +98 -0
- rapidata/api_client/models/i_referee_model.py +140 -0
- rapidata/api_client/models/i_referee_model_early_stopping_referee_model.py +98 -0
- rapidata/api_client/models/i_referee_model_naive_referee_model.py +96 -0
- rapidata/api_client/models/i_selection.py +240 -0
- rapidata/api_client/models/i_selection_ab_test_selection.py +122 -0
- rapidata/api_client/models/i_selection_capped_selection.py +108 -0
- rapidata/api_client/models/i_selection_conditional_validation_selection.py +110 -0
- rapidata/api_client/models/i_selection_demographic_selection.py +98 -0
- rapidata/api_client/models/i_selection_effort_capped_selection.py +101 -0
- rapidata/api_client/models/i_selection_labeling_selection.py +103 -0
- rapidata/api_client/models/i_selection_shuffling_selection.py +106 -0
- rapidata/api_client/models/i_selection_static_selection.py +96 -0
- rapidata/api_client/models/i_selection_validation_selection.py +98 -0
- rapidata/api_client/models/i_user_filter_model.py +296 -0
- rapidata/api_client/models/i_user_filter_model_age_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_and_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_campaign_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_country_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_custom_user_filter_model.py +98 -0
- rapidata/api_client/models/i_user_filter_model_device_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_gender_user_filter_model.py +104 -0
- rapidata/api_client/models/i_user_filter_model_language_user_filter_model.py +96 -0
- rapidata/api_client/models/i_user_filter_model_new_user_filter_model.py +94 -0
- rapidata/api_client/models/i_user_filter_model_not_user_filter_model.py +102 -0
- rapidata/api_client/models/i_user_filter_model_or_user_filter_model.py +106 -0
- rapidata/api_client/models/i_user_filter_model_response_count_user_filter_model.py +101 -0
- rapidata/api_client/models/i_user_filter_model_user_score_user_filter_model.py +105 -0
- rapidata/api_client/models/i_validation_metadata_input.py +140 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/i_validation_metadata_input_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/i_validation_truth.py +280 -0
- rapidata/api_client/models/i_validation_truth_attach_category_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_bounding_box_truth.py +102 -0
- rapidata/api_client/models/i_validation_truth_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_empty_validation_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_line_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_locate_box_truth.py +108 -0
- rapidata/api_client/models/i_validation_truth_model.py +294 -0
- rapidata/api_client/models/i_validation_truth_model_attach_category_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_bounding_box_truth_model.py +102 -0
- rapidata/api_client/models/i_validation_truth_model_classify_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_empty_validation_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_line_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_locate_box_truth_model.py +108 -0
- rapidata/api_client/models/i_validation_truth_model_multi_compare_truth_model.py +96 -0
- rapidata/api_client/models/i_validation_truth_model_named_entity_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_polygon_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_scrub_truth_model.py +104 -0
- rapidata/api_client/models/i_validation_truth_model_skip_truth_model.py +94 -0
- rapidata/api_client/models/i_validation_truth_model_transcription_truth_model.py +115 -0
- rapidata/api_client/models/i_validation_truth_multi_compare_truth.py +96 -0
- rapidata/api_client/models/i_validation_truth_named_entity_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_polygon_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_scrub_truth.py +104 -0
- rapidata/api_client/models/i_validation_truth_skip_truth.py +94 -0
- rapidata/api_client/models/i_validation_truth_transcription_truth.py +115 -0
- rapidata/api_client/models/i_workflow_config.py +168 -0
- rapidata/api_client/models/i_workflow_config_compare_workflow_config.py +142 -0
- rapidata/api_client/models/i_workflow_config_evaluation_workflow_config.py +114 -0
- rapidata/api_client/models/i_workflow_config_grouped_ranking_workflow_config.py +155 -0
- rapidata/api_client/models/i_workflow_config_simple_workflow_config.py +116 -0
- rapidata/api_client/models/i_workflow_model.py +168 -0
- rapidata/api_client/models/i_workflow_model_compare_workflow_model.py +145 -0
- rapidata/api_client/models/i_workflow_model_evaluation_workflow_model.py +115 -0
- rapidata/api_client/models/i_workflow_model_grouped_ranking_workflow_model.py +121 -0
- rapidata/api_client/models/i_workflow_model_simple_workflow_model.py +119 -0
- rapidata/api_client/models/inquire_file_metadata_result.py +100 -0
- rapidata/api_client/models/inspect_report_result.py +2 -2
- rapidata/api_client/models/job_definition_revision_state.py +38 -0
- rapidata/api_client/models/json_web_key.py +2 -36
- rapidata/api_client/models/json_web_key_set.py +2 -22
- rapidata/api_client/models/labeling_selection.py +9 -2
- rapidata/api_client/models/leaderboards_query_result.py +135 -0
- rapidata/api_client/models/line_result.py +3 -3
- rapidata/api_client/models/line_result_line.py +97 -0
- rapidata/api_client/models/line_result_line_point.py +89 -0
- rapidata/api_client/models/locate_coordinate.py +4 -13
- rapidata/api_client/models/logic_operator.py +2 -2
- rapidata/api_client/models/metadata_i_order_metadata_input.py +154 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_i_order_metadata_input_metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_prompt_asset_metadata_input.py +100 -0
- rapidata/api_client/models/metadata_prompt_metadata_input.py +96 -0
- rapidata/api_client/models/metadata_transcription_metadata_input.py +96 -0
- rapidata/api_client/models/multi_asset.py +6 -6
- rapidata/api_client/models/multi_asset_assets_inner.py +170 -0
- rapidata/api_client/models/multi_asset_input.py +21 -1
- rapidata/api_client/models/multi_asset_input1_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input3_assets_inner.py +40 -12
- rapidata/api_client/models/multi_asset_input_assets_inner.py +16 -30
- rapidata/api_client/models/multi_asset_model.py +3 -3
- rapidata/api_client/models/naive_referee_model.py +2 -2
- rapidata/api_client/models/named_classification.py +4 -13
- rapidata/api_client/models/newsletter_model.py +6 -6
- rapidata/api_client/models/not_available_yet_result.py +4 -13
- rapidata/api_client/models/null_asset.py +3 -5
- rapidata/api_client/models/online_pair_maker_config_model.py +3 -3
- rapidata/api_client/models/option_of_aggregator_type.py +49 -0
- rapidata/api_client/models/order_model.py +12 -5
- rapidata/api_client/models/order_state.py +2 -2
- rapidata/api_client/models/page_info.py +2 -7
- rapidata/api_client/models/paged_result_aggregated_orders_model.py +105 -0
- rapidata/api_client/models/paged_result_benchmark_query_result.py +105 -0
- rapidata/api_client/models/paged_result_campaign_query_result.py +105 -0
- rapidata/api_client/models/paged_result_clients_query_result.py +105 -0
- rapidata/api_client/models/paged_result_datapoint_model.py +105 -0
- rapidata/api_client/models/paged_result_get_compare_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_grouped_ranking_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_get_validation_rapids_result.py +105 -0
- rapidata/api_client/models/paged_result_get_workflow_results_result.py +105 -0
- rapidata/api_client/models/paged_result_i_workflow_model.py +105 -0
- rapidata/api_client/models/paged_result_leaderboard_query_result.py +105 -0
- rapidata/api_client/models/paged_result_leaderboards_query_result.py +105 -0
- rapidata/api_client/models/paged_result_of_aggregated_orders_model.py +103 -0
- rapidata/api_client/models/paged_result_of_benchmark_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_campaign_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_clients_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_compare_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_grouped_ranking_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_validation_rapids_result.py +103 -0
- rapidata/api_client/models/paged_result_of_get_workflow_results_result.py +103 -0
- rapidata/api_client/models/paged_result_of_i_workflow_model.py +103 -0
- rapidata/api_client/models/paged_result_of_leaderboards_query_result.py +103 -0
- rapidata/api_client/models/paged_result_of_order_model.py +103 -0
- rapidata/api_client/models/paged_result_of_participant_by_benchmark.py +103 -0
- rapidata/api_client/models/paged_result_of_prompt_by_benchmark_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_audiences_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_datapoints_by_dataset_id_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_definitions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_job_revisions_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_jobs_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_rapids_for_audience_result.py +103 -0
- rapidata/api_client/models/paged_result_of_query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/paged_result_of_rapid_model.py +103 -0
- rapidata/api_client/models/paged_result_of_runs_by_leaderboard_result.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_identifier.py +103 -0
- rapidata/api_client/models/paged_result_of_sample_by_participant.py +103 -0
- rapidata/api_client/models/paged_result_of_standing_by_leaderboard.py +103 -0
- rapidata/api_client/models/paged_result_of_validation_set_model.py +103 -0
- rapidata/api_client/models/paged_result_order_model.py +105 -0
- rapidata/api_client/models/paged_result_participant_by_benchmark.py +105 -0
- rapidata/api_client/models/paged_result_potential_validation_rapid.py +105 -0
- rapidata/api_client/models/paged_result_prompt_by_benchmark_result.py +105 -0
- rapidata/api_client/models/paged_result_query_audiences_result.py +105 -0
- rapidata/api_client/models/paged_result_query_datapoints_by_dataset_id_result.py +105 -0
- rapidata/api_client/models/paged_result_query_validation_rapid_eligibility_result.py +105 -0
- rapidata/api_client/models/paged_result_rapid_model.py +105 -0
- rapidata/api_client/models/paged_result_runs_by_leaderboard_result.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_identifier.py +105 -0
- rapidata/api_client/models/paged_result_sample_by_participant.py +105 -0
- rapidata/api_client/models/paged_result_standing_by_leaderboard.py +105 -0
- rapidata/api_client/models/paged_result_validation_set_model.py +105 -0
- rapidata/api_client/models/participant_by_benchmark.py +3 -5
- rapidata/api_client/models/participant_status.py +2 -2
- rapidata/api_client/models/polygon_result.py +3 -3
- rapidata/api_client/models/polygon_result_coordinate.py +89 -0
- rapidata/api_client/models/polygon_result_shape.py +95 -0
- rapidata/api_client/models/preliminary_download_model.py +5 -5
- rapidata/api_client/models/preview_order_model.py +5 -5
- rapidata/api_client/models/problem_details.py +2 -20
- rapidata/api_client/models/prompt_asset_metadata_input.py +4 -6
- rapidata/api_client/models/prompt_asset_metadata_input_asset.py +25 -41
- rapidata/api_client/models/prompt_by_benchmark_result.py +5 -5
- rapidata/api_client/models/prompt_metadata_input.py +5 -7
- rapidata/api_client/models/proxy_file_wrapper.py +17 -2
- rapidata/api_client/models/public_order_model.py +2 -2
- rapidata/api_client/models/query_audiences_result.py +118 -0
- rapidata/api_client/models/query_datapoints_by_dataset_id_result.py +95 -0
- rapidata/api_client/models/query_job_definitions_result.py +97 -0
- rapidata/api_client/models/query_job_revisions_result.py +95 -0
- rapidata/api_client/models/query_jobs_result.py +103 -0
- rapidata/api_client/models/query_model.py +10 -5
- rapidata/api_client/models/query_rapids_for_audience_result.py +150 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_model_query_validation_model.py +107 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result.py +103 -0
- rapidata/api_client/models/query_validation_rapid_eligibility_result_truth.py +280 -0
- rapidata/api_client/models/rapid_issue.py +2 -2
- rapidata/api_client/models/rapid_model.py +30 -40
- rapidata/api_client/models/rapid_result_model.py +7 -7
- rapidata/api_client/models/rapid_skipped_model.py +5 -5
- rapidata/api_client/models/rapid_state.py +2 -2
- rapidata/api_client/models/read_bridge_token_keys_result.py +10 -24
- rapidata/api_client/models/reference_asset_input.py +100 -0
- rapidata/api_client/models/report_model.py +7 -7
- rapidata/api_client/models/retrieval_mode.py +2 -2
- rapidata/api_client/models/root_filter.py +2 -2
- rapidata/api_client/models/run_status.py +2 -2
- rapidata/api_client/models/runs_by_leaderboard_result.py +3 -3
- rapidata/api_client/models/sample_by_identifier.py +7 -8
- rapidata/api_client/models/sample_by_participant.py +7 -8
- rapidata/api_client/models/scrub_range.py +2 -2
- rapidata/api_client/models/send_survey_model.py +87 -0
- rapidata/api_client/models/simple_workflow_config.py +3 -3
- rapidata/api_client/models/simple_workflow_model.py +2 -2
- rapidata/api_client/models/simple_workflow_model1.py +4 -11
- rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
- rapidata/api_client/models/sort_criterion.py +2 -2
- rapidata/api_client/models/sort_direction.py +2 -2
- rapidata/api_client/models/standing_by_benchmark.py +113 -0
- rapidata/api_client/models/standing_by_leaderboard.py +16 -12
- rapidata/api_client/models/standing_status.py +2 -2
- rapidata/api_client/models/standings_by_benchmark_result.py +95 -0
- rapidata/api_client/models/standings_by_leaderboard_result.py +2 -2
- rapidata/api_client/models/start_preliminary_download_result.py +87 -0
- rapidata/api_client/models/sticky_state.py +3 -2
- rapidata/api_client/models/stream_file_wrapper.py +25 -3
- rapidata/api_client/models/string_segment.py +105 -0
- rapidata/api_client/models/submit_order_model.py +5 -5
- rapidata/api_client/models/submit_participant_result.py +2 -2
- rapidata/api_client/models/submit_prompt_model.py +9 -14
- rapidata/api_client/models/submit_prompt_model_prompt_asset.py +40 -12
- rapidata/api_client/models/tags_by_benchmark_result.py +2 -2
- rapidata/api_client/models/text_asset.py +3 -5
- rapidata/api_client/models/text_asset_input.py +21 -1
- rapidata/api_client/models/text_metadata.py +6 -1
- rapidata/api_client/models/text_metadata_input.py +111 -0
- rapidata/api_client/models/text_metadata_model.py +7 -2
- rapidata/api_client/models/transcription_metadata_input.py +5 -7
- rapidata/api_client/models/transcription_word.py +2 -2
- rapidata/api_client/models/translated_string.py +2 -2
- rapidata/api_client/models/unlock_order_result.py +2 -2
- rapidata/api_client/models/update_audience_request.py +113 -0
- rapidata/api_client/models/update_benchmark_model.py +99 -0
- rapidata/api_client/models/update_benchmark_name_model.py +5 -5
- rapidata/api_client/models/update_campaign_model.py +11 -11
- rapidata/api_client/models/update_dataset_name_model.py +5 -5
- rapidata/api_client/models/update_dimensions_model.py +3 -3
- rapidata/api_client/models/update_job_definition_endpoint_input.py +92 -0
- rapidata/api_client/models/update_leaderboard_model.py +18 -3
- rapidata/api_client/models/update_leaderboard_name_model.py +5 -5
- rapidata/api_client/models/update_leaderboard_response_config_model.py +5 -5
- rapidata/api_client/models/update_order_name_model.py +5 -5
- rapidata/api_client/models/update_participant_model.py +92 -0
- rapidata/api_client/models/update_participant_name_model.py +5 -5
- rapidata/api_client/models/update_priority_model.py +87 -0
- rapidata/api_client/models/update_prompt_tags_model.py +5 -5
- rapidata/api_client/models/update_should_alert_model.py +4 -4
- rapidata/api_client/models/update_validation_rapid_model.py +35 -14
- rapidata/api_client/models/update_validation_rapid_model_context_asset.py +160 -0
- rapidata/api_client/models/update_validation_set_model.py +120 -0
- rapidata/api_client/models/upload_asset_result.py +102 -0
- rapidata/api_client/models/upload_file_from_url_result.py +87 -0
- rapidata/api_client/models/upload_file_result.py +87 -0
- rapidata/api_client/models/user_action_restriction.py +37 -0
- rapidata/api_client/models/user_action_restriction_filter.py +101 -0
- rapidata/api_client/models/validation_chance.py +20 -3
- rapidata/api_client/models/validation_problem_details.py +117 -0
- rapidata/api_client/models/validation_set_model.py +11 -16
- rapidata/api_client/models/validation_set_overview_model.py +2 -2
- rapidata/api_client/models/workflow_config_artifact_model_workflow_config.py +23 -9
- rapidata/api_client/models/workflow_state.py +2 -2
- rapidata/api_client/models/zip_entry_file_wrapper.py +33 -2
- rapidata/api_client/rest.py +2 -2
- rapidata/api_client_README.md +371 -326
- rapidata/rapidata_client/__init__.py +14 -11
- rapidata/rapidata_client/api/{rapidata_exception.py → rapidata_api_client.py} +119 -2
- rapidata/rapidata_client/audience/__init__.py +2 -0
- rapidata/rapidata_client/audience/audience_example_handler.py +168 -0
- rapidata/rapidata_client/audience/rapidata_audience.py +287 -0
- rapidata/rapidata_client/audience/rapidata_audience_manager.py +162 -0
- rapidata/rapidata_client/benchmark/_detail_mapper.py +11 -9
- rapidata/rapidata_client/benchmark/leaderboard/rapidata_leaderboard.py +98 -54
- rapidata/rapidata_client/benchmark/participant/_participant.py +57 -32
- rapidata/rapidata_client/benchmark/rapidata_benchmark.py +384 -246
- rapidata/rapidata_client/benchmark/rapidata_benchmark_manager.py +137 -81
- rapidata/rapidata_client/config/__init__.py +3 -0
- rapidata/rapidata_client/config/logger.py +135 -0
- rapidata/rapidata_client/config/logging_config.py +55 -0
- rapidata/rapidata_client/config/managed_print.py +6 -0
- rapidata/rapidata_client/config/order_config.py +14 -0
- rapidata/rapidata_client/config/rapidata_config.py +15 -10
- rapidata/rapidata_client/config/tracer.py +184 -0
- rapidata/rapidata_client/config/upload_config.py +64 -0
- rapidata/rapidata_client/datapoints/__init__.py +0 -3
- rapidata/rapidata_client/datapoints/_asset_uploader.py +184 -0
- rapidata/rapidata_client/datapoints/_datapoint.py +72 -176
- rapidata/rapidata_client/datapoints/_datapoint_uploader.py +47 -0
- rapidata/rapidata_client/datapoints/_datapoints_validator.py +70 -0
- rapidata/rapidata_client/datapoints/assets/__init__.py +0 -10
- rapidata/rapidata_client/datapoints/metadata/__init__.py +0 -2
- rapidata/rapidata_client/datapoints/metadata/_private_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_prompt_identifier_metadata.py +4 -5
- rapidata/rapidata_client/datapoints/metadata/_public_text_metadata.py +5 -6
- rapidata/rapidata_client/datapoints/metadata/_select_words_metadata.py +3 -4
- rapidata/rapidata_client/dataset/__init__.py +1 -0
- rapidata/rapidata_client/dataset/_rapidata_dataset.py +55 -0
- rapidata/rapidata_client/demographic/demographic_manager.py +44 -19
- rapidata/rapidata_client/exceptions/failed_upload_exception.py +10 -65
- rapidata/rapidata_client/filter/_backend_filter_mapper.py +134 -0
- rapidata/rapidata_client/filter/_base_filter.py +13 -8
- rapidata/rapidata_client/filter/age_filter.py +26 -10
- rapidata/rapidata_client/filter/and_filter.py +36 -11
- rapidata/rapidata_client/filter/campaign_filter.py +21 -10
- rapidata/rapidata_client/filter/country_filter.py +46 -12
- rapidata/rapidata_client/filter/custom_filter.py +25 -12
- rapidata/rapidata_client/filter/gender_filter.py +25 -10
- rapidata/rapidata_client/filter/language_filter.py +51 -21
- rapidata/rapidata_client/filter/models/age_group.py +14 -12
- rapidata/rapidata_client/filter/models/gender.py +12 -8
- rapidata/rapidata_client/filter/new_user_filter.py +14 -4
- rapidata/rapidata_client/filter/not_filter.py +35 -11
- rapidata/rapidata_client/filter/or_filter.py +36 -11
- rapidata/rapidata_client/filter/rapidata_filters.py +17 -23
- rapidata/rapidata_client/filter/response_count_filter.py +40 -14
- rapidata/rapidata_client/filter/user_score_filter.py +62 -24
- rapidata/rapidata_client/job/__init__.py +3 -0
- rapidata/rapidata_client/job/job_definition.py +110 -0
- rapidata/rapidata_client/job/job_manager.py +758 -0
- rapidata/rapidata_client/job/rapidata_job.py +326 -0
- rapidata/rapidata_client/order/__init__.py +2 -0
- rapidata/rapidata_client/order/_rapidata_order_builder.py +236 -196
- rapidata/rapidata_client/order/rapidata_order.py +271 -176
- rapidata/rapidata_client/order/rapidata_order_manager.py +520 -364
- rapidata/rapidata_client/rapidata_client.py +96 -29
- rapidata/rapidata_client/referee/__init__.py +1 -1
- rapidata/rapidata_client/referee/_base_referee.py +14 -3
- rapidata/rapidata_client/referee/_early_stopping_referee.py +32 -17
- rapidata/rapidata_client/referee/_naive_referee.py +24 -3
- rapidata/rapidata_client/results/__init__.py +3 -0
- rapidata/rapidata_client/{order → results}/rapidata_results.py +86 -63
- rapidata/rapidata_client/selection/_base_selection.py +9 -2
- rapidata/rapidata_client/selection/ab_test_selection.py +28 -20
- rapidata/rapidata_client/selection/capped_selection.py +23 -16
- rapidata/rapidata_client/selection/conditional_validation_selection.py +43 -24
- rapidata/rapidata_client/selection/demographic_selection.py +21 -6
- rapidata/rapidata_client/selection/effort_selection.py +20 -8
- rapidata/rapidata_client/selection/labeling_selection.py +21 -10
- rapidata/rapidata_client/selection/rapidata_selections.py +23 -14
- rapidata/rapidata_client/selection/shuffling_selection.py +21 -13
- rapidata/rapidata_client/selection/static_selection.py +19 -8
- rapidata/rapidata_client/selection/validation_selection.py +20 -4
- rapidata/rapidata_client/settings/__init__.py +2 -0
- rapidata/rapidata_client/settings/_rapidata_setting.py +22 -3
- rapidata/rapidata_client/settings/alert_on_fast_response.py +8 -5
- rapidata/rapidata_client/settings/allow_neither_both.py +3 -0
- rapidata/rapidata_client/settings/custom_setting.py +3 -2
- rapidata/rapidata_client/settings/free_text_minimum_characters.py +9 -4
- rapidata/rapidata_client/settings/models/translation_behaviour_options.py +3 -2
- rapidata/rapidata_client/settings/mute_video.py +15 -0
- rapidata/rapidata_client/settings/no_shuffle.py +4 -2
- rapidata/rapidata_client/settings/play_video_until_the_end.py +7 -4
- rapidata/rapidata_client/settings/rapidata_settings.py +22 -9
- rapidata/rapidata_client/settings/swap_context_instruction.py +20 -0
- rapidata/rapidata_client/settings/translation_behaviour.py +7 -5
- rapidata/rapidata_client/utils/__init__.py +3 -0
- rapidata/rapidata_client/utils/threaded_uploader.py +153 -0
- rapidata/rapidata_client/validation/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapidata_validation_set.py +68 -21
- rapidata/rapidata_client/validation/rapids/__init__.py +2 -0
- rapidata/rapidata_client/validation/rapids/_validation_rapid_uploader.py +48 -0
- rapidata/rapidata_client/validation/rapids/box.py +37 -12
- rapidata/rapidata_client/validation/rapids/rapids.py +28 -109
- rapidata/rapidata_client/validation/rapids/rapids_manager.py +369 -211
- rapidata/rapidata_client/validation/validation_set_manager.py +417 -294
- rapidata/rapidata_client/workflow/__init__.py +2 -2
- rapidata/rapidata_client/workflow/_base_workflow.py +17 -26
- rapidata/rapidata_client/workflow/_classify_workflow.py +44 -17
- rapidata/rapidata_client/workflow/_compare_workflow.py +33 -14
- rapidata/rapidata_client/workflow/_draw_workflow.py +35 -13
- rapidata/rapidata_client/workflow/_evaluation_workflow.py +20 -6
- rapidata/rapidata_client/workflow/_free_text_workflow.py +34 -15
- rapidata/rapidata_client/workflow/_locate_workflow.py +35 -13
- rapidata/rapidata_client/workflow/_multi_ranking_workflow.py +90 -0
- rapidata/rapidata_client/workflow/_select_words_workflow.py +38 -32
- rapidata/rapidata_client/workflow/_timestamp_workflow.py +35 -13
- rapidata/service/__init__.py +0 -1
- rapidata/service/credential_manager.py +1 -1
- rapidata/service/openapi_service.py +99 -23
- rapidata/types/__init__.py +149 -0
- rapidata-3.0.0a8.dist-info/METADATA +32 -0
- rapidata-3.0.0a8.dist-info/RECORD +1083 -0
- {rapidata-2.37.0.dist-info → rapidata-3.0.0a8.dist-info}/WHEEL +1 -1
- rapidata/rapidata_client/country_codes/__init__.py +0 -1
- rapidata/rapidata_client/country_codes/country_codes.py +0 -19
- rapidata/rapidata_client/datapoints/assets/_base_asset.py +0 -11
- rapidata/rapidata_client/datapoints/assets/_media_asset.py +0 -318
- rapidata/rapidata_client/datapoints/assets/_multi_asset.py +0 -61
- rapidata/rapidata_client/datapoints/assets/_sessions.py +0 -40
- rapidata/rapidata_client/datapoints/assets/_text_asset.py +0 -34
- rapidata/rapidata_client/datapoints/assets/data_type_enum.py +0 -8
- rapidata/rapidata_client/datapoints/metadata/_media_asset_metadata.py +0 -22
- rapidata/rapidata_client/datapoints/metadata/_prompt_metadata.py +0 -18
- rapidata/rapidata_client/logging/__init__.py +0 -2
- rapidata/rapidata_client/logging/logger.py +0 -122
- rapidata/rapidata_client/logging/output_manager.py +0 -20
- rapidata/rapidata_client/order/_rapidata_dataset.py +0 -447
- rapidata/rapidata_client/workflow/_ranking_workflow.py +0 -71
- rapidata/service/local_file_service.py +0 -25
- rapidata-2.37.0.dist-info/METADATA +0 -35
- rapidata-2.37.0.dist-info/RECORD +0 -687
- {rapidata-2.37.0.dist-info → rapidata-3.0.0a8.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
Rapidata
|
|
4
|
+
Rapidata Asset API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
The API for the Rapidata Asset service
|
|
7
7
|
|
|
8
8
|
The version of the OpenAPI document: v1
|
|
9
9
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
@@ -16,23 +16,26 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
16
16
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field, StrictStr
|
|
20
|
-
from typing import Optional
|
|
19
|
+
from pydantic import Field, StrictBool, StrictStr
|
|
20
|
+
from typing import List, Optional
|
|
21
21
|
from typing_extensions import Annotated
|
|
22
|
-
from rapidata.api_client.models.benchmark_query_result_paged_result import BenchmarkQueryResultPagedResult
|
|
23
22
|
from rapidata.api_client.models.create_benchmark_model import CreateBenchmarkModel
|
|
24
23
|
from rapidata.api_client.models.create_benchmark_participant_model import CreateBenchmarkParticipantModel
|
|
25
24
|
from rapidata.api_client.models.create_benchmark_participant_result import CreateBenchmarkParticipantResult
|
|
25
|
+
from rapidata.api_client.models.create_benchmark_prompt_result import CreateBenchmarkPromptResult
|
|
26
26
|
from rapidata.api_client.models.create_benchmark_result import CreateBenchmarkResult
|
|
27
|
+
from rapidata.api_client.models.fork_benchmark_result import ForkBenchmarkResult
|
|
27
28
|
from rapidata.api_client.models.get_benchmark_by_id_result import GetBenchmarkByIdResult
|
|
28
|
-
from rapidata.api_client.models.
|
|
29
|
-
from rapidata.api_client.models.
|
|
29
|
+
from rapidata.api_client.models.paged_result_of_benchmark_query_result import PagedResultOfBenchmarkQueryResult
|
|
30
|
+
from rapidata.api_client.models.paged_result_of_leaderboards_query_result import PagedResultOfLeaderboardsQueryResult
|
|
31
|
+
from rapidata.api_client.models.paged_result_of_participant_by_benchmark import PagedResultOfParticipantByBenchmark
|
|
32
|
+
from rapidata.api_client.models.paged_result_of_prompt_by_benchmark_result import PagedResultOfPromptByBenchmarkResult
|
|
33
|
+
from rapidata.api_client.models.paged_result_of_sample_by_identifier import PagedResultOfSampleByIdentifier
|
|
30
34
|
from rapidata.api_client.models.query_model import QueryModel
|
|
31
|
-
from rapidata.api_client.models.
|
|
32
|
-
from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
|
|
35
|
+
from rapidata.api_client.models.standings_by_benchmark_result import StandingsByBenchmarkResult
|
|
33
36
|
from rapidata.api_client.models.submit_prompt_model import SubmitPromptModel
|
|
34
37
|
from rapidata.api_client.models.tags_by_benchmark_result import TagsByBenchmarkResult
|
|
35
|
-
from rapidata.api_client.models.
|
|
38
|
+
from rapidata.api_client.models.update_benchmark_model import UpdateBenchmarkModel
|
|
36
39
|
|
|
37
40
|
from rapidata.api_client.api_client import ApiClient, RequestSerialized
|
|
38
41
|
from rapidata.api_client.api_response import ApiResponse
|
|
@@ -282,8 +285,9 @@ class BenchmarkApi:
|
|
|
282
285
|
|
|
283
286
|
# authentication setting
|
|
284
287
|
_auth_settings: List[str] = [
|
|
285
|
-
'
|
|
286
|
-
'
|
|
288
|
+
'OAuth2',
|
|
289
|
+
'OpenIdConnect',
|
|
290
|
+
'Bearer'
|
|
287
291
|
]
|
|
288
292
|
|
|
289
293
|
return self.api_client.param_serialize(
|
|
@@ -305,7 +309,7 @@ class BenchmarkApi:
|
|
|
305
309
|
|
|
306
310
|
|
|
307
311
|
@validate_call
|
|
308
|
-
def
|
|
312
|
+
def benchmark_benchmark_id_fork_post(
|
|
309
313
|
self,
|
|
310
314
|
benchmark_id: StrictStr,
|
|
311
315
|
_request_timeout: Union[
|
|
@@ -320,8 +324,8 @@ class BenchmarkApi:
|
|
|
320
324
|
_content_type: Optional[StrictStr] = None,
|
|
321
325
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
322
326
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
323
|
-
) ->
|
|
324
|
-
"""
|
|
327
|
+
) -> ForkBenchmarkResult:
|
|
328
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
325
329
|
|
|
326
330
|
|
|
327
331
|
:param benchmark_id: (required)
|
|
@@ -348,7 +352,7 @@ class BenchmarkApi:
|
|
|
348
352
|
:return: Returns the result object.
|
|
349
353
|
""" # noqa: E501
|
|
350
354
|
|
|
351
|
-
_param = self.
|
|
355
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
352
356
|
benchmark_id=benchmark_id,
|
|
353
357
|
_request_auth=_request_auth,
|
|
354
358
|
_content_type=_content_type,
|
|
@@ -357,7 +361,7 @@ class BenchmarkApi:
|
|
|
357
361
|
)
|
|
358
362
|
|
|
359
363
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
360
|
-
'200': "
|
|
364
|
+
'200': "ForkBenchmarkResult",
|
|
361
365
|
}
|
|
362
366
|
response_data = self.api_client.call_api(
|
|
363
367
|
*_param,
|
|
@@ -371,7 +375,7 @@ class BenchmarkApi:
|
|
|
371
375
|
|
|
372
376
|
|
|
373
377
|
@validate_call
|
|
374
|
-
def
|
|
378
|
+
def benchmark_benchmark_id_fork_post_with_http_info(
|
|
375
379
|
self,
|
|
376
380
|
benchmark_id: StrictStr,
|
|
377
381
|
_request_timeout: Union[
|
|
@@ -386,8 +390,8 @@ class BenchmarkApi:
|
|
|
386
390
|
_content_type: Optional[StrictStr] = None,
|
|
387
391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
388
392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
389
|
-
) -> ApiResponse[
|
|
390
|
-
"""
|
|
393
|
+
) -> ApiResponse[ForkBenchmarkResult]:
|
|
394
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
391
395
|
|
|
392
396
|
|
|
393
397
|
:param benchmark_id: (required)
|
|
@@ -414,7 +418,7 @@ class BenchmarkApi:
|
|
|
414
418
|
:return: Returns the result object.
|
|
415
419
|
""" # noqa: E501
|
|
416
420
|
|
|
417
|
-
_param = self.
|
|
421
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
418
422
|
benchmark_id=benchmark_id,
|
|
419
423
|
_request_auth=_request_auth,
|
|
420
424
|
_content_type=_content_type,
|
|
@@ -423,7 +427,7 @@ class BenchmarkApi:
|
|
|
423
427
|
)
|
|
424
428
|
|
|
425
429
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
426
|
-
'200': "
|
|
430
|
+
'200': "ForkBenchmarkResult",
|
|
427
431
|
}
|
|
428
432
|
response_data = self.api_client.call_api(
|
|
429
433
|
*_param,
|
|
@@ -437,7 +441,7 @@ class BenchmarkApi:
|
|
|
437
441
|
|
|
438
442
|
|
|
439
443
|
@validate_call
|
|
440
|
-
def
|
|
444
|
+
def benchmark_benchmark_id_fork_post_without_preload_content(
|
|
441
445
|
self,
|
|
442
446
|
benchmark_id: StrictStr,
|
|
443
447
|
_request_timeout: Union[
|
|
@@ -453,7 +457,7 @@ class BenchmarkApi:
|
|
|
453
457
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
454
458
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
455
459
|
) -> RESTResponseType:
|
|
456
|
-
"""
|
|
460
|
+
"""Creates a copy of a public benchmark and all of its related entities
|
|
457
461
|
|
|
458
462
|
|
|
459
463
|
:param benchmark_id: (required)
|
|
@@ -480,7 +484,7 @@ class BenchmarkApi:
|
|
|
480
484
|
:return: Returns the result object.
|
|
481
485
|
""" # noqa: E501
|
|
482
486
|
|
|
483
|
-
_param = self.
|
|
487
|
+
_param = self._benchmark_benchmark_id_fork_post_serialize(
|
|
484
488
|
benchmark_id=benchmark_id,
|
|
485
489
|
_request_auth=_request_auth,
|
|
486
490
|
_content_type=_content_type,
|
|
@@ -489,7 +493,7 @@ class BenchmarkApi:
|
|
|
489
493
|
)
|
|
490
494
|
|
|
491
495
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
492
|
-
'200': "
|
|
496
|
+
'200': "ForkBenchmarkResult",
|
|
493
497
|
}
|
|
494
498
|
response_data = self.api_client.call_api(
|
|
495
499
|
*_param,
|
|
@@ -498,7 +502,7 @@ class BenchmarkApi:
|
|
|
498
502
|
return response_data.response
|
|
499
503
|
|
|
500
504
|
|
|
501
|
-
def
|
|
505
|
+
def _benchmark_benchmark_id_fork_post_serialize(
|
|
502
506
|
self,
|
|
503
507
|
benchmark_id,
|
|
504
508
|
_request_auth,
|
|
@@ -543,13 +547,14 @@ class BenchmarkApi:
|
|
|
543
547
|
|
|
544
548
|
# authentication setting
|
|
545
549
|
_auth_settings: List[str] = [
|
|
546
|
-
'
|
|
547
|
-
'
|
|
550
|
+
'OAuth2',
|
|
551
|
+
'OpenIdConnect',
|
|
552
|
+
'Bearer'
|
|
548
553
|
]
|
|
549
554
|
|
|
550
555
|
return self.api_client.param_serialize(
|
|
551
|
-
method='
|
|
552
|
-
resource_path='/benchmark/{benchmarkId}',
|
|
556
|
+
method='POST',
|
|
557
|
+
resource_path='/benchmark/{benchmarkId}/fork',
|
|
553
558
|
path_params=_path_params,
|
|
554
559
|
query_params=_query_params,
|
|
555
560
|
header_params=_header_params,
|
|
@@ -566,10 +571,9 @@ class BenchmarkApi:
|
|
|
566
571
|
|
|
567
572
|
|
|
568
573
|
@validate_call
|
|
569
|
-
def
|
|
574
|
+
def benchmark_benchmark_id_get(
|
|
570
575
|
self,
|
|
571
576
|
benchmark_id: StrictStr,
|
|
572
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
573
577
|
_request_timeout: Union[
|
|
574
578
|
None,
|
|
575
579
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -582,14 +586,12 @@ class BenchmarkApi:
|
|
|
582
586
|
_content_type: Optional[StrictStr] = None,
|
|
583
587
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
584
588
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
585
|
-
) ->
|
|
586
|
-
"""
|
|
589
|
+
) -> GetBenchmarkByIdResult:
|
|
590
|
+
"""Returns a single benchmark by its ID.
|
|
587
591
|
|
|
588
592
|
|
|
589
593
|
:param benchmark_id: (required)
|
|
590
594
|
:type benchmark_id: str
|
|
591
|
-
:param update_benchmark_name_model:
|
|
592
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
593
595
|
:param _request_timeout: timeout setting for this request. If one
|
|
594
596
|
number provided, it will be total request
|
|
595
597
|
timeout. It can also be a pair (tuple) of
|
|
@@ -612,9 +614,8 @@ class BenchmarkApi:
|
|
|
612
614
|
:return: Returns the result object.
|
|
613
615
|
""" # noqa: E501
|
|
614
616
|
|
|
615
|
-
_param = self.
|
|
617
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
616
618
|
benchmark_id=benchmark_id,
|
|
617
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
618
619
|
_request_auth=_request_auth,
|
|
619
620
|
_content_type=_content_type,
|
|
620
621
|
_headers=_headers,
|
|
@@ -622,7 +623,7 @@ class BenchmarkApi:
|
|
|
622
623
|
)
|
|
623
624
|
|
|
624
625
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
625
|
-
'
|
|
626
|
+
'200': "GetBenchmarkByIdResult",
|
|
626
627
|
}
|
|
627
628
|
response_data = self.api_client.call_api(
|
|
628
629
|
*_param,
|
|
@@ -636,10 +637,9 @@ class BenchmarkApi:
|
|
|
636
637
|
|
|
637
638
|
|
|
638
639
|
@validate_call
|
|
639
|
-
def
|
|
640
|
+
def benchmark_benchmark_id_get_with_http_info(
|
|
640
641
|
self,
|
|
641
642
|
benchmark_id: StrictStr,
|
|
642
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
643
643
|
_request_timeout: Union[
|
|
644
644
|
None,
|
|
645
645
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -652,14 +652,12 @@ class BenchmarkApi:
|
|
|
652
652
|
_content_type: Optional[StrictStr] = None,
|
|
653
653
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
654
654
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
655
|
-
) -> ApiResponse[
|
|
656
|
-
"""
|
|
655
|
+
) -> ApiResponse[GetBenchmarkByIdResult]:
|
|
656
|
+
"""Returns a single benchmark by its ID.
|
|
657
657
|
|
|
658
658
|
|
|
659
659
|
:param benchmark_id: (required)
|
|
660
660
|
:type benchmark_id: str
|
|
661
|
-
:param update_benchmark_name_model:
|
|
662
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
663
661
|
:param _request_timeout: timeout setting for this request. If one
|
|
664
662
|
number provided, it will be total request
|
|
665
663
|
timeout. It can also be a pair (tuple) of
|
|
@@ -682,9 +680,8 @@ class BenchmarkApi:
|
|
|
682
680
|
:return: Returns the result object.
|
|
683
681
|
""" # noqa: E501
|
|
684
682
|
|
|
685
|
-
_param = self.
|
|
683
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
686
684
|
benchmark_id=benchmark_id,
|
|
687
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
688
685
|
_request_auth=_request_auth,
|
|
689
686
|
_content_type=_content_type,
|
|
690
687
|
_headers=_headers,
|
|
@@ -692,7 +689,7 @@ class BenchmarkApi:
|
|
|
692
689
|
)
|
|
693
690
|
|
|
694
691
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
695
|
-
'
|
|
692
|
+
'200': "GetBenchmarkByIdResult",
|
|
696
693
|
}
|
|
697
694
|
response_data = self.api_client.call_api(
|
|
698
695
|
*_param,
|
|
@@ -706,10 +703,9 @@ class BenchmarkApi:
|
|
|
706
703
|
|
|
707
704
|
|
|
708
705
|
@validate_call
|
|
709
|
-
def
|
|
706
|
+
def benchmark_benchmark_id_get_without_preload_content(
|
|
710
707
|
self,
|
|
711
708
|
benchmark_id: StrictStr,
|
|
712
|
-
update_benchmark_name_model: Optional[UpdateBenchmarkNameModel] = None,
|
|
713
709
|
_request_timeout: Union[
|
|
714
710
|
None,
|
|
715
711
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -723,13 +719,11 @@ class BenchmarkApi:
|
|
|
723
719
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
724
720
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
725
721
|
) -> RESTResponseType:
|
|
726
|
-
"""
|
|
722
|
+
"""Returns a single benchmark by its ID.
|
|
727
723
|
|
|
728
724
|
|
|
729
725
|
:param benchmark_id: (required)
|
|
730
726
|
:type benchmark_id: str
|
|
731
|
-
:param update_benchmark_name_model:
|
|
732
|
-
:type update_benchmark_name_model: UpdateBenchmarkNameModel
|
|
733
727
|
:param _request_timeout: timeout setting for this request. If one
|
|
734
728
|
number provided, it will be total request
|
|
735
729
|
timeout. It can also be a pair (tuple) of
|
|
@@ -752,9 +746,8 @@ class BenchmarkApi:
|
|
|
752
746
|
:return: Returns the result object.
|
|
753
747
|
""" # noqa: E501
|
|
754
748
|
|
|
755
|
-
_param = self.
|
|
749
|
+
_param = self._benchmark_benchmark_id_get_serialize(
|
|
756
750
|
benchmark_id=benchmark_id,
|
|
757
|
-
update_benchmark_name_model=update_benchmark_name_model,
|
|
758
751
|
_request_auth=_request_auth,
|
|
759
752
|
_content_type=_content_type,
|
|
760
753
|
_headers=_headers,
|
|
@@ -762,7 +755,7 @@ class BenchmarkApi:
|
|
|
762
755
|
)
|
|
763
756
|
|
|
764
757
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
765
|
-
'
|
|
758
|
+
'200': "GetBenchmarkByIdResult",
|
|
766
759
|
}
|
|
767
760
|
response_data = self.api_client.call_api(
|
|
768
761
|
*_param,
|
|
@@ -771,10 +764,9 @@ class BenchmarkApi:
|
|
|
771
764
|
return response_data.response
|
|
772
765
|
|
|
773
766
|
|
|
774
|
-
def
|
|
767
|
+
def _benchmark_benchmark_id_get_serialize(
|
|
775
768
|
self,
|
|
776
769
|
benchmark_id,
|
|
777
|
-
update_benchmark_name_model,
|
|
778
770
|
_request_auth,
|
|
779
771
|
_content_type,
|
|
780
772
|
_headers,
|
|
@@ -802,36 +794,29 @@ class BenchmarkApi:
|
|
|
802
794
|
# process the header parameters
|
|
803
795
|
# process the form parameters
|
|
804
796
|
# process the body parameter
|
|
805
|
-
if update_benchmark_name_model is not None:
|
|
806
|
-
_body_params = update_benchmark_name_model
|
|
807
|
-
|
|
808
797
|
|
|
809
798
|
|
|
810
|
-
# set the HTTP header `
|
|
811
|
-
if
|
|
812
|
-
_header_params['
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
'text/json',
|
|
819
|
-
'application/*+json'
|
|
820
|
-
]
|
|
821
|
-
)
|
|
799
|
+
# set the HTTP header `Accept`
|
|
800
|
+
if 'Accept' not in _header_params:
|
|
801
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
802
|
+
[
|
|
803
|
+
'text/plain',
|
|
804
|
+
'application/json',
|
|
805
|
+
'text/json'
|
|
806
|
+
]
|
|
822
807
|
)
|
|
823
|
-
|
|
824
|
-
_header_params['Content-Type'] = _default_content_type
|
|
808
|
+
|
|
825
809
|
|
|
826
810
|
# authentication setting
|
|
827
811
|
_auth_settings: List[str] = [
|
|
828
|
-
'
|
|
829
|
-
'
|
|
812
|
+
'OAuth2',
|
|
813
|
+
'OpenIdConnect',
|
|
814
|
+
'Bearer'
|
|
830
815
|
]
|
|
831
816
|
|
|
832
817
|
return self.api_client.param_serialize(
|
|
833
|
-
method='
|
|
834
|
-
resource_path='/benchmark/{benchmarkId}
|
|
818
|
+
method='GET',
|
|
819
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
835
820
|
path_params=_path_params,
|
|
836
821
|
query_params=_query_params,
|
|
837
822
|
header_params=_header_params,
|
|
@@ -848,10 +833,10 @@ class BenchmarkApi:
|
|
|
848
833
|
|
|
849
834
|
|
|
850
835
|
@validate_call
|
|
851
|
-
def
|
|
836
|
+
def benchmark_benchmark_id_leaderboards_get(
|
|
852
837
|
self,
|
|
853
|
-
|
|
854
|
-
|
|
838
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
839
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
855
840
|
_request_timeout: Union[
|
|
856
841
|
None,
|
|
857
842
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -864,14 +849,14 @@ class BenchmarkApi:
|
|
|
864
849
|
_content_type: Optional[StrictStr] = None,
|
|
865
850
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
866
851
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
867
|
-
) ->
|
|
868
|
-
"""
|
|
852
|
+
) -> PagedResultOfLeaderboardsQueryResult:
|
|
853
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
869
854
|
|
|
870
855
|
|
|
871
|
-
:param
|
|
872
|
-
:type participant_id: str
|
|
873
|
-
:param benchmark_id: (required)
|
|
856
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
874
857
|
:type benchmark_id: str
|
|
858
|
+
:param request: Query parameters
|
|
859
|
+
:type request: QueryModel
|
|
875
860
|
:param _request_timeout: timeout setting for this request. If one
|
|
876
861
|
number provided, it will be total request
|
|
877
862
|
timeout. It can also be a pair (tuple) of
|
|
@@ -893,11 +878,10 @@ class BenchmarkApi:
|
|
|
893
878
|
:type _host_index: int, optional
|
|
894
879
|
:return: Returns the result object.
|
|
895
880
|
""" # noqa: E501
|
|
896
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
897
881
|
|
|
898
|
-
_param = self.
|
|
899
|
-
participant_id=participant_id,
|
|
882
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
900
883
|
benchmark_id=benchmark_id,
|
|
884
|
+
request=request,
|
|
901
885
|
_request_auth=_request_auth,
|
|
902
886
|
_content_type=_content_type,
|
|
903
887
|
_headers=_headers,
|
|
@@ -905,7 +889,7 @@ class BenchmarkApi:
|
|
|
905
889
|
)
|
|
906
890
|
|
|
907
891
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
908
|
-
'
|
|
892
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
909
893
|
}
|
|
910
894
|
response_data = self.api_client.call_api(
|
|
911
895
|
*_param,
|
|
@@ -919,10 +903,10 @@ class BenchmarkApi:
|
|
|
919
903
|
|
|
920
904
|
|
|
921
905
|
@validate_call
|
|
922
|
-
def
|
|
906
|
+
def benchmark_benchmark_id_leaderboards_get_with_http_info(
|
|
923
907
|
self,
|
|
924
|
-
|
|
925
|
-
|
|
908
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
909
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
926
910
|
_request_timeout: Union[
|
|
927
911
|
None,
|
|
928
912
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -935,14 +919,14 @@ class BenchmarkApi:
|
|
|
935
919
|
_content_type: Optional[StrictStr] = None,
|
|
936
920
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
937
921
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
938
|
-
) -> ApiResponse[
|
|
939
|
-
"""
|
|
922
|
+
) -> ApiResponse[PagedResultOfLeaderboardsQueryResult]:
|
|
923
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
940
924
|
|
|
941
925
|
|
|
942
|
-
:param
|
|
943
|
-
:type participant_id: str
|
|
944
|
-
:param benchmark_id: (required)
|
|
926
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
945
927
|
:type benchmark_id: str
|
|
928
|
+
:param request: Query parameters
|
|
929
|
+
:type request: QueryModel
|
|
946
930
|
:param _request_timeout: timeout setting for this request. If one
|
|
947
931
|
number provided, it will be total request
|
|
948
932
|
timeout. It can also be a pair (tuple) of
|
|
@@ -964,11 +948,10 @@ class BenchmarkApi:
|
|
|
964
948
|
:type _host_index: int, optional
|
|
965
949
|
:return: Returns the result object.
|
|
966
950
|
""" # noqa: E501
|
|
967
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
968
951
|
|
|
969
|
-
_param = self.
|
|
970
|
-
participant_id=participant_id,
|
|
952
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
971
953
|
benchmark_id=benchmark_id,
|
|
954
|
+
request=request,
|
|
972
955
|
_request_auth=_request_auth,
|
|
973
956
|
_content_type=_content_type,
|
|
974
957
|
_headers=_headers,
|
|
@@ -976,7 +959,7 @@ class BenchmarkApi:
|
|
|
976
959
|
)
|
|
977
960
|
|
|
978
961
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
979
|
-
'
|
|
962
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
980
963
|
}
|
|
981
964
|
response_data = self.api_client.call_api(
|
|
982
965
|
*_param,
|
|
@@ -990,10 +973,10 @@ class BenchmarkApi:
|
|
|
990
973
|
|
|
991
974
|
|
|
992
975
|
@validate_call
|
|
993
|
-
def
|
|
976
|
+
def benchmark_benchmark_id_leaderboards_get_without_preload_content(
|
|
994
977
|
self,
|
|
995
|
-
|
|
996
|
-
|
|
978
|
+
benchmark_id: Annotated[StrictStr, Field(description="The Id of the benchmark whoms leaderboards will be returned")],
|
|
979
|
+
request: Annotated[Optional[QueryModel], Field(description="Query parameters")] = None,
|
|
997
980
|
_request_timeout: Union[
|
|
998
981
|
None,
|
|
999
982
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1007,13 +990,13 @@ class BenchmarkApi:
|
|
|
1007
990
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1008
991
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1009
992
|
) -> RESTResponseType:
|
|
1010
|
-
"""
|
|
993
|
+
"""Queries all leaderboards for the current user's benchmarks.
|
|
1011
994
|
|
|
1012
995
|
|
|
1013
|
-
:param
|
|
1014
|
-
:type participant_id: str
|
|
1015
|
-
:param benchmark_id: (required)
|
|
996
|
+
:param benchmark_id: The Id of the benchmark whoms leaderboards will be returned (required)
|
|
1016
997
|
:type benchmark_id: str
|
|
998
|
+
:param request: Query parameters
|
|
999
|
+
:type request: QueryModel
|
|
1017
1000
|
:param _request_timeout: timeout setting for this request. If one
|
|
1018
1001
|
number provided, it will be total request
|
|
1019
1002
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1035,11 +1018,10 @@ class BenchmarkApi:
|
|
|
1035
1018
|
:type _host_index: int, optional
|
|
1036
1019
|
:return: Returns the result object.
|
|
1037
1020
|
""" # noqa: E501
|
|
1038
|
-
warnings.warn("DELETE /benchmark/{benchmarkId}/participant/{participantId} is deprecated.", DeprecationWarning)
|
|
1039
1021
|
|
|
1040
|
-
_param = self.
|
|
1041
|
-
participant_id=participant_id,
|
|
1022
|
+
_param = self._benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1042
1023
|
benchmark_id=benchmark_id,
|
|
1024
|
+
request=request,
|
|
1043
1025
|
_request_auth=_request_auth,
|
|
1044
1026
|
_content_type=_content_type,
|
|
1045
1027
|
_headers=_headers,
|
|
@@ -1047,7 +1029,7 @@ class BenchmarkApi:
|
|
|
1047
1029
|
)
|
|
1048
1030
|
|
|
1049
1031
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1050
|
-
'
|
|
1032
|
+
'200': "PagedResultOfLeaderboardsQueryResult",
|
|
1051
1033
|
}
|
|
1052
1034
|
response_data = self.api_client.call_api(
|
|
1053
1035
|
*_param,
|
|
@@ -1056,10 +1038,10 @@ class BenchmarkApi:
|
|
|
1056
1038
|
return response_data.response
|
|
1057
1039
|
|
|
1058
1040
|
|
|
1059
|
-
def
|
|
1041
|
+
def _benchmark_benchmark_id_leaderboards_get_serialize(
|
|
1060
1042
|
self,
|
|
1061
|
-
participant_id,
|
|
1062
1043
|
benchmark_id,
|
|
1044
|
+
request,
|
|
1063
1045
|
_request_auth,
|
|
1064
1046
|
_content_type,
|
|
1065
1047
|
_headers,
|
|
@@ -1081,27 +1063,39 @@ class BenchmarkApi:
|
|
|
1081
1063
|
_body_params: Optional[bytes] = None
|
|
1082
1064
|
|
|
1083
1065
|
# process the path parameters
|
|
1084
|
-
if participant_id is not None:
|
|
1085
|
-
_path_params['participantId'] = participant_id
|
|
1086
1066
|
if benchmark_id is not None:
|
|
1087
1067
|
_path_params['benchmarkId'] = benchmark_id
|
|
1088
1068
|
# process the query parameters
|
|
1069
|
+
if request is not None:
|
|
1070
|
+
|
|
1071
|
+
_query_params.append(('request', request))
|
|
1072
|
+
|
|
1089
1073
|
# process the header parameters
|
|
1090
1074
|
# process the form parameters
|
|
1091
1075
|
# process the body parameter
|
|
1092
1076
|
|
|
1093
1077
|
|
|
1078
|
+
# set the HTTP header `Accept`
|
|
1079
|
+
if 'Accept' not in _header_params:
|
|
1080
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1081
|
+
[
|
|
1082
|
+
'text/plain',
|
|
1083
|
+
'application/json',
|
|
1084
|
+
'text/json'
|
|
1085
|
+
]
|
|
1086
|
+
)
|
|
1094
1087
|
|
|
1095
1088
|
|
|
1096
1089
|
# authentication setting
|
|
1097
1090
|
_auth_settings: List[str] = [
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1091
|
+
'OAuth2',
|
|
1092
|
+
'OpenIdConnect',
|
|
1093
|
+
'Bearer'
|
|
1100
1094
|
]
|
|
1101
1095
|
|
|
1102
1096
|
return self.api_client.param_serialize(
|
|
1103
|
-
method='
|
|
1104
|
-
resource_path='/benchmark/{benchmarkId}/
|
|
1097
|
+
method='GET',
|
|
1098
|
+
resource_path='/benchmark/{benchmarkId}/leaderboards',
|
|
1105
1099
|
path_params=_path_params,
|
|
1106
1100
|
query_params=_query_params,
|
|
1107
1101
|
header_params=_header_params,
|
|
@@ -1133,7 +1127,7 @@ class BenchmarkApi:
|
|
|
1133
1127
|
_content_type: Optional[StrictStr] = None,
|
|
1134
1128
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1135
1129
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1136
|
-
) ->
|
|
1130
|
+
) -> PagedResultOfParticipantByBenchmark:
|
|
1137
1131
|
"""Query all participants within a benchmark
|
|
1138
1132
|
|
|
1139
1133
|
|
|
@@ -1170,7 +1164,7 @@ class BenchmarkApi:
|
|
|
1170
1164
|
)
|
|
1171
1165
|
|
|
1172
1166
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1173
|
-
'200': "
|
|
1167
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1174
1168
|
}
|
|
1175
1169
|
response_data = self.api_client.call_api(
|
|
1176
1170
|
*_param,
|
|
@@ -1199,7 +1193,7 @@ class BenchmarkApi:
|
|
|
1199
1193
|
_content_type: Optional[StrictStr] = None,
|
|
1200
1194
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1201
1195
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1202
|
-
) -> ApiResponse[
|
|
1196
|
+
) -> ApiResponse[PagedResultOfParticipantByBenchmark]:
|
|
1203
1197
|
"""Query all participants within a benchmark
|
|
1204
1198
|
|
|
1205
1199
|
|
|
@@ -1236,7 +1230,7 @@ class BenchmarkApi:
|
|
|
1236
1230
|
)
|
|
1237
1231
|
|
|
1238
1232
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1239
|
-
'200': "
|
|
1233
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1240
1234
|
}
|
|
1241
1235
|
response_data = self.api_client.call_api(
|
|
1242
1236
|
*_param,
|
|
@@ -1302,7 +1296,7 @@ class BenchmarkApi:
|
|
|
1302
1296
|
)
|
|
1303
1297
|
|
|
1304
1298
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1305
|
-
'200': "
|
|
1299
|
+
'200': "PagedResultOfParticipantByBenchmark",
|
|
1306
1300
|
}
|
|
1307
1301
|
response_data = self.api_client.call_api(
|
|
1308
1302
|
*_param,
|
|
@@ -1356,8 +1350,9 @@ class BenchmarkApi:
|
|
|
1356
1350
|
|
|
1357
1351
|
# authentication setting
|
|
1358
1352
|
_auth_settings: List[str] = [
|
|
1359
|
-
'
|
|
1360
|
-
'
|
|
1353
|
+
'OAuth2',
|
|
1354
|
+
'OpenIdConnect',
|
|
1355
|
+
'Bearer'
|
|
1361
1356
|
]
|
|
1362
1357
|
|
|
1363
1358
|
return self.api_client.param_serialize(
|
|
@@ -1379,10 +1374,10 @@ class BenchmarkApi:
|
|
|
1379
1374
|
|
|
1380
1375
|
|
|
1381
1376
|
@validate_call
|
|
1382
|
-
def
|
|
1377
|
+
def benchmark_benchmark_id_participants_post(
|
|
1383
1378
|
self,
|
|
1384
1379
|
benchmark_id: StrictStr,
|
|
1385
|
-
|
|
1380
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1386
1381
|
_request_timeout: Union[
|
|
1387
1382
|
None,
|
|
1388
1383
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1395,14 +1390,14 @@ class BenchmarkApi:
|
|
|
1395
1390
|
_content_type: Optional[StrictStr] = None,
|
|
1396
1391
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1397
1392
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1398
|
-
) ->
|
|
1399
|
-
"""
|
|
1393
|
+
) -> CreateBenchmarkParticipantResult:
|
|
1394
|
+
"""Creates a participant in a benchmark.
|
|
1400
1395
|
|
|
1401
1396
|
|
|
1402
1397
|
:param benchmark_id: (required)
|
|
1403
1398
|
:type benchmark_id: str
|
|
1404
|
-
:param
|
|
1405
|
-
:type
|
|
1399
|
+
:param create_benchmark_participant_model: (required)
|
|
1400
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1406
1401
|
:param _request_timeout: timeout setting for this request. If one
|
|
1407
1402
|
number provided, it will be total request
|
|
1408
1403
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1424,11 +1419,10 @@ class BenchmarkApi:
|
|
|
1424
1419
|
:type _host_index: int, optional
|
|
1425
1420
|
:return: Returns the result object.
|
|
1426
1421
|
""" # noqa: E501
|
|
1427
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1428
1422
|
|
|
1429
|
-
_param = self.
|
|
1423
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1430
1424
|
benchmark_id=benchmark_id,
|
|
1431
|
-
|
|
1425
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1432
1426
|
_request_auth=_request_auth,
|
|
1433
1427
|
_content_type=_content_type,
|
|
1434
1428
|
_headers=_headers,
|
|
@@ -1436,7 +1430,7 @@ class BenchmarkApi:
|
|
|
1436
1430
|
)
|
|
1437
1431
|
|
|
1438
1432
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1439
|
-
'200': "
|
|
1433
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1440
1434
|
}
|
|
1441
1435
|
response_data = self.api_client.call_api(
|
|
1442
1436
|
*_param,
|
|
@@ -1450,10 +1444,10 @@ class BenchmarkApi:
|
|
|
1450
1444
|
|
|
1451
1445
|
|
|
1452
1446
|
@validate_call
|
|
1453
|
-
def
|
|
1447
|
+
def benchmark_benchmark_id_participants_post_with_http_info(
|
|
1454
1448
|
self,
|
|
1455
1449
|
benchmark_id: StrictStr,
|
|
1456
|
-
|
|
1450
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1457
1451
|
_request_timeout: Union[
|
|
1458
1452
|
None,
|
|
1459
1453
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1466,14 +1460,14 @@ class BenchmarkApi:
|
|
|
1466
1460
|
_content_type: Optional[StrictStr] = None,
|
|
1467
1461
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1468
1462
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1469
|
-
) -> ApiResponse[
|
|
1470
|
-
"""
|
|
1463
|
+
) -> ApiResponse[CreateBenchmarkParticipantResult]:
|
|
1464
|
+
"""Creates a participant in a benchmark.
|
|
1471
1465
|
|
|
1472
1466
|
|
|
1473
1467
|
:param benchmark_id: (required)
|
|
1474
1468
|
:type benchmark_id: str
|
|
1475
|
-
:param
|
|
1476
|
-
:type
|
|
1469
|
+
:param create_benchmark_participant_model: (required)
|
|
1470
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1477
1471
|
:param _request_timeout: timeout setting for this request. If one
|
|
1478
1472
|
number provided, it will be total request
|
|
1479
1473
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1495,11 +1489,10 @@ class BenchmarkApi:
|
|
|
1495
1489
|
:type _host_index: int, optional
|
|
1496
1490
|
:return: Returns the result object.
|
|
1497
1491
|
""" # noqa: E501
|
|
1498
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1499
1492
|
|
|
1500
|
-
_param = self.
|
|
1493
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1501
1494
|
benchmark_id=benchmark_id,
|
|
1502
|
-
|
|
1495
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1503
1496
|
_request_auth=_request_auth,
|
|
1504
1497
|
_content_type=_content_type,
|
|
1505
1498
|
_headers=_headers,
|
|
@@ -1507,7 +1500,7 @@ class BenchmarkApi:
|
|
|
1507
1500
|
)
|
|
1508
1501
|
|
|
1509
1502
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1510
|
-
'200': "
|
|
1503
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1511
1504
|
}
|
|
1512
1505
|
response_data = self.api_client.call_api(
|
|
1513
1506
|
*_param,
|
|
@@ -1521,10 +1514,10 @@ class BenchmarkApi:
|
|
|
1521
1514
|
|
|
1522
1515
|
|
|
1523
1516
|
@validate_call
|
|
1524
|
-
def
|
|
1517
|
+
def benchmark_benchmark_id_participants_post_without_preload_content(
|
|
1525
1518
|
self,
|
|
1526
1519
|
benchmark_id: StrictStr,
|
|
1527
|
-
|
|
1520
|
+
create_benchmark_participant_model: CreateBenchmarkParticipantModel,
|
|
1528
1521
|
_request_timeout: Union[
|
|
1529
1522
|
None,
|
|
1530
1523
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1538,13 +1531,13 @@ class BenchmarkApi:
|
|
|
1538
1531
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1539
1532
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1540
1533
|
) -> RESTResponseType:
|
|
1541
|
-
"""
|
|
1534
|
+
"""Creates a participant in a benchmark.
|
|
1542
1535
|
|
|
1543
1536
|
|
|
1544
1537
|
:param benchmark_id: (required)
|
|
1545
1538
|
:type benchmark_id: str
|
|
1546
|
-
:param
|
|
1547
|
-
:type
|
|
1539
|
+
:param create_benchmark_participant_model: (required)
|
|
1540
|
+
:type create_benchmark_participant_model: CreateBenchmarkParticipantModel
|
|
1548
1541
|
:param _request_timeout: timeout setting for this request. If one
|
|
1549
1542
|
number provided, it will be total request
|
|
1550
1543
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1566,11 +1559,10 @@ class BenchmarkApi:
|
|
|
1566
1559
|
:type _host_index: int, optional
|
|
1567
1560
|
:return: Returns the result object.
|
|
1568
1561
|
""" # noqa: E501
|
|
1569
|
-
warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
|
|
1570
1562
|
|
|
1571
|
-
_param = self.
|
|
1563
|
+
_param = self._benchmark_benchmark_id_participants_post_serialize(
|
|
1572
1564
|
benchmark_id=benchmark_id,
|
|
1573
|
-
|
|
1565
|
+
create_benchmark_participant_model=create_benchmark_participant_model,
|
|
1574
1566
|
_request_auth=_request_auth,
|
|
1575
1567
|
_content_type=_content_type,
|
|
1576
1568
|
_headers=_headers,
|
|
@@ -1578,7 +1570,7 @@ class BenchmarkApi:
|
|
|
1578
1570
|
)
|
|
1579
1571
|
|
|
1580
1572
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1581
|
-
'200': "
|
|
1573
|
+
'200': "CreateBenchmarkParticipantResult",
|
|
1582
1574
|
}
|
|
1583
1575
|
response_data = self.api_client.call_api(
|
|
1584
1576
|
*_param,
|
|
@@ -1587,10 +1579,10 @@ class BenchmarkApi:
|
|
|
1587
1579
|
return response_data.response
|
|
1588
1580
|
|
|
1589
1581
|
|
|
1590
|
-
def
|
|
1582
|
+
def _benchmark_benchmark_id_participants_post_serialize(
|
|
1591
1583
|
self,
|
|
1592
1584
|
benchmark_id,
|
|
1593
|
-
|
|
1585
|
+
create_benchmark_participant_model,
|
|
1594
1586
|
_request_auth,
|
|
1595
1587
|
_content_type,
|
|
1596
1588
|
_headers,
|
|
@@ -1614,12 +1606,12 @@ class BenchmarkApi:
|
|
|
1614
1606
|
# process the path parameters
|
|
1615
1607
|
if benchmark_id is not None:
|
|
1616
1608
|
_path_params['benchmarkId'] = benchmark_id
|
|
1617
|
-
if participant_id is not None:
|
|
1618
|
-
_path_params['participantId'] = participant_id
|
|
1619
1609
|
# process the query parameters
|
|
1620
1610
|
# process the header parameters
|
|
1621
1611
|
# process the form parameters
|
|
1622
1612
|
# process the body parameter
|
|
1613
|
+
if create_benchmark_participant_model is not None:
|
|
1614
|
+
_body_params = create_benchmark_participant_model
|
|
1623
1615
|
|
|
1624
1616
|
|
|
1625
1617
|
# set the HTTP header `Accept`
|
|
@@ -1632,16 +1624,32 @@ class BenchmarkApi:
|
|
|
1632
1624
|
]
|
|
1633
1625
|
)
|
|
1634
1626
|
|
|
1627
|
+
# set the HTTP header `Content-Type`
|
|
1628
|
+
if _content_type:
|
|
1629
|
+
_header_params['Content-Type'] = _content_type
|
|
1630
|
+
else:
|
|
1631
|
+
_default_content_type = (
|
|
1632
|
+
self.api_client.select_header_content_type(
|
|
1633
|
+
[
|
|
1634
|
+
'application/json',
|
|
1635
|
+
'text/json',
|
|
1636
|
+
'application/*+json'
|
|
1637
|
+
]
|
|
1638
|
+
)
|
|
1639
|
+
)
|
|
1640
|
+
if _default_content_type is not None:
|
|
1641
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1635
1642
|
|
|
1636
1643
|
# authentication setting
|
|
1637
1644
|
_auth_settings: List[str] = [
|
|
1638
|
-
'
|
|
1639
|
-
'
|
|
1645
|
+
'OAuth2',
|
|
1646
|
+
'OpenIdConnect',
|
|
1647
|
+
'Bearer'
|
|
1640
1648
|
]
|
|
1641
1649
|
|
|
1642
1650
|
return self.api_client.param_serialize(
|
|
1643
1651
|
method='POST',
|
|
1644
|
-
resource_path='/benchmark/{benchmarkId}/participants
|
|
1652
|
+
resource_path='/benchmark/{benchmarkId}/participants',
|
|
1645
1653
|
path_params=_path_params,
|
|
1646
1654
|
query_params=_query_params,
|
|
1647
1655
|
header_params=_header_params,
|
|
@@ -1658,10 +1666,10 @@ class BenchmarkApi:
|
|
|
1658
1666
|
|
|
1659
1667
|
|
|
1660
1668
|
@validate_call
|
|
1661
|
-
def
|
|
1669
|
+
def benchmark_benchmark_id_patch(
|
|
1662
1670
|
self,
|
|
1663
1671
|
benchmark_id: StrictStr,
|
|
1664
|
-
|
|
1672
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1665
1673
|
_request_timeout: Union[
|
|
1666
1674
|
None,
|
|
1667
1675
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1674,14 +1682,14 @@ class BenchmarkApi:
|
|
|
1674
1682
|
_content_type: Optional[StrictStr] = None,
|
|
1675
1683
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1676
1684
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1677
|
-
) ->
|
|
1678
|
-
"""
|
|
1685
|
+
) -> None:
|
|
1686
|
+
"""Updates a benchmark using patch semantics.
|
|
1679
1687
|
|
|
1680
1688
|
|
|
1681
1689
|
:param benchmark_id: (required)
|
|
1682
1690
|
:type benchmark_id: str
|
|
1683
|
-
:param
|
|
1684
|
-
:type
|
|
1691
|
+
:param update_benchmark_model: (required)
|
|
1692
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1685
1693
|
:param _request_timeout: timeout setting for this request. If one
|
|
1686
1694
|
number provided, it will be total request
|
|
1687
1695
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1704,9 +1712,9 @@ class BenchmarkApi:
|
|
|
1704
1712
|
:return: Returns the result object.
|
|
1705
1713
|
""" # noqa: E501
|
|
1706
1714
|
|
|
1707
|
-
_param = self.
|
|
1715
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1708
1716
|
benchmark_id=benchmark_id,
|
|
1709
|
-
|
|
1717
|
+
update_benchmark_model=update_benchmark_model,
|
|
1710
1718
|
_request_auth=_request_auth,
|
|
1711
1719
|
_content_type=_content_type,
|
|
1712
1720
|
_headers=_headers,
|
|
@@ -1714,7 +1722,7 @@ class BenchmarkApi:
|
|
|
1714
1722
|
)
|
|
1715
1723
|
|
|
1716
1724
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1717
|
-
'
|
|
1725
|
+
'204': None,
|
|
1718
1726
|
}
|
|
1719
1727
|
response_data = self.api_client.call_api(
|
|
1720
1728
|
*_param,
|
|
@@ -1728,10 +1736,10 @@ class BenchmarkApi:
|
|
|
1728
1736
|
|
|
1729
1737
|
|
|
1730
1738
|
@validate_call
|
|
1731
|
-
def
|
|
1739
|
+
def benchmark_benchmark_id_patch_with_http_info(
|
|
1732
1740
|
self,
|
|
1733
1741
|
benchmark_id: StrictStr,
|
|
1734
|
-
|
|
1742
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1735
1743
|
_request_timeout: Union[
|
|
1736
1744
|
None,
|
|
1737
1745
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1744,14 +1752,14 @@ class BenchmarkApi:
|
|
|
1744
1752
|
_content_type: Optional[StrictStr] = None,
|
|
1745
1753
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1746
1754
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1747
|
-
) -> ApiResponse[
|
|
1748
|
-
"""
|
|
1755
|
+
) -> ApiResponse[None]:
|
|
1756
|
+
"""Updates a benchmark using patch semantics.
|
|
1749
1757
|
|
|
1750
1758
|
|
|
1751
1759
|
:param benchmark_id: (required)
|
|
1752
1760
|
:type benchmark_id: str
|
|
1753
|
-
:param
|
|
1754
|
-
:type
|
|
1761
|
+
:param update_benchmark_model: (required)
|
|
1762
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1755
1763
|
:param _request_timeout: timeout setting for this request. If one
|
|
1756
1764
|
number provided, it will be total request
|
|
1757
1765
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1774,9 +1782,9 @@ class BenchmarkApi:
|
|
|
1774
1782
|
:return: Returns the result object.
|
|
1775
1783
|
""" # noqa: E501
|
|
1776
1784
|
|
|
1777
|
-
_param = self.
|
|
1785
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1778
1786
|
benchmark_id=benchmark_id,
|
|
1779
|
-
|
|
1787
|
+
update_benchmark_model=update_benchmark_model,
|
|
1780
1788
|
_request_auth=_request_auth,
|
|
1781
1789
|
_content_type=_content_type,
|
|
1782
1790
|
_headers=_headers,
|
|
@@ -1784,7 +1792,7 @@ class BenchmarkApi:
|
|
|
1784
1792
|
)
|
|
1785
1793
|
|
|
1786
1794
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1787
|
-
'
|
|
1795
|
+
'204': None,
|
|
1788
1796
|
}
|
|
1789
1797
|
response_data = self.api_client.call_api(
|
|
1790
1798
|
*_param,
|
|
@@ -1798,10 +1806,10 @@ class BenchmarkApi:
|
|
|
1798
1806
|
|
|
1799
1807
|
|
|
1800
1808
|
@validate_call
|
|
1801
|
-
def
|
|
1809
|
+
def benchmark_benchmark_id_patch_without_preload_content(
|
|
1802
1810
|
self,
|
|
1803
1811
|
benchmark_id: StrictStr,
|
|
1804
|
-
|
|
1812
|
+
update_benchmark_model: UpdateBenchmarkModel,
|
|
1805
1813
|
_request_timeout: Union[
|
|
1806
1814
|
None,
|
|
1807
1815
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1815,13 +1823,13 @@ class BenchmarkApi:
|
|
|
1815
1823
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1816
1824
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1817
1825
|
) -> RESTResponseType:
|
|
1818
|
-
"""
|
|
1826
|
+
"""Updates a benchmark using patch semantics.
|
|
1819
1827
|
|
|
1820
1828
|
|
|
1821
1829
|
:param benchmark_id: (required)
|
|
1822
1830
|
:type benchmark_id: str
|
|
1823
|
-
:param
|
|
1824
|
-
:type
|
|
1831
|
+
:param update_benchmark_model: (required)
|
|
1832
|
+
:type update_benchmark_model: UpdateBenchmarkModel
|
|
1825
1833
|
:param _request_timeout: timeout setting for this request. If one
|
|
1826
1834
|
number provided, it will be total request
|
|
1827
1835
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1844,9 +1852,9 @@ class BenchmarkApi:
|
|
|
1844
1852
|
:return: Returns the result object.
|
|
1845
1853
|
""" # noqa: E501
|
|
1846
1854
|
|
|
1847
|
-
_param = self.
|
|
1855
|
+
_param = self._benchmark_benchmark_id_patch_serialize(
|
|
1848
1856
|
benchmark_id=benchmark_id,
|
|
1849
|
-
|
|
1857
|
+
update_benchmark_model=update_benchmark_model,
|
|
1850
1858
|
_request_auth=_request_auth,
|
|
1851
1859
|
_content_type=_content_type,
|
|
1852
1860
|
_headers=_headers,
|
|
@@ -1854,7 +1862,7 @@ class BenchmarkApi:
|
|
|
1854
1862
|
)
|
|
1855
1863
|
|
|
1856
1864
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1857
|
-
'
|
|
1865
|
+
'204': None,
|
|
1858
1866
|
}
|
|
1859
1867
|
response_data = self.api_client.call_api(
|
|
1860
1868
|
*_param,
|
|
@@ -1863,10 +1871,10 @@ class BenchmarkApi:
|
|
|
1863
1871
|
return response_data.response
|
|
1864
1872
|
|
|
1865
1873
|
|
|
1866
|
-
def
|
|
1874
|
+
def _benchmark_benchmark_id_patch_serialize(
|
|
1867
1875
|
self,
|
|
1868
1876
|
benchmark_id,
|
|
1869
|
-
|
|
1877
|
+
update_benchmark_model,
|
|
1870
1878
|
_request_auth,
|
|
1871
1879
|
_content_type,
|
|
1872
1880
|
_headers,
|
|
@@ -1894,19 +1902,10 @@ class BenchmarkApi:
|
|
|
1894
1902
|
# process the header parameters
|
|
1895
1903
|
# process the form parameters
|
|
1896
1904
|
# process the body parameter
|
|
1897
|
-
if
|
|
1898
|
-
_body_params =
|
|
1905
|
+
if update_benchmark_model is not None:
|
|
1906
|
+
_body_params = update_benchmark_model
|
|
1899
1907
|
|
|
1900
1908
|
|
|
1901
|
-
# set the HTTP header `Accept`
|
|
1902
|
-
if 'Accept' not in _header_params:
|
|
1903
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1904
|
-
[
|
|
1905
|
-
'text/plain',
|
|
1906
|
-
'application/json',
|
|
1907
|
-
'text/json'
|
|
1908
|
-
]
|
|
1909
|
-
)
|
|
1910
1909
|
|
|
1911
1910
|
# set the HTTP header `Content-Type`
|
|
1912
1911
|
if _content_type:
|
|
@@ -1926,13 +1925,14 @@ class BenchmarkApi:
|
|
|
1926
1925
|
|
|
1927
1926
|
# authentication setting
|
|
1928
1927
|
_auth_settings: List[str] = [
|
|
1929
|
-
'
|
|
1930
|
-
'
|
|
1928
|
+
'OAuth2',
|
|
1929
|
+
'OpenIdConnect',
|
|
1930
|
+
'Bearer'
|
|
1931
1931
|
]
|
|
1932
1932
|
|
|
1933
1933
|
return self.api_client.param_serialize(
|
|
1934
|
-
method='
|
|
1935
|
-
resource_path='/benchmark/{benchmarkId}
|
|
1934
|
+
method='PATCH',
|
|
1935
|
+
resource_path='/benchmark/{benchmarkId}',
|
|
1936
1936
|
path_params=_path_params,
|
|
1937
1937
|
query_params=_query_params,
|
|
1938
1938
|
header_params=_header_params,
|
|
@@ -1952,7 +1952,7 @@ class BenchmarkApi:
|
|
|
1952
1952
|
def benchmark_benchmark_id_prompt_post(
|
|
1953
1953
|
self,
|
|
1954
1954
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
1955
|
-
submit_prompt_model:
|
|
1955
|
+
submit_prompt_model: SubmitPromptModel,
|
|
1956
1956
|
_request_timeout: Union[
|
|
1957
1957
|
None,
|
|
1958
1958
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1965,13 +1965,13 @@ class BenchmarkApi:
|
|
|
1965
1965
|
_content_type: Optional[StrictStr] = None,
|
|
1966
1966
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1967
1967
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1968
|
-
) ->
|
|
1968
|
+
) -> CreateBenchmarkPromptResult:
|
|
1969
1969
|
"""Adds a new prompt to a benchmark.
|
|
1970
1970
|
|
|
1971
1971
|
|
|
1972
1972
|
:param benchmark_id: The benchmark id. (required)
|
|
1973
1973
|
:type benchmark_id: str
|
|
1974
|
-
:param submit_prompt_model:
|
|
1974
|
+
:param submit_prompt_model: (required)
|
|
1975
1975
|
:type submit_prompt_model: SubmitPromptModel
|
|
1976
1976
|
:param _request_timeout: timeout setting for this request. If one
|
|
1977
1977
|
number provided, it will be total request
|
|
@@ -2005,7 +2005,7 @@ class BenchmarkApi:
|
|
|
2005
2005
|
)
|
|
2006
2006
|
|
|
2007
2007
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2008
|
-
'
|
|
2008
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2009
2009
|
}
|
|
2010
2010
|
response_data = self.api_client.call_api(
|
|
2011
2011
|
*_param,
|
|
@@ -2022,7 +2022,7 @@ class BenchmarkApi:
|
|
|
2022
2022
|
def benchmark_benchmark_id_prompt_post_with_http_info(
|
|
2023
2023
|
self,
|
|
2024
2024
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2025
|
-
submit_prompt_model:
|
|
2025
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2026
2026
|
_request_timeout: Union[
|
|
2027
2027
|
None,
|
|
2028
2028
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2035,13 +2035,13 @@ class BenchmarkApi:
|
|
|
2035
2035
|
_content_type: Optional[StrictStr] = None,
|
|
2036
2036
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2037
2037
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2038
|
-
) -> ApiResponse[
|
|
2038
|
+
) -> ApiResponse[CreateBenchmarkPromptResult]:
|
|
2039
2039
|
"""Adds a new prompt to a benchmark.
|
|
2040
2040
|
|
|
2041
2041
|
|
|
2042
2042
|
:param benchmark_id: The benchmark id. (required)
|
|
2043
2043
|
:type benchmark_id: str
|
|
2044
|
-
:param submit_prompt_model:
|
|
2044
|
+
:param submit_prompt_model: (required)
|
|
2045
2045
|
:type submit_prompt_model: SubmitPromptModel
|
|
2046
2046
|
:param _request_timeout: timeout setting for this request. If one
|
|
2047
2047
|
number provided, it will be total request
|
|
@@ -2075,7 +2075,7 @@ class BenchmarkApi:
|
|
|
2075
2075
|
)
|
|
2076
2076
|
|
|
2077
2077
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2078
|
-
'
|
|
2078
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2079
2079
|
}
|
|
2080
2080
|
response_data = self.api_client.call_api(
|
|
2081
2081
|
*_param,
|
|
@@ -2092,7 +2092,7 @@ class BenchmarkApi:
|
|
|
2092
2092
|
def benchmark_benchmark_id_prompt_post_without_preload_content(
|
|
2093
2093
|
self,
|
|
2094
2094
|
benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
|
|
2095
|
-
submit_prompt_model:
|
|
2095
|
+
submit_prompt_model: SubmitPromptModel,
|
|
2096
2096
|
_request_timeout: Union[
|
|
2097
2097
|
None,
|
|
2098
2098
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2111,7 +2111,7 @@ class BenchmarkApi:
|
|
|
2111
2111
|
|
|
2112
2112
|
:param benchmark_id: The benchmark id. (required)
|
|
2113
2113
|
:type benchmark_id: str
|
|
2114
|
-
:param submit_prompt_model:
|
|
2114
|
+
:param submit_prompt_model: (required)
|
|
2115
2115
|
:type submit_prompt_model: SubmitPromptModel
|
|
2116
2116
|
:param _request_timeout: timeout setting for this request. If one
|
|
2117
2117
|
number provided, it will be total request
|
|
@@ -2145,7 +2145,7 @@ class BenchmarkApi:
|
|
|
2145
2145
|
)
|
|
2146
2146
|
|
|
2147
2147
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2148
|
-
'
|
|
2148
|
+
'200': "CreateBenchmarkPromptResult",
|
|
2149
2149
|
}
|
|
2150
2150
|
response_data = self.api_client.call_api(
|
|
2151
2151
|
*_param,
|
|
@@ -2189,6 +2189,15 @@ class BenchmarkApi:
|
|
|
2189
2189
|
_body_params = submit_prompt_model
|
|
2190
2190
|
|
|
2191
2191
|
|
|
2192
|
+
# set the HTTP header `Accept`
|
|
2193
|
+
if 'Accept' not in _header_params:
|
|
2194
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2195
|
+
[
|
|
2196
|
+
'text/plain',
|
|
2197
|
+
'application/json',
|
|
2198
|
+
'text/json'
|
|
2199
|
+
]
|
|
2200
|
+
)
|
|
2192
2201
|
|
|
2193
2202
|
# set the HTTP header `Content-Type`
|
|
2194
2203
|
if _content_type:
|
|
@@ -2208,8 +2217,9 @@ class BenchmarkApi:
|
|
|
2208
2217
|
|
|
2209
2218
|
# authentication setting
|
|
2210
2219
|
_auth_settings: List[str] = [
|
|
2211
|
-
'
|
|
2212
|
-
'
|
|
2220
|
+
'OAuth2',
|
|
2221
|
+
'OpenIdConnect',
|
|
2222
|
+
'Bearer'
|
|
2213
2223
|
]
|
|
2214
2224
|
|
|
2215
2225
|
return self.api_client.param_serialize(
|
|
@@ -2247,7 +2257,7 @@ class BenchmarkApi:
|
|
|
2247
2257
|
_content_type: Optional[StrictStr] = None,
|
|
2248
2258
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2249
2259
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2250
|
-
) ->
|
|
2260
|
+
) -> PagedResultOfPromptByBenchmarkResult:
|
|
2251
2261
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2252
2262
|
|
|
2253
2263
|
|
|
@@ -2287,7 +2297,7 @@ class BenchmarkApi:
|
|
|
2287
2297
|
)
|
|
2288
2298
|
|
|
2289
2299
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2290
|
-
'200': "
|
|
2300
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2291
2301
|
}
|
|
2292
2302
|
response_data = self.api_client.call_api(
|
|
2293
2303
|
*_param,
|
|
@@ -2317,7 +2327,7 @@ class BenchmarkApi:
|
|
|
2317
2327
|
_content_type: Optional[StrictStr] = None,
|
|
2318
2328
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2319
2329
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2320
|
-
) -> ApiResponse[
|
|
2330
|
+
) -> ApiResponse[PagedResultOfPromptByBenchmarkResult]:
|
|
2321
2331
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2322
2332
|
|
|
2323
2333
|
|
|
@@ -2357,7 +2367,7 @@ class BenchmarkApi:
|
|
|
2357
2367
|
)
|
|
2358
2368
|
|
|
2359
2369
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2360
|
-
'200': "
|
|
2370
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2361
2371
|
}
|
|
2362
2372
|
response_data = self.api_client.call_api(
|
|
2363
2373
|
*_param,
|
|
@@ -2427,7 +2437,7 @@ class BenchmarkApi:
|
|
|
2427
2437
|
)
|
|
2428
2438
|
|
|
2429
2439
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2430
|
-
'200': "
|
|
2440
|
+
'200': "PagedResultOfPromptByBenchmarkResult",
|
|
2431
2441
|
}
|
|
2432
2442
|
response_data = self.api_client.call_api(
|
|
2433
2443
|
*_param,
|
|
@@ -2486,8 +2496,9 @@ class BenchmarkApi:
|
|
|
2486
2496
|
|
|
2487
2497
|
# authentication setting
|
|
2488
2498
|
_auth_settings: List[str] = [
|
|
2489
|
-
'
|
|
2490
|
-
'
|
|
2499
|
+
'OAuth2',
|
|
2500
|
+
'OpenIdConnect',
|
|
2501
|
+
'Bearer'
|
|
2491
2502
|
]
|
|
2492
2503
|
|
|
2493
2504
|
return self.api_client.param_serialize(
|
|
@@ -2526,7 +2537,7 @@ class BenchmarkApi:
|
|
|
2526
2537
|
_content_type: Optional[StrictStr] = None,
|
|
2527
2538
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2528
2539
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2529
|
-
) ->
|
|
2540
|
+
) -> PagedResultOfSampleByIdentifier:
|
|
2530
2541
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2531
2542
|
|
|
2532
2543
|
|
|
@@ -2569,7 +2580,7 @@ class BenchmarkApi:
|
|
|
2569
2580
|
)
|
|
2570
2581
|
|
|
2571
2582
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2572
|
-
'200': "
|
|
2583
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2573
2584
|
}
|
|
2574
2585
|
response_data = self.api_client.call_api(
|
|
2575
2586
|
*_param,
|
|
@@ -2600,7 +2611,7 @@ class BenchmarkApi:
|
|
|
2600
2611
|
_content_type: Optional[StrictStr] = None,
|
|
2601
2612
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2602
2613
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2603
|
-
) -> ApiResponse[
|
|
2614
|
+
) -> ApiResponse[PagedResultOfSampleByIdentifier]:
|
|
2604
2615
|
"""Returns the paged prompts of a benchmark by its ID.
|
|
2605
2616
|
|
|
2606
2617
|
|
|
@@ -2643,7 +2654,7 @@ class BenchmarkApi:
|
|
|
2643
2654
|
)
|
|
2644
2655
|
|
|
2645
2656
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2646
|
-
'200': "
|
|
2657
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2647
2658
|
}
|
|
2648
2659
|
response_data = self.api_client.call_api(
|
|
2649
2660
|
*_param,
|
|
@@ -2717,7 +2728,7 @@ class BenchmarkApi:
|
|
|
2717
2728
|
)
|
|
2718
2729
|
|
|
2719
2730
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2720
|
-
'200': "
|
|
2731
|
+
'200': "PagedResultOfSampleByIdentifier",
|
|
2721
2732
|
}
|
|
2722
2733
|
response_data = self.api_client.call_api(
|
|
2723
2734
|
*_param,
|
|
@@ -2779,8 +2790,9 @@ class BenchmarkApi:
|
|
|
2779
2790
|
|
|
2780
2791
|
# authentication setting
|
|
2781
2792
|
_auth_settings: List[str] = [
|
|
2782
|
-
'
|
|
2783
|
-
'
|
|
2793
|
+
'OAuth2',
|
|
2794
|
+
'OpenIdConnect',
|
|
2795
|
+
'Bearer'
|
|
2784
2796
|
]
|
|
2785
2797
|
|
|
2786
2798
|
return self.api_client.param_serialize(
|
|
@@ -2801,6 +2813,356 @@ class BenchmarkApi:
|
|
|
2801
2813
|
|
|
2802
2814
|
|
|
2803
2815
|
|
|
2816
|
+
@validate_call
|
|
2817
|
+
def benchmark_benchmark_id_standings_get(
|
|
2818
|
+
self,
|
|
2819
|
+
benchmark_id: StrictStr,
|
|
2820
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2821
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2822
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2823
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2824
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2825
|
+
_request_timeout: Union[
|
|
2826
|
+
None,
|
|
2827
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2828
|
+
Tuple[
|
|
2829
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2830
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2831
|
+
]
|
|
2832
|
+
] = None,
|
|
2833
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2834
|
+
_content_type: Optional[StrictStr] = None,
|
|
2835
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2836
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2837
|
+
) -> StandingsByBenchmarkResult:
|
|
2838
|
+
"""benchmark_benchmark_id_standings_get
|
|
2839
|
+
|
|
2840
|
+
|
|
2841
|
+
:param benchmark_id: (required)
|
|
2842
|
+
:type benchmark_id: str
|
|
2843
|
+
:param tags:
|
|
2844
|
+
:type tags: List[str]
|
|
2845
|
+
:param participant_ids:
|
|
2846
|
+
:type participant_ids: List[str]
|
|
2847
|
+
:param leaderboard_ids:
|
|
2848
|
+
:type leaderboard_ids: List[str]
|
|
2849
|
+
:param use_weighted_scoring:
|
|
2850
|
+
:type use_weighted_scoring: bool
|
|
2851
|
+
:param include_confidence_intervals:
|
|
2852
|
+
:type include_confidence_intervals: bool
|
|
2853
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2854
|
+
number provided, it will be total request
|
|
2855
|
+
timeout. It can also be a pair (tuple) of
|
|
2856
|
+
(connection, read) timeouts.
|
|
2857
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2858
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2859
|
+
request; this effectively ignores the
|
|
2860
|
+
authentication in the spec for a single request.
|
|
2861
|
+
:type _request_auth: dict, optional
|
|
2862
|
+
:param _content_type: force content-type for the request.
|
|
2863
|
+
:type _content_type: str, Optional
|
|
2864
|
+
:param _headers: set to override the headers for a single
|
|
2865
|
+
request; this effectively ignores the headers
|
|
2866
|
+
in the spec for a single request.
|
|
2867
|
+
:type _headers: dict, optional
|
|
2868
|
+
:param _host_index: set to override the host_index for a single
|
|
2869
|
+
request; this effectively ignores the host_index
|
|
2870
|
+
in the spec for a single request.
|
|
2871
|
+
:type _host_index: int, optional
|
|
2872
|
+
:return: Returns the result object.
|
|
2873
|
+
""" # noqa: E501
|
|
2874
|
+
|
|
2875
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
2876
|
+
benchmark_id=benchmark_id,
|
|
2877
|
+
tags=tags,
|
|
2878
|
+
participant_ids=participant_ids,
|
|
2879
|
+
leaderboard_ids=leaderboard_ids,
|
|
2880
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
2881
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
2882
|
+
_request_auth=_request_auth,
|
|
2883
|
+
_content_type=_content_type,
|
|
2884
|
+
_headers=_headers,
|
|
2885
|
+
_host_index=_host_index
|
|
2886
|
+
)
|
|
2887
|
+
|
|
2888
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2889
|
+
'200': "StandingsByBenchmarkResult",
|
|
2890
|
+
}
|
|
2891
|
+
response_data = self.api_client.call_api(
|
|
2892
|
+
*_param,
|
|
2893
|
+
_request_timeout=_request_timeout
|
|
2894
|
+
)
|
|
2895
|
+
response_data.read()
|
|
2896
|
+
return self.api_client.response_deserialize(
|
|
2897
|
+
response_data=response_data,
|
|
2898
|
+
response_types_map=_response_types_map,
|
|
2899
|
+
).data
|
|
2900
|
+
|
|
2901
|
+
|
|
2902
|
+
@validate_call
|
|
2903
|
+
def benchmark_benchmark_id_standings_get_with_http_info(
|
|
2904
|
+
self,
|
|
2905
|
+
benchmark_id: StrictStr,
|
|
2906
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2907
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2908
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2909
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2910
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2911
|
+
_request_timeout: Union[
|
|
2912
|
+
None,
|
|
2913
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2914
|
+
Tuple[
|
|
2915
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2916
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2917
|
+
]
|
|
2918
|
+
] = None,
|
|
2919
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2920
|
+
_content_type: Optional[StrictStr] = None,
|
|
2921
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2922
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2923
|
+
) -> ApiResponse[StandingsByBenchmarkResult]:
|
|
2924
|
+
"""benchmark_benchmark_id_standings_get
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
:param benchmark_id: (required)
|
|
2928
|
+
:type benchmark_id: str
|
|
2929
|
+
:param tags:
|
|
2930
|
+
:type tags: List[str]
|
|
2931
|
+
:param participant_ids:
|
|
2932
|
+
:type participant_ids: List[str]
|
|
2933
|
+
:param leaderboard_ids:
|
|
2934
|
+
:type leaderboard_ids: List[str]
|
|
2935
|
+
:param use_weighted_scoring:
|
|
2936
|
+
:type use_weighted_scoring: bool
|
|
2937
|
+
:param include_confidence_intervals:
|
|
2938
|
+
:type include_confidence_intervals: bool
|
|
2939
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2940
|
+
number provided, it will be total request
|
|
2941
|
+
timeout. It can also be a pair (tuple) of
|
|
2942
|
+
(connection, read) timeouts.
|
|
2943
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2944
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2945
|
+
request; this effectively ignores the
|
|
2946
|
+
authentication in the spec for a single request.
|
|
2947
|
+
:type _request_auth: dict, optional
|
|
2948
|
+
:param _content_type: force content-type for the request.
|
|
2949
|
+
:type _content_type: str, Optional
|
|
2950
|
+
:param _headers: set to override the headers for a single
|
|
2951
|
+
request; this effectively ignores the headers
|
|
2952
|
+
in the spec for a single request.
|
|
2953
|
+
:type _headers: dict, optional
|
|
2954
|
+
:param _host_index: set to override the host_index for a single
|
|
2955
|
+
request; this effectively ignores the host_index
|
|
2956
|
+
in the spec for a single request.
|
|
2957
|
+
:type _host_index: int, optional
|
|
2958
|
+
:return: Returns the result object.
|
|
2959
|
+
""" # noqa: E501
|
|
2960
|
+
|
|
2961
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
2962
|
+
benchmark_id=benchmark_id,
|
|
2963
|
+
tags=tags,
|
|
2964
|
+
participant_ids=participant_ids,
|
|
2965
|
+
leaderboard_ids=leaderboard_ids,
|
|
2966
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
2967
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
2968
|
+
_request_auth=_request_auth,
|
|
2969
|
+
_content_type=_content_type,
|
|
2970
|
+
_headers=_headers,
|
|
2971
|
+
_host_index=_host_index
|
|
2972
|
+
)
|
|
2973
|
+
|
|
2974
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2975
|
+
'200': "StandingsByBenchmarkResult",
|
|
2976
|
+
}
|
|
2977
|
+
response_data = self.api_client.call_api(
|
|
2978
|
+
*_param,
|
|
2979
|
+
_request_timeout=_request_timeout
|
|
2980
|
+
)
|
|
2981
|
+
response_data.read()
|
|
2982
|
+
return self.api_client.response_deserialize(
|
|
2983
|
+
response_data=response_data,
|
|
2984
|
+
response_types_map=_response_types_map,
|
|
2985
|
+
)
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
@validate_call
|
|
2989
|
+
def benchmark_benchmark_id_standings_get_without_preload_content(
|
|
2990
|
+
self,
|
|
2991
|
+
benchmark_id: StrictStr,
|
|
2992
|
+
tags: Optional[List[StrictStr]] = None,
|
|
2993
|
+
participant_ids: Optional[List[StrictStr]] = None,
|
|
2994
|
+
leaderboard_ids: Optional[List[StrictStr]] = None,
|
|
2995
|
+
use_weighted_scoring: Optional[StrictBool] = None,
|
|
2996
|
+
include_confidence_intervals: Optional[StrictBool] = None,
|
|
2997
|
+
_request_timeout: Union[
|
|
2998
|
+
None,
|
|
2999
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3000
|
+
Tuple[
|
|
3001
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3002
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3003
|
+
]
|
|
3004
|
+
] = None,
|
|
3005
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3006
|
+
_content_type: Optional[StrictStr] = None,
|
|
3007
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3008
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3009
|
+
) -> RESTResponseType:
|
|
3010
|
+
"""benchmark_benchmark_id_standings_get
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
:param benchmark_id: (required)
|
|
3014
|
+
:type benchmark_id: str
|
|
3015
|
+
:param tags:
|
|
3016
|
+
:type tags: List[str]
|
|
3017
|
+
:param participant_ids:
|
|
3018
|
+
:type participant_ids: List[str]
|
|
3019
|
+
:param leaderboard_ids:
|
|
3020
|
+
:type leaderboard_ids: List[str]
|
|
3021
|
+
:param use_weighted_scoring:
|
|
3022
|
+
:type use_weighted_scoring: bool
|
|
3023
|
+
:param include_confidence_intervals:
|
|
3024
|
+
:type include_confidence_intervals: bool
|
|
3025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3026
|
+
number provided, it will be total request
|
|
3027
|
+
timeout. It can also be a pair (tuple) of
|
|
3028
|
+
(connection, read) timeouts.
|
|
3029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3031
|
+
request; this effectively ignores the
|
|
3032
|
+
authentication in the spec for a single request.
|
|
3033
|
+
:type _request_auth: dict, optional
|
|
3034
|
+
:param _content_type: force content-type for the request.
|
|
3035
|
+
:type _content_type: str, Optional
|
|
3036
|
+
:param _headers: set to override the headers for a single
|
|
3037
|
+
request; this effectively ignores the headers
|
|
3038
|
+
in the spec for a single request.
|
|
3039
|
+
:type _headers: dict, optional
|
|
3040
|
+
:param _host_index: set to override the host_index for a single
|
|
3041
|
+
request; this effectively ignores the host_index
|
|
3042
|
+
in the spec for a single request.
|
|
3043
|
+
:type _host_index: int, optional
|
|
3044
|
+
:return: Returns the result object.
|
|
3045
|
+
""" # noqa: E501
|
|
3046
|
+
|
|
3047
|
+
_param = self._benchmark_benchmark_id_standings_get_serialize(
|
|
3048
|
+
benchmark_id=benchmark_id,
|
|
3049
|
+
tags=tags,
|
|
3050
|
+
participant_ids=participant_ids,
|
|
3051
|
+
leaderboard_ids=leaderboard_ids,
|
|
3052
|
+
use_weighted_scoring=use_weighted_scoring,
|
|
3053
|
+
include_confidence_intervals=include_confidence_intervals,
|
|
3054
|
+
_request_auth=_request_auth,
|
|
3055
|
+
_content_type=_content_type,
|
|
3056
|
+
_headers=_headers,
|
|
3057
|
+
_host_index=_host_index
|
|
3058
|
+
)
|
|
3059
|
+
|
|
3060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3061
|
+
'200': "StandingsByBenchmarkResult",
|
|
3062
|
+
}
|
|
3063
|
+
response_data = self.api_client.call_api(
|
|
3064
|
+
*_param,
|
|
3065
|
+
_request_timeout=_request_timeout
|
|
3066
|
+
)
|
|
3067
|
+
return response_data.response
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
def _benchmark_benchmark_id_standings_get_serialize(
|
|
3071
|
+
self,
|
|
3072
|
+
benchmark_id,
|
|
3073
|
+
tags,
|
|
3074
|
+
participant_ids,
|
|
3075
|
+
leaderboard_ids,
|
|
3076
|
+
use_weighted_scoring,
|
|
3077
|
+
include_confidence_intervals,
|
|
3078
|
+
_request_auth,
|
|
3079
|
+
_content_type,
|
|
3080
|
+
_headers,
|
|
3081
|
+
_host_index,
|
|
3082
|
+
) -> RequestSerialized:
|
|
3083
|
+
|
|
3084
|
+
_host = None
|
|
3085
|
+
|
|
3086
|
+
_collection_formats: Dict[str, str] = {
|
|
3087
|
+
'tags': 'multi',
|
|
3088
|
+
'participantIds': 'multi',
|
|
3089
|
+
'leaderboardIds': 'multi',
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
_path_params: Dict[str, str] = {}
|
|
3093
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3094
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3095
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3096
|
+
_files: Dict[
|
|
3097
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3098
|
+
] = {}
|
|
3099
|
+
_body_params: Optional[bytes] = None
|
|
3100
|
+
|
|
3101
|
+
# process the path parameters
|
|
3102
|
+
if benchmark_id is not None:
|
|
3103
|
+
_path_params['benchmarkId'] = benchmark_id
|
|
3104
|
+
# process the query parameters
|
|
3105
|
+
if tags is not None:
|
|
3106
|
+
|
|
3107
|
+
_query_params.append(('tags', tags))
|
|
3108
|
+
|
|
3109
|
+
if participant_ids is not None:
|
|
3110
|
+
|
|
3111
|
+
_query_params.append(('participantIds', participant_ids))
|
|
3112
|
+
|
|
3113
|
+
if leaderboard_ids is not None:
|
|
3114
|
+
|
|
3115
|
+
_query_params.append(('leaderboardIds', leaderboard_ids))
|
|
3116
|
+
|
|
3117
|
+
if use_weighted_scoring is not None:
|
|
3118
|
+
|
|
3119
|
+
_query_params.append(('useWeightedScoring', use_weighted_scoring))
|
|
3120
|
+
|
|
3121
|
+
if include_confidence_intervals is not None:
|
|
3122
|
+
|
|
3123
|
+
_query_params.append(('includeConfidenceIntervals', include_confidence_intervals))
|
|
3124
|
+
|
|
3125
|
+
# process the header parameters
|
|
3126
|
+
# process the form parameters
|
|
3127
|
+
# process the body parameter
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
# set the HTTP header `Accept`
|
|
3131
|
+
if 'Accept' not in _header_params:
|
|
3132
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3133
|
+
[
|
|
3134
|
+
'text/plain',
|
|
3135
|
+
'application/json',
|
|
3136
|
+
'text/json'
|
|
3137
|
+
]
|
|
3138
|
+
)
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
# authentication setting
|
|
3142
|
+
_auth_settings: List[str] = [
|
|
3143
|
+
'OAuth2',
|
|
3144
|
+
'OpenIdConnect',
|
|
3145
|
+
'Bearer'
|
|
3146
|
+
]
|
|
3147
|
+
|
|
3148
|
+
return self.api_client.param_serialize(
|
|
3149
|
+
method='GET',
|
|
3150
|
+
resource_path='/benchmark/{benchmarkId}/standings',
|
|
3151
|
+
path_params=_path_params,
|
|
3152
|
+
query_params=_query_params,
|
|
3153
|
+
header_params=_header_params,
|
|
3154
|
+
body=_body_params,
|
|
3155
|
+
post_params=_form_params,
|
|
3156
|
+
files=_files,
|
|
3157
|
+
auth_settings=_auth_settings,
|
|
3158
|
+
collection_formats=_collection_formats,
|
|
3159
|
+
_host=_host,
|
|
3160
|
+
_request_auth=_request_auth
|
|
3161
|
+
)
|
|
3162
|
+
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
|
|
2804
3166
|
@validate_call
|
|
2805
3167
|
def benchmark_benchmark_id_tags_get(
|
|
2806
3168
|
self,
|
|
@@ -3040,8 +3402,9 @@ class BenchmarkApi:
|
|
|
3040
3402
|
|
|
3041
3403
|
# authentication setting
|
|
3042
3404
|
_auth_settings: List[str] = [
|
|
3043
|
-
'
|
|
3044
|
-
'
|
|
3405
|
+
'OAuth2',
|
|
3406
|
+
'OpenIdConnect',
|
|
3407
|
+
'Bearer'
|
|
3045
3408
|
]
|
|
3046
3409
|
|
|
3047
3410
|
return self.api_client.param_serialize(
|
|
@@ -3065,7 +3428,7 @@ class BenchmarkApi:
|
|
|
3065
3428
|
@validate_call
|
|
3066
3429
|
def benchmark_post(
|
|
3067
3430
|
self,
|
|
3068
|
-
create_benchmark_model:
|
|
3431
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3069
3432
|
_request_timeout: Union[
|
|
3070
3433
|
None,
|
|
3071
3434
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3082,7 +3445,7 @@ class BenchmarkApi:
|
|
|
3082
3445
|
"""Creates a benchmark
|
|
3083
3446
|
|
|
3084
3447
|
|
|
3085
|
-
:param create_benchmark_model:
|
|
3448
|
+
:param create_benchmark_model: (required)
|
|
3086
3449
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
3087
3450
|
:param _request_timeout: timeout setting for this request. If one
|
|
3088
3451
|
number provided, it will be total request
|
|
@@ -3131,7 +3494,7 @@ class BenchmarkApi:
|
|
|
3131
3494
|
@validate_call
|
|
3132
3495
|
def benchmark_post_with_http_info(
|
|
3133
3496
|
self,
|
|
3134
|
-
create_benchmark_model:
|
|
3497
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3135
3498
|
_request_timeout: Union[
|
|
3136
3499
|
None,
|
|
3137
3500
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3148,7 +3511,7 @@ class BenchmarkApi:
|
|
|
3148
3511
|
"""Creates a benchmark
|
|
3149
3512
|
|
|
3150
3513
|
|
|
3151
|
-
:param create_benchmark_model:
|
|
3514
|
+
:param create_benchmark_model: (required)
|
|
3152
3515
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
3153
3516
|
:param _request_timeout: timeout setting for this request. If one
|
|
3154
3517
|
number provided, it will be total request
|
|
@@ -3197,7 +3560,7 @@ class BenchmarkApi:
|
|
|
3197
3560
|
@validate_call
|
|
3198
3561
|
def benchmark_post_without_preload_content(
|
|
3199
3562
|
self,
|
|
3200
|
-
create_benchmark_model:
|
|
3563
|
+
create_benchmark_model: CreateBenchmarkModel,
|
|
3201
3564
|
_request_timeout: Union[
|
|
3202
3565
|
None,
|
|
3203
3566
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -3214,7 +3577,7 @@ class BenchmarkApi:
|
|
|
3214
3577
|
"""Creates a benchmark
|
|
3215
3578
|
|
|
3216
3579
|
|
|
3217
|
-
:param create_benchmark_model:
|
|
3580
|
+
:param create_benchmark_model: (required)
|
|
3218
3581
|
:type create_benchmark_model: CreateBenchmarkModel
|
|
3219
3582
|
:param _request_timeout: timeout setting for this request. If one
|
|
3220
3583
|
number provided, it will be total request
|
|
@@ -3316,8 +3679,9 @@ class BenchmarkApi:
|
|
|
3316
3679
|
|
|
3317
3680
|
# authentication setting
|
|
3318
3681
|
_auth_settings: List[str] = [
|
|
3319
|
-
'
|
|
3320
|
-
'
|
|
3682
|
+
'OAuth2',
|
|
3683
|
+
'OpenIdConnect',
|
|
3684
|
+
'Bearer'
|
|
3321
3685
|
]
|
|
3322
3686
|
|
|
3323
3687
|
return self.api_client.param_serialize(
|
|
@@ -3354,7 +3718,7 @@ class BenchmarkApi:
|
|
|
3354
3718
|
_content_type: Optional[StrictStr] = None,
|
|
3355
3719
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3356
3720
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3357
|
-
) ->
|
|
3721
|
+
) -> PagedResultOfBenchmarkQueryResult:
|
|
3358
3722
|
"""Queries all benchmarks of the user.
|
|
3359
3723
|
|
|
3360
3724
|
|
|
@@ -3391,7 +3755,7 @@ class BenchmarkApi:
|
|
|
3391
3755
|
)
|
|
3392
3756
|
|
|
3393
3757
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3394
|
-
'200': "
|
|
3758
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3395
3759
|
}
|
|
3396
3760
|
response_data = self.api_client.call_api(
|
|
3397
3761
|
*_param,
|
|
@@ -3420,7 +3784,7 @@ class BenchmarkApi:
|
|
|
3420
3784
|
_content_type: Optional[StrictStr] = None,
|
|
3421
3785
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3422
3786
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3423
|
-
) -> ApiResponse[
|
|
3787
|
+
) -> ApiResponse[PagedResultOfBenchmarkQueryResult]:
|
|
3424
3788
|
"""Queries all benchmarks of the user.
|
|
3425
3789
|
|
|
3426
3790
|
|
|
@@ -3457,7 +3821,7 @@ class BenchmarkApi:
|
|
|
3457
3821
|
)
|
|
3458
3822
|
|
|
3459
3823
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3460
|
-
'200': "
|
|
3824
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3461
3825
|
}
|
|
3462
3826
|
response_data = self.api_client.call_api(
|
|
3463
3827
|
*_param,
|
|
@@ -3523,7 +3887,7 @@ class BenchmarkApi:
|
|
|
3523
3887
|
)
|
|
3524
3888
|
|
|
3525
3889
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
3526
|
-
'200': "
|
|
3890
|
+
'200': "PagedResultOfBenchmarkQueryResult",
|
|
3527
3891
|
}
|
|
3528
3892
|
response_data = self.api_client.call_api(
|
|
3529
3893
|
*_param,
|
|
@@ -3579,8 +3943,9 @@ class BenchmarkApi:
|
|
|
3579
3943
|
|
|
3580
3944
|
# authentication setting
|
|
3581
3945
|
_auth_settings: List[str] = [
|
|
3582
|
-
'
|
|
3583
|
-
'
|
|
3946
|
+
'OAuth2',
|
|
3947
|
+
'OpenIdConnect',
|
|
3948
|
+
'Bearer'
|
|
3584
3949
|
]
|
|
3585
3950
|
|
|
3586
3951
|
return self.api_client.param_serialize(
|