rapidata 2.36.0__py3-none-any.whl → 2.36.1__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 CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.36.0"
1
+ __version__ = "2.36.1"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -61,7 +61,6 @@ from rapidata.api_client.models.add_validation_rapid_model import AddValidationR
61
61
  from rapidata.api_client.models.add_validation_rapid_model_payload import AddValidationRapidModelPayload
62
62
  from rapidata.api_client.models.add_validation_rapid_model_truth import AddValidationRapidModelTruth
63
63
  from rapidata.api_client.models.add_validation_rapid_result import AddValidationRapidResult
64
- from rapidata.api_client.models.add_validation_text_rapid_model import AddValidationTextRapidModel
65
64
  from rapidata.api_client.models.age_group import AgeGroup
66
65
  from rapidata.api_client.models.age_user_filter_model import AgeUserFilterModel
67
66
  from rapidata.api_client.models.aggregator_type import AggregatorType
@@ -73,6 +72,7 @@ from rapidata.api_client.models.are_rapids_active_result import AreRapidsActiveR
73
72
  from rapidata.api_client.models.asset_metadata import AssetMetadata
74
73
  from rapidata.api_client.models.asset_metadata_asset import AssetMetadataAsset
75
74
  from rapidata.api_client.models.asset_metadata_model import AssetMetadataModel
75
+ from rapidata.api_client.models.asset_type import AssetType
76
76
  from rapidata.api_client.models.attach_category_rapid_blueprint import AttachCategoryRapidBlueprint
77
77
  from rapidata.api_client.models.attach_category_result import AttachCategoryResult
78
78
  from rapidata.api_client.models.attach_category_truth import AttachCategoryTruth
@@ -332,6 +332,7 @@ from rapidata.api_client.models.prompt_by_benchmark_result_paged_result import P
332
332
  from rapidata.api_client.models.prompt_metadata import PromptMetadata
333
333
  from rapidata.api_client.models.prompt_metadata_input import PromptMetadataInput
334
334
  from rapidata.api_client.models.prompt_metadata_model import PromptMetadataModel
335
+ from rapidata.api_client.models.prompt_type import PromptType
335
336
  from rapidata.api_client.models.proxy_file_wrapper import ProxyFileWrapper
336
337
  from rapidata.api_client.models.public_order_model import PublicOrderModel
337
338
  from rapidata.api_client.models.public_rapid_response import PublicRapidResponse
@@ -339,6 +340,7 @@ from rapidata.api_client.models.public_text_metadata_input import PublicTextMeta
339
340
  from rapidata.api_client.models.query_model import QueryModel
340
341
  from rapidata.api_client.models.query_validation_model import QueryValidationModel
341
342
  from rapidata.api_client.models.rapid_issue import RapidIssue
343
+ from rapidata.api_client.models.rapid_modality import RapidModality
342
344
  from rapidata.api_client.models.rapid_model import RapidModel
343
345
  from rapidata.api_client.models.rapid_model_paged_result import RapidModelPagedResult
344
346
  from rapidata.api_client.models.rapid_model_referee import RapidModelReferee
@@ -418,6 +420,7 @@ from rapidata.api_client.models.unlock_order_result import UnlockOrderResult
418
420
  from rapidata.api_client.models.update_benchmark_name_model import UpdateBenchmarkNameModel
419
421
  from rapidata.api_client.models.update_dataset_name_model import UpdateDatasetNameModel
420
422
  from rapidata.api_client.models.update_dimensions_model import UpdateDimensionsModel
423
+ from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
421
424
  from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
422
425
  from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
423
426
  from rapidata.api_client.models.update_order_name_model import UpdateOrderNameModel
@@ -33,6 +33,7 @@ from rapidata.api_client.models.runs_by_leaderboard_result_paged_result import R
33
33
  from rapidata.api_client.models.standing_by_leaderboard_paged_result import StandingByLeaderboardPagedResult
34
34
  from rapidata.api_client.models.standings_by_leaderboard_result import StandingsByLeaderboardResult
35
35
  from rapidata.api_client.models.submit_participant_result import SubmitParticipantResult
36
+ from rapidata.api_client.models.update_leaderboard_model import UpdateLeaderboardModel
36
37
  from rapidata.api_client.models.update_leaderboard_name_model import UpdateLeaderboardNameModel
37
38
  from rapidata.api_client.models.update_leaderboard_response_config_model import UpdateLeaderboardResponseConfigModel
38
39
 
@@ -1152,7 +1153,7 @@ class LeaderboardApi:
1152
1153
  _headers: Optional[Dict[StrictStr, Any]] = None,
1153
1154
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1154
1155
  ) -> None:
1155
- """Updates the name of a leaderboard.
1156
+ """(Deprecated) Updates the name of a leaderboard.
1156
1157
 
1157
1158
 
1158
1159
  :param leaderboard_id: (required)
@@ -1180,6 +1181,7 @@ class LeaderboardApi:
1180
1181
  :type _host_index: int, optional
1181
1182
  :return: Returns the result object.
1182
1183
  """ # noqa: E501
1184
+ warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1183
1185
 
1184
1186
  _param = self._leaderboard_leaderboard_id_name_put_serialize(
1185
1187
  leaderboard_id=leaderboard_id,
@@ -1222,7 +1224,7 @@ class LeaderboardApi:
1222
1224
  _headers: Optional[Dict[StrictStr, Any]] = None,
1223
1225
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1224
1226
  ) -> ApiResponse[None]:
1225
- """Updates the name of a leaderboard.
1227
+ """(Deprecated) Updates the name of a leaderboard.
1226
1228
 
1227
1229
 
1228
1230
  :param leaderboard_id: (required)
@@ -1250,6 +1252,7 @@ class LeaderboardApi:
1250
1252
  :type _host_index: int, optional
1251
1253
  :return: Returns the result object.
1252
1254
  """ # noqa: E501
1255
+ warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1253
1256
 
1254
1257
  _param = self._leaderboard_leaderboard_id_name_put_serialize(
1255
1258
  leaderboard_id=leaderboard_id,
@@ -1292,7 +1295,7 @@ class LeaderboardApi:
1292
1295
  _headers: Optional[Dict[StrictStr, Any]] = None,
1293
1296
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1294
1297
  ) -> RESTResponseType:
1295
- """Updates the name of a leaderboard.
1298
+ """(Deprecated) Updates the name of a leaderboard.
1296
1299
 
1297
1300
 
1298
1301
  :param leaderboard_id: (required)
@@ -1320,6 +1323,7 @@ class LeaderboardApi:
1320
1323
  :type _host_index: int, optional
1321
1324
  :return: Returns the result object.
1322
1325
  """ # noqa: E501
1326
+ warnings.warn("PUT /leaderboard/{leaderboardId}/name is deprecated.", DeprecationWarning)
1323
1327
 
1324
1328
  _param = self._leaderboard_leaderboard_id_name_put_serialize(
1325
1329
  leaderboard_id=leaderboard_id,
@@ -2532,6 +2536,288 @@ class LeaderboardApi:
2532
2536
 
2533
2537
 
2534
2538
 
2539
+ @validate_call
2540
+ def leaderboard_leaderboard_id_patch(
2541
+ self,
2542
+ leaderboard_id: StrictStr,
2543
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2544
+ _request_timeout: Union[
2545
+ None,
2546
+ Annotated[StrictFloat, Field(gt=0)],
2547
+ Tuple[
2548
+ Annotated[StrictFloat, Field(gt=0)],
2549
+ Annotated[StrictFloat, Field(gt=0)]
2550
+ ]
2551
+ ] = None,
2552
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2553
+ _content_type: Optional[StrictStr] = None,
2554
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2555
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2556
+ ) -> None:
2557
+ """Updates the response config of a leaderboard.
2558
+
2559
+
2560
+ :param leaderboard_id: (required)
2561
+ :type leaderboard_id: str
2562
+ :param update_leaderboard_model:
2563
+ :type update_leaderboard_model: UpdateLeaderboardModel
2564
+ :param _request_timeout: timeout setting for this request. If one
2565
+ number provided, it will be total request
2566
+ timeout. It can also be a pair (tuple) of
2567
+ (connection, read) timeouts.
2568
+ :type _request_timeout: int, tuple(int, int), optional
2569
+ :param _request_auth: set to override the auth_settings for an a single
2570
+ request; this effectively ignores the
2571
+ authentication in the spec for a single request.
2572
+ :type _request_auth: dict, optional
2573
+ :param _content_type: force content-type for the request.
2574
+ :type _content_type: str, Optional
2575
+ :param _headers: set to override the headers for a single
2576
+ request; this effectively ignores the headers
2577
+ in the spec for a single request.
2578
+ :type _headers: dict, optional
2579
+ :param _host_index: set to override the host_index for a single
2580
+ request; this effectively ignores the host_index
2581
+ in the spec for a single request.
2582
+ :type _host_index: int, optional
2583
+ :return: Returns the result object.
2584
+ """ # noqa: E501
2585
+
2586
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
2587
+ leaderboard_id=leaderboard_id,
2588
+ update_leaderboard_model=update_leaderboard_model,
2589
+ _request_auth=_request_auth,
2590
+ _content_type=_content_type,
2591
+ _headers=_headers,
2592
+ _host_index=_host_index
2593
+ )
2594
+
2595
+ _response_types_map: Dict[str, Optional[str]] = {
2596
+ '204': None,
2597
+ }
2598
+ response_data = self.api_client.call_api(
2599
+ *_param,
2600
+ _request_timeout=_request_timeout
2601
+ )
2602
+ response_data.read()
2603
+ return self.api_client.response_deserialize(
2604
+ response_data=response_data,
2605
+ response_types_map=_response_types_map,
2606
+ ).data
2607
+
2608
+
2609
+ @validate_call
2610
+ def leaderboard_leaderboard_id_patch_with_http_info(
2611
+ self,
2612
+ leaderboard_id: StrictStr,
2613
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2614
+ _request_timeout: Union[
2615
+ None,
2616
+ Annotated[StrictFloat, Field(gt=0)],
2617
+ Tuple[
2618
+ Annotated[StrictFloat, Field(gt=0)],
2619
+ Annotated[StrictFloat, Field(gt=0)]
2620
+ ]
2621
+ ] = None,
2622
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2623
+ _content_type: Optional[StrictStr] = None,
2624
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2625
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2626
+ ) -> ApiResponse[None]:
2627
+ """Updates the response config of a leaderboard.
2628
+
2629
+
2630
+ :param leaderboard_id: (required)
2631
+ :type leaderboard_id: str
2632
+ :param update_leaderboard_model:
2633
+ :type update_leaderboard_model: UpdateLeaderboardModel
2634
+ :param _request_timeout: timeout setting for this request. If one
2635
+ number provided, it will be total request
2636
+ timeout. It can also be a pair (tuple) of
2637
+ (connection, read) timeouts.
2638
+ :type _request_timeout: int, tuple(int, int), optional
2639
+ :param _request_auth: set to override the auth_settings for an a single
2640
+ request; this effectively ignores the
2641
+ authentication in the spec for a single request.
2642
+ :type _request_auth: dict, optional
2643
+ :param _content_type: force content-type for the request.
2644
+ :type _content_type: str, Optional
2645
+ :param _headers: set to override the headers for a single
2646
+ request; this effectively ignores the headers
2647
+ in the spec for a single request.
2648
+ :type _headers: dict, optional
2649
+ :param _host_index: set to override the host_index for a single
2650
+ request; this effectively ignores the host_index
2651
+ in the spec for a single request.
2652
+ :type _host_index: int, optional
2653
+ :return: Returns the result object.
2654
+ """ # noqa: E501
2655
+
2656
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
2657
+ leaderboard_id=leaderboard_id,
2658
+ update_leaderboard_model=update_leaderboard_model,
2659
+ _request_auth=_request_auth,
2660
+ _content_type=_content_type,
2661
+ _headers=_headers,
2662
+ _host_index=_host_index
2663
+ )
2664
+
2665
+ _response_types_map: Dict[str, Optional[str]] = {
2666
+ '204': None,
2667
+ }
2668
+ response_data = self.api_client.call_api(
2669
+ *_param,
2670
+ _request_timeout=_request_timeout
2671
+ )
2672
+ response_data.read()
2673
+ return self.api_client.response_deserialize(
2674
+ response_data=response_data,
2675
+ response_types_map=_response_types_map,
2676
+ )
2677
+
2678
+
2679
+ @validate_call
2680
+ def leaderboard_leaderboard_id_patch_without_preload_content(
2681
+ self,
2682
+ leaderboard_id: StrictStr,
2683
+ update_leaderboard_model: Optional[UpdateLeaderboardModel] = None,
2684
+ _request_timeout: Union[
2685
+ None,
2686
+ Annotated[StrictFloat, Field(gt=0)],
2687
+ Tuple[
2688
+ Annotated[StrictFloat, Field(gt=0)],
2689
+ Annotated[StrictFloat, Field(gt=0)]
2690
+ ]
2691
+ ] = None,
2692
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2693
+ _content_type: Optional[StrictStr] = None,
2694
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2695
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2696
+ ) -> RESTResponseType:
2697
+ """Updates the response config of a leaderboard.
2698
+
2699
+
2700
+ :param leaderboard_id: (required)
2701
+ :type leaderboard_id: str
2702
+ :param update_leaderboard_model:
2703
+ :type update_leaderboard_model: UpdateLeaderboardModel
2704
+ :param _request_timeout: timeout setting for this request. If one
2705
+ number provided, it will be total request
2706
+ timeout. It can also be a pair (tuple) of
2707
+ (connection, read) timeouts.
2708
+ :type _request_timeout: int, tuple(int, int), optional
2709
+ :param _request_auth: set to override the auth_settings for an a single
2710
+ request; this effectively ignores the
2711
+ authentication in the spec for a single request.
2712
+ :type _request_auth: dict, optional
2713
+ :param _content_type: force content-type for the request.
2714
+ :type _content_type: str, Optional
2715
+ :param _headers: set to override the headers for a single
2716
+ request; this effectively ignores the headers
2717
+ in the spec for a single request.
2718
+ :type _headers: dict, optional
2719
+ :param _host_index: set to override the host_index for a single
2720
+ request; this effectively ignores the host_index
2721
+ in the spec for a single request.
2722
+ :type _host_index: int, optional
2723
+ :return: Returns the result object.
2724
+ """ # noqa: E501
2725
+
2726
+ _param = self._leaderboard_leaderboard_id_patch_serialize(
2727
+ leaderboard_id=leaderboard_id,
2728
+ update_leaderboard_model=update_leaderboard_model,
2729
+ _request_auth=_request_auth,
2730
+ _content_type=_content_type,
2731
+ _headers=_headers,
2732
+ _host_index=_host_index
2733
+ )
2734
+
2735
+ _response_types_map: Dict[str, Optional[str]] = {
2736
+ '204': None,
2737
+ }
2738
+ response_data = self.api_client.call_api(
2739
+ *_param,
2740
+ _request_timeout=_request_timeout
2741
+ )
2742
+ return response_data.response
2743
+
2744
+
2745
+ def _leaderboard_leaderboard_id_patch_serialize(
2746
+ self,
2747
+ leaderboard_id,
2748
+ update_leaderboard_model,
2749
+ _request_auth,
2750
+ _content_type,
2751
+ _headers,
2752
+ _host_index,
2753
+ ) -> RequestSerialized:
2754
+
2755
+ _host = None
2756
+
2757
+ _collection_formats: Dict[str, str] = {
2758
+ }
2759
+
2760
+ _path_params: Dict[str, str] = {}
2761
+ _query_params: List[Tuple[str, str]] = []
2762
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2763
+ _form_params: List[Tuple[str, str]] = []
2764
+ _files: Dict[
2765
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2766
+ ] = {}
2767
+ _body_params: Optional[bytes] = None
2768
+
2769
+ # process the path parameters
2770
+ if leaderboard_id is not None:
2771
+ _path_params['leaderboardId'] = leaderboard_id
2772
+ # process the query parameters
2773
+ # process the header parameters
2774
+ # process the form parameters
2775
+ # process the body parameter
2776
+ if update_leaderboard_model is not None:
2777
+ _body_params = update_leaderboard_model
2778
+
2779
+
2780
+
2781
+ # set the HTTP header `Content-Type`
2782
+ if _content_type:
2783
+ _header_params['Content-Type'] = _content_type
2784
+ else:
2785
+ _default_content_type = (
2786
+ self.api_client.select_header_content_type(
2787
+ [
2788
+ 'application/json',
2789
+ 'text/json',
2790
+ 'application/*+json'
2791
+ ]
2792
+ )
2793
+ )
2794
+ if _default_content_type is not None:
2795
+ _header_params['Content-Type'] = _default_content_type
2796
+
2797
+ # authentication setting
2798
+ _auth_settings: List[str] = [
2799
+ 'bearer',
2800
+ 'oauth2'
2801
+ ]
2802
+
2803
+ return self.api_client.param_serialize(
2804
+ method='PATCH',
2805
+ resource_path='/leaderboard/{leaderboardId}',
2806
+ path_params=_path_params,
2807
+ query_params=_query_params,
2808
+ header_params=_header_params,
2809
+ body=_body_params,
2810
+ post_params=_form_params,
2811
+ files=_files,
2812
+ auth_settings=_auth_settings,
2813
+ collection_formats=_collection_formats,
2814
+ _host=_host,
2815
+ _request_auth=_request_auth
2816
+ )
2817
+
2818
+
2819
+
2820
+
2535
2821
  @validate_call
2536
2822
  def leaderboard_leaderboard_id_prompts_get(
2537
2823
  self,
@@ -3117,7 +3403,7 @@ class LeaderboardApi:
3117
3403
  _headers: Optional[Dict[StrictStr, Any]] = None,
3118
3404
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3119
3405
  ) -> None:
3120
- """Updates the response config of a leaderboard.
3406
+ """(Deprecated) Updates the response config of a leaderboard.
3121
3407
 
3122
3408
 
3123
3409
  :param leaderboard_id: (required)
@@ -3145,6 +3431,7 @@ class LeaderboardApi:
3145
3431
  :type _host_index: int, optional
3146
3432
  :return: Returns the result object.
3147
3433
  """ # noqa: E501
3434
+ warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3148
3435
 
3149
3436
  _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
3150
3437
  leaderboard_id=leaderboard_id,
@@ -3187,7 +3474,7 @@ class LeaderboardApi:
3187
3474
  _headers: Optional[Dict[StrictStr, Any]] = None,
3188
3475
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3189
3476
  ) -> ApiResponse[None]:
3190
- """Updates the response config of a leaderboard.
3477
+ """(Deprecated) Updates the response config of a leaderboard.
3191
3478
 
3192
3479
 
3193
3480
  :param leaderboard_id: (required)
@@ -3215,6 +3502,7 @@ class LeaderboardApi:
3215
3502
  :type _host_index: int, optional
3216
3503
  :return: Returns the result object.
3217
3504
  """ # noqa: E501
3505
+ warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3218
3506
 
3219
3507
  _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
3220
3508
  leaderboard_id=leaderboard_id,
@@ -3257,7 +3545,7 @@ class LeaderboardApi:
3257
3545
  _headers: Optional[Dict[StrictStr, Any]] = None,
3258
3546
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
3259
3547
  ) -> RESTResponseType:
3260
- """Updates the response config of a leaderboard.
3548
+ """(Deprecated) Updates the response config of a leaderboard.
3261
3549
 
3262
3550
 
3263
3551
  :param leaderboard_id: (required)
@@ -3285,6 +3573,7 @@ class LeaderboardApi:
3285
3573
  :type _host_index: int, optional
3286
3574
  :return: Returns the result object.
3287
3575
  """ # noqa: E501
3576
+ warnings.warn("PUT /leaderboard/{leaderboardId}/response-config is deprecated.", DeprecationWarning)
3288
3577
 
3289
3578
  _param = self._leaderboard_leaderboard_id_response_config_put_serialize(
3290
3579
  leaderboard_id=leaderboard_id,