rapidata 2.32.0__py3-none-any.whl → 2.33.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.

Files changed (26) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +6 -0
  3. rapidata/api_client/api/benchmark_api.py +194 -200
  4. rapidata/api_client/api/order_api.py +68 -6
  5. rapidata/api_client/api/participant_api.py +945 -130
  6. rapidata/api_client/api/validation_set_api.py +1106 -253
  7. rapidata/api_client/models/__init__.py +6 -0
  8. rapidata/api_client/models/benchmark_query_result.py +4 -2
  9. rapidata/api_client/models/preview_order_model.py +87 -0
  10. rapidata/api_client/models/prompt_by_benchmark_result.py +4 -2
  11. rapidata/api_client/models/sample_by_participant.py +120 -0
  12. rapidata/api_client/models/sample_by_participant_paged_result.py +105 -0
  13. rapidata/api_client/models/submit_order_model.py +87 -0
  14. rapidata/api_client/models/submit_prompt_model.py +9 -2
  15. rapidata/api_client/models/update_participant_name_model.py +87 -0
  16. rapidata/api_client/models/update_should_alert_model.py +87 -0
  17. rapidata/api_client_README.md +13 -1
  18. rapidata/rapidata_client/exceptions/failed_upload_exception.py +35 -1
  19. rapidata/rapidata_client/order/_rapidata_order_builder.py +20 -7
  20. rapidata/rapidata_client/order/rapidata_order.py +4 -2
  21. rapidata/rapidata_client/order/rapidata_order_manager.py +14 -0
  22. rapidata/rapidata_client/validation/rapidata_validation_set.py +17 -1
  23. {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/METADATA +1 -1
  24. {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/RECORD +26 -20
  25. {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/LICENSE +0 -0
  26. {rapidata-2.32.0.dist-info → rapidata-2.33.1.dist-info}/WHEEL +0 -0
@@ -1377,10 +1377,10 @@ class BenchmarkApi:
1377
1377
 
1378
1378
 
1379
1379
  @validate_call
1380
- def benchmark_benchmark_id_participants_participant_id_disable_post(
1380
+ def benchmark_benchmark_id_participants_participant_id_submit_post(
1381
1381
  self,
1382
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark the participant belongs to")],
1383
- participant_id: Annotated[StrictStr, Field(description="The id of the participant to be disabled")],
1382
+ benchmark_id: StrictStr,
1383
+ participant_id: StrictStr,
1384
1384
  _request_timeout: Union[
1385
1385
  None,
1386
1386
  Annotated[StrictFloat, Field(gt=0)],
@@ -1393,13 +1393,13 @@ class BenchmarkApi:
1393
1393
  _content_type: Optional[StrictStr] = None,
1394
1394
  _headers: Optional[Dict[StrictStr, Any]] = None,
1395
1395
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1396
- ) -> None:
1397
- """This endpoint disables a participant in a benchmark. this means that the participant will no longer actively be matched up against other participants and not collect further results. It will still be visible in the leaderboard.
1396
+ ) -> SubmitParticipantResult:
1397
+ """(Deprecated) Submits a participant to a benchmark.
1398
1398
 
1399
1399
 
1400
- :param benchmark_id: The benchmark the participant belongs to (required)
1400
+ :param benchmark_id: (required)
1401
1401
  :type benchmark_id: str
1402
- :param participant_id: The id of the participant to be disabled (required)
1402
+ :param participant_id: (required)
1403
1403
  :type participant_id: str
1404
1404
  :param _request_timeout: timeout setting for this request. If one
1405
1405
  number provided, it will be total request
@@ -1422,8 +1422,9 @@ class BenchmarkApi:
1422
1422
  :type _host_index: int, optional
1423
1423
  :return: Returns the result object.
1424
1424
  """ # noqa: E501
1425
+ warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1425
1426
 
1426
- _param = self._benchmark_benchmark_id_participants_participant_id_disable_post_serialize(
1427
+ _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1427
1428
  benchmark_id=benchmark_id,
1428
1429
  participant_id=participant_id,
1429
1430
  _request_auth=_request_auth,
@@ -1433,7 +1434,7 @@ class BenchmarkApi:
1433
1434
  )
1434
1435
 
1435
1436
  _response_types_map: Dict[str, Optional[str]] = {
1436
- '200': None,
1437
+ '200': "SubmitParticipantResult",
1437
1438
  }
1438
1439
  response_data = self.api_client.call_api(
1439
1440
  *_param,
@@ -1447,10 +1448,10 @@ class BenchmarkApi:
1447
1448
 
1448
1449
 
1449
1450
  @validate_call
1450
- def benchmark_benchmark_id_participants_participant_id_disable_post_with_http_info(
1451
+ def benchmark_benchmark_id_participants_participant_id_submit_post_with_http_info(
1451
1452
  self,
1452
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark the participant belongs to")],
1453
- participant_id: Annotated[StrictStr, Field(description="The id of the participant to be disabled")],
1453
+ benchmark_id: StrictStr,
1454
+ participant_id: StrictStr,
1454
1455
  _request_timeout: Union[
1455
1456
  None,
1456
1457
  Annotated[StrictFloat, Field(gt=0)],
@@ -1463,13 +1464,13 @@ class BenchmarkApi:
1463
1464
  _content_type: Optional[StrictStr] = None,
1464
1465
  _headers: Optional[Dict[StrictStr, Any]] = None,
1465
1466
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1466
- ) -> ApiResponse[None]:
1467
- """This endpoint disables a participant in a benchmark. this means that the participant will no longer actively be matched up against other participants and not collect further results. It will still be visible in the leaderboard.
1467
+ ) -> ApiResponse[SubmitParticipantResult]:
1468
+ """(Deprecated) Submits a participant to a benchmark.
1468
1469
 
1469
1470
 
1470
- :param benchmark_id: The benchmark the participant belongs to (required)
1471
+ :param benchmark_id: (required)
1471
1472
  :type benchmark_id: str
1472
- :param participant_id: The id of the participant to be disabled (required)
1473
+ :param participant_id: (required)
1473
1474
  :type participant_id: str
1474
1475
  :param _request_timeout: timeout setting for this request. If one
1475
1476
  number provided, it will be total request
@@ -1492,8 +1493,9 @@ class BenchmarkApi:
1492
1493
  :type _host_index: int, optional
1493
1494
  :return: Returns the result object.
1494
1495
  """ # noqa: E501
1496
+ warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1495
1497
 
1496
- _param = self._benchmark_benchmark_id_participants_participant_id_disable_post_serialize(
1498
+ _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1497
1499
  benchmark_id=benchmark_id,
1498
1500
  participant_id=participant_id,
1499
1501
  _request_auth=_request_auth,
@@ -1503,7 +1505,7 @@ class BenchmarkApi:
1503
1505
  )
1504
1506
 
1505
1507
  _response_types_map: Dict[str, Optional[str]] = {
1506
- '200': None,
1508
+ '200': "SubmitParticipantResult",
1507
1509
  }
1508
1510
  response_data = self.api_client.call_api(
1509
1511
  *_param,
@@ -1517,10 +1519,10 @@ class BenchmarkApi:
1517
1519
 
1518
1520
 
1519
1521
  @validate_call
1520
- def benchmark_benchmark_id_participants_participant_id_disable_post_without_preload_content(
1522
+ def benchmark_benchmark_id_participants_participant_id_submit_post_without_preload_content(
1521
1523
  self,
1522
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark the participant belongs to")],
1523
- participant_id: Annotated[StrictStr, Field(description="The id of the participant to be disabled")],
1524
+ benchmark_id: StrictStr,
1525
+ participant_id: StrictStr,
1524
1526
  _request_timeout: Union[
1525
1527
  None,
1526
1528
  Annotated[StrictFloat, Field(gt=0)],
@@ -1534,12 +1536,12 @@ class BenchmarkApi:
1534
1536
  _headers: Optional[Dict[StrictStr, Any]] = None,
1535
1537
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1536
1538
  ) -> RESTResponseType:
1537
- """This endpoint disables a participant in a benchmark. this means that the participant will no longer actively be matched up against other participants and not collect further results. It will still be visible in the leaderboard.
1539
+ """(Deprecated) Submits a participant to a benchmark.
1538
1540
 
1539
1541
 
1540
- :param benchmark_id: The benchmark the participant belongs to (required)
1542
+ :param benchmark_id: (required)
1541
1543
  :type benchmark_id: str
1542
- :param participant_id: The id of the participant to be disabled (required)
1544
+ :param participant_id: (required)
1543
1545
  :type participant_id: str
1544
1546
  :param _request_timeout: timeout setting for this request. If one
1545
1547
  number provided, it will be total request
@@ -1562,8 +1564,9 @@ class BenchmarkApi:
1562
1564
  :type _host_index: int, optional
1563
1565
  :return: Returns the result object.
1564
1566
  """ # noqa: E501
1567
+ warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1565
1568
 
1566
- _param = self._benchmark_benchmark_id_participants_participant_id_disable_post_serialize(
1569
+ _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1567
1570
  benchmark_id=benchmark_id,
1568
1571
  participant_id=participant_id,
1569
1572
  _request_auth=_request_auth,
@@ -1573,7 +1576,7 @@ class BenchmarkApi:
1573
1576
  )
1574
1577
 
1575
1578
  _response_types_map: Dict[str, Optional[str]] = {
1576
- '200': None,
1579
+ '200': "SubmitParticipantResult",
1577
1580
  }
1578
1581
  response_data = self.api_client.call_api(
1579
1582
  *_param,
@@ -1582,7 +1585,7 @@ class BenchmarkApi:
1582
1585
  return response_data.response
1583
1586
 
1584
1587
 
1585
- def _benchmark_benchmark_id_participants_participant_id_disable_post_serialize(
1588
+ def _benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1586
1589
  self,
1587
1590
  benchmark_id,
1588
1591
  participant_id,
@@ -1617,6 +1620,15 @@ class BenchmarkApi:
1617
1620
  # process the body parameter
1618
1621
 
1619
1622
 
1623
+ # set the HTTP header `Accept`
1624
+ if 'Accept' not in _header_params:
1625
+ _header_params['Accept'] = self.api_client.select_header_accept(
1626
+ [
1627
+ 'text/plain',
1628
+ 'application/json',
1629
+ 'text/json'
1630
+ ]
1631
+ )
1620
1632
 
1621
1633
 
1622
1634
  # authentication setting
@@ -1627,7 +1639,7 @@ class BenchmarkApi:
1627
1639
 
1628
1640
  return self.api_client.param_serialize(
1629
1641
  method='POST',
1630
- resource_path='/benchmark/{benchmarkId}/participants/{participantId}/disable',
1642
+ resource_path='/benchmark/{benchmarkId}/participants/{participantId}/submit',
1631
1643
  path_params=_path_params,
1632
1644
  query_params=_query_params,
1633
1645
  header_params=_header_params,
@@ -1644,10 +1656,10 @@ class BenchmarkApi:
1644
1656
 
1645
1657
 
1646
1658
  @validate_call
1647
- def benchmark_benchmark_id_participants_participant_id_submit_post(
1659
+ def benchmark_benchmark_id_participants_post(
1648
1660
  self,
1649
1661
  benchmark_id: StrictStr,
1650
- participant_id: StrictStr,
1662
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
1651
1663
  _request_timeout: Union[
1652
1664
  None,
1653
1665
  Annotated[StrictFloat, Field(gt=0)],
@@ -1660,14 +1672,14 @@ class BenchmarkApi:
1660
1672
  _content_type: Optional[StrictStr] = None,
1661
1673
  _headers: Optional[Dict[StrictStr, Any]] = None,
1662
1674
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1663
- ) -> SubmitParticipantResult:
1664
- """(Deprecated) Submits a participant to a benchmark.
1675
+ ) -> CreateBenchmarkParticipantResult:
1676
+ """Creates a participant in a benchmark.
1665
1677
 
1666
1678
 
1667
1679
  :param benchmark_id: (required)
1668
1680
  :type benchmark_id: str
1669
- :param participant_id: (required)
1670
- :type participant_id: str
1681
+ :param create_benchmark_participant_model:
1682
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1671
1683
  :param _request_timeout: timeout setting for this request. If one
1672
1684
  number provided, it will be total request
1673
1685
  timeout. It can also be a pair (tuple) of
@@ -1689,11 +1701,10 @@ class BenchmarkApi:
1689
1701
  :type _host_index: int, optional
1690
1702
  :return: Returns the result object.
1691
1703
  """ # noqa: E501
1692
- warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1693
1704
 
1694
- _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1705
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1695
1706
  benchmark_id=benchmark_id,
1696
- participant_id=participant_id,
1707
+ create_benchmark_participant_model=create_benchmark_participant_model,
1697
1708
  _request_auth=_request_auth,
1698
1709
  _content_type=_content_type,
1699
1710
  _headers=_headers,
@@ -1701,7 +1712,7 @@ class BenchmarkApi:
1701
1712
  )
1702
1713
 
1703
1714
  _response_types_map: Dict[str, Optional[str]] = {
1704
- '200': "SubmitParticipantResult",
1715
+ '200': "CreateBenchmarkParticipantResult",
1705
1716
  }
1706
1717
  response_data = self.api_client.call_api(
1707
1718
  *_param,
@@ -1715,10 +1726,10 @@ class BenchmarkApi:
1715
1726
 
1716
1727
 
1717
1728
  @validate_call
1718
- def benchmark_benchmark_id_participants_participant_id_submit_post_with_http_info(
1729
+ def benchmark_benchmark_id_participants_post_with_http_info(
1719
1730
  self,
1720
1731
  benchmark_id: StrictStr,
1721
- participant_id: StrictStr,
1732
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
1722
1733
  _request_timeout: Union[
1723
1734
  None,
1724
1735
  Annotated[StrictFloat, Field(gt=0)],
@@ -1731,14 +1742,14 @@ class BenchmarkApi:
1731
1742
  _content_type: Optional[StrictStr] = None,
1732
1743
  _headers: Optional[Dict[StrictStr, Any]] = None,
1733
1744
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1734
- ) -> ApiResponse[SubmitParticipantResult]:
1735
- """(Deprecated) Submits a participant to a benchmark.
1745
+ ) -> ApiResponse[CreateBenchmarkParticipantResult]:
1746
+ """Creates a participant in a benchmark.
1736
1747
 
1737
1748
 
1738
1749
  :param benchmark_id: (required)
1739
1750
  :type benchmark_id: str
1740
- :param participant_id: (required)
1741
- :type participant_id: str
1751
+ :param create_benchmark_participant_model:
1752
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1742
1753
  :param _request_timeout: timeout setting for this request. If one
1743
1754
  number provided, it will be total request
1744
1755
  timeout. It can also be a pair (tuple) of
@@ -1760,11 +1771,10 @@ class BenchmarkApi:
1760
1771
  :type _host_index: int, optional
1761
1772
  :return: Returns the result object.
1762
1773
  """ # noqa: E501
1763
- warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1764
1774
 
1765
- _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1775
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1766
1776
  benchmark_id=benchmark_id,
1767
- participant_id=participant_id,
1777
+ create_benchmark_participant_model=create_benchmark_participant_model,
1768
1778
  _request_auth=_request_auth,
1769
1779
  _content_type=_content_type,
1770
1780
  _headers=_headers,
@@ -1772,7 +1782,7 @@ class BenchmarkApi:
1772
1782
  )
1773
1783
 
1774
1784
  _response_types_map: Dict[str, Optional[str]] = {
1775
- '200': "SubmitParticipantResult",
1785
+ '200': "CreateBenchmarkParticipantResult",
1776
1786
  }
1777
1787
  response_data = self.api_client.call_api(
1778
1788
  *_param,
@@ -1786,10 +1796,10 @@ class BenchmarkApi:
1786
1796
 
1787
1797
 
1788
1798
  @validate_call
1789
- def benchmark_benchmark_id_participants_participant_id_submit_post_without_preload_content(
1799
+ def benchmark_benchmark_id_participants_post_without_preload_content(
1790
1800
  self,
1791
1801
  benchmark_id: StrictStr,
1792
- participant_id: StrictStr,
1802
+ create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
1793
1803
  _request_timeout: Union[
1794
1804
  None,
1795
1805
  Annotated[StrictFloat, Field(gt=0)],
@@ -1803,13 +1813,13 @@ class BenchmarkApi:
1803
1813
  _headers: Optional[Dict[StrictStr, Any]] = None,
1804
1814
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1805
1815
  ) -> RESTResponseType:
1806
- """(Deprecated) Submits a participant to a benchmark.
1816
+ """Creates a participant in a benchmark.
1807
1817
 
1808
1818
 
1809
1819
  :param benchmark_id: (required)
1810
1820
  :type benchmark_id: str
1811
- :param participant_id: (required)
1812
- :type participant_id: str
1821
+ :param create_benchmark_participant_model:
1822
+ :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1813
1823
  :param _request_timeout: timeout setting for this request. If one
1814
1824
  number provided, it will be total request
1815
1825
  timeout. It can also be a pair (tuple) of
@@ -1831,11 +1841,10 @@ class BenchmarkApi:
1831
1841
  :type _host_index: int, optional
1832
1842
  :return: Returns the result object.
1833
1843
  """ # noqa: E501
1834
- warnings.warn("POST /benchmark/{benchmarkId}/participants/{participantId}/submit is deprecated.", DeprecationWarning)
1835
1844
 
1836
- _param = self._benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1845
+ _param = self._benchmark_benchmark_id_participants_post_serialize(
1837
1846
  benchmark_id=benchmark_id,
1838
- participant_id=participant_id,
1847
+ create_benchmark_participant_model=create_benchmark_participant_model,
1839
1848
  _request_auth=_request_auth,
1840
1849
  _content_type=_content_type,
1841
1850
  _headers=_headers,
@@ -1843,7 +1852,7 @@ class BenchmarkApi:
1843
1852
  )
1844
1853
 
1845
1854
  _response_types_map: Dict[str, Optional[str]] = {
1846
- '200': "SubmitParticipantResult",
1855
+ '200': "CreateBenchmarkParticipantResult",
1847
1856
  }
1848
1857
  response_data = self.api_client.call_api(
1849
1858
  *_param,
@@ -1852,10 +1861,10 @@ class BenchmarkApi:
1852
1861
  return response_data.response
1853
1862
 
1854
1863
 
1855
- def _benchmark_benchmark_id_participants_participant_id_submit_post_serialize(
1864
+ def _benchmark_benchmark_id_participants_post_serialize(
1856
1865
  self,
1857
1866
  benchmark_id,
1858
- participant_id,
1867
+ create_benchmark_participant_model,
1859
1868
  _request_auth,
1860
1869
  _content_type,
1861
1870
  _headers,
@@ -1879,12 +1888,12 @@ class BenchmarkApi:
1879
1888
  # process the path parameters
1880
1889
  if benchmark_id is not None:
1881
1890
  _path_params['benchmarkId'] = benchmark_id
1882
- if participant_id is not None:
1883
- _path_params['participantId'] = participant_id
1884
1891
  # process the query parameters
1885
1892
  # process the header parameters
1886
1893
  # process the form parameters
1887
1894
  # process the body parameter
1895
+ if create_benchmark_participant_model is not None:
1896
+ _body_params = create_benchmark_participant_model
1888
1897
 
1889
1898
 
1890
1899
  # set the HTTP header `Accept`
@@ -1897,6 +1906,21 @@ class BenchmarkApi:
1897
1906
  ]
1898
1907
  )
1899
1908
 
1909
+ # set the HTTP header `Content-Type`
1910
+ if _content_type:
1911
+ _header_params['Content-Type'] = _content_type
1912
+ else:
1913
+ _default_content_type = (
1914
+ self.api_client.select_header_content_type(
1915
+ [
1916
+ 'application/json',
1917
+ 'text/json',
1918
+ 'application/*+json'
1919
+ ]
1920
+ )
1921
+ )
1922
+ if _default_content_type is not None:
1923
+ _header_params['Content-Type'] = _default_content_type
1900
1924
 
1901
1925
  # authentication setting
1902
1926
  _auth_settings: List[str] = [
@@ -1906,7 +1930,7 @@ class BenchmarkApi:
1906
1930
 
1907
1931
  return self.api_client.param_serialize(
1908
1932
  method='POST',
1909
- resource_path='/benchmark/{benchmarkId}/participants/{participantId}/submit',
1933
+ resource_path='/benchmark/{benchmarkId}/participants',
1910
1934
  path_params=_path_params,
1911
1935
  query_params=_query_params,
1912
1936
  header_params=_header_params,
@@ -1923,10 +1947,10 @@ class BenchmarkApi:
1923
1947
 
1924
1948
 
1925
1949
  @validate_call
1926
- def benchmark_benchmark_id_participants_post(
1950
+ def benchmark_benchmark_id_prompt_post(
1927
1951
  self,
1928
- benchmark_id: StrictStr,
1929
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
1952
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
1953
+ submit_prompt_model: Optional[SubmitPromptModel] = None,
1930
1954
  _request_timeout: Union[
1931
1955
  None,
1932
1956
  Annotated[StrictFloat, Field(gt=0)],
@@ -1939,14 +1963,14 @@ class BenchmarkApi:
1939
1963
  _content_type: Optional[StrictStr] = None,
1940
1964
  _headers: Optional[Dict[StrictStr, Any]] = None,
1941
1965
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1942
- ) -> CreateBenchmarkParticipantResult:
1943
- """Creates a participant in a benchmark.
1966
+ ) -> None:
1967
+ """Adds a new prompt to a benchmark.
1944
1968
 
1945
1969
 
1946
- :param benchmark_id: (required)
1970
+ :param benchmark_id: The benchmark id. (required)
1947
1971
  :type benchmark_id: str
1948
- :param create_benchmark_participant_model:
1949
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
1972
+ :param submit_prompt_model:
1973
+ :type submit_prompt_model: SubmitPromptModel
1950
1974
  :param _request_timeout: timeout setting for this request. If one
1951
1975
  number provided, it will be total request
1952
1976
  timeout. It can also be a pair (tuple) of
@@ -1969,9 +1993,9 @@ class BenchmarkApi:
1969
1993
  :return: Returns the result object.
1970
1994
  """ # noqa: E501
1971
1995
 
1972
- _param = self._benchmark_benchmark_id_participants_post_serialize(
1996
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
1973
1997
  benchmark_id=benchmark_id,
1974
- create_benchmark_participant_model=create_benchmark_participant_model,
1998
+ submit_prompt_model=submit_prompt_model,
1975
1999
  _request_auth=_request_auth,
1976
2000
  _content_type=_content_type,
1977
2001
  _headers=_headers,
@@ -1979,7 +2003,7 @@ class BenchmarkApi:
1979
2003
  )
1980
2004
 
1981
2005
  _response_types_map: Dict[str, Optional[str]] = {
1982
- '200': "CreateBenchmarkParticipantResult",
2006
+ '204': None,
1983
2007
  }
1984
2008
  response_data = self.api_client.call_api(
1985
2009
  *_param,
@@ -1993,10 +2017,10 @@ class BenchmarkApi:
1993
2017
 
1994
2018
 
1995
2019
  @validate_call
1996
- def benchmark_benchmark_id_participants_post_with_http_info(
2020
+ def benchmark_benchmark_id_prompt_post_with_http_info(
1997
2021
  self,
1998
- benchmark_id: StrictStr,
1999
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2022
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2023
+ submit_prompt_model: Optional[SubmitPromptModel] = None,
2000
2024
  _request_timeout: Union[
2001
2025
  None,
2002
2026
  Annotated[StrictFloat, Field(gt=0)],
@@ -2009,14 +2033,14 @@ class BenchmarkApi:
2009
2033
  _content_type: Optional[StrictStr] = None,
2010
2034
  _headers: Optional[Dict[StrictStr, Any]] = None,
2011
2035
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2012
- ) -> ApiResponse[CreateBenchmarkParticipantResult]:
2013
- """Creates a participant in a benchmark.
2036
+ ) -> ApiResponse[None]:
2037
+ """Adds a new prompt to a benchmark.
2014
2038
 
2015
2039
 
2016
- :param benchmark_id: (required)
2040
+ :param benchmark_id: The benchmark id. (required)
2017
2041
  :type benchmark_id: str
2018
- :param create_benchmark_participant_model:
2019
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2042
+ :param submit_prompt_model:
2043
+ :type submit_prompt_model: SubmitPromptModel
2020
2044
  :param _request_timeout: timeout setting for this request. If one
2021
2045
  number provided, it will be total request
2022
2046
  timeout. It can also be a pair (tuple) of
@@ -2039,9 +2063,9 @@ class BenchmarkApi:
2039
2063
  :return: Returns the result object.
2040
2064
  """ # noqa: E501
2041
2065
 
2042
- _param = self._benchmark_benchmark_id_participants_post_serialize(
2066
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
2043
2067
  benchmark_id=benchmark_id,
2044
- create_benchmark_participant_model=create_benchmark_participant_model,
2068
+ submit_prompt_model=submit_prompt_model,
2045
2069
  _request_auth=_request_auth,
2046
2070
  _content_type=_content_type,
2047
2071
  _headers=_headers,
@@ -2049,7 +2073,7 @@ class BenchmarkApi:
2049
2073
  )
2050
2074
 
2051
2075
  _response_types_map: Dict[str, Optional[str]] = {
2052
- '200': "CreateBenchmarkParticipantResult",
2076
+ '204': None,
2053
2077
  }
2054
2078
  response_data = self.api_client.call_api(
2055
2079
  *_param,
@@ -2063,10 +2087,10 @@ class BenchmarkApi:
2063
2087
 
2064
2088
 
2065
2089
  @validate_call
2066
- def benchmark_benchmark_id_participants_post_without_preload_content(
2090
+ def benchmark_benchmark_id_prompt_post_without_preload_content(
2067
2091
  self,
2068
- benchmark_id: StrictStr,
2069
- create_benchmark_participant_model: Optional[CreateBenchmarkParticipantModel] = None,
2092
+ benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2093
+ submit_prompt_model: Optional[SubmitPromptModel] = None,
2070
2094
  _request_timeout: Union[
2071
2095
  None,
2072
2096
  Annotated[StrictFloat, Field(gt=0)],
@@ -2080,13 +2104,13 @@ class BenchmarkApi:
2080
2104
  _headers: Optional[Dict[StrictStr, Any]] = None,
2081
2105
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2082
2106
  ) -> RESTResponseType:
2083
- """Creates a participant in a benchmark.
2107
+ """Adds a new prompt to a benchmark.
2084
2108
 
2085
2109
 
2086
- :param benchmark_id: (required)
2110
+ :param benchmark_id: The benchmark id. (required)
2087
2111
  :type benchmark_id: str
2088
- :param create_benchmark_participant_model:
2089
- :type create_benchmark_participant_model: CreateBenchmarkParticipantModel
2112
+ :param submit_prompt_model:
2113
+ :type submit_prompt_model: SubmitPromptModel
2090
2114
  :param _request_timeout: timeout setting for this request. If one
2091
2115
  number provided, it will be total request
2092
2116
  timeout. It can also be a pair (tuple) of
@@ -2109,9 +2133,9 @@ class BenchmarkApi:
2109
2133
  :return: Returns the result object.
2110
2134
  """ # noqa: E501
2111
2135
 
2112
- _param = self._benchmark_benchmark_id_participants_post_serialize(
2136
+ _param = self._benchmark_benchmark_id_prompt_post_serialize(
2113
2137
  benchmark_id=benchmark_id,
2114
- create_benchmark_participant_model=create_benchmark_participant_model,
2138
+ submit_prompt_model=submit_prompt_model,
2115
2139
  _request_auth=_request_auth,
2116
2140
  _content_type=_content_type,
2117
2141
  _headers=_headers,
@@ -2119,7 +2143,7 @@ class BenchmarkApi:
2119
2143
  )
2120
2144
 
2121
2145
  _response_types_map: Dict[str, Optional[str]] = {
2122
- '200': "CreateBenchmarkParticipantResult",
2146
+ '204': None,
2123
2147
  }
2124
2148
  response_data = self.api_client.call_api(
2125
2149
  *_param,
@@ -2128,10 +2152,10 @@ class BenchmarkApi:
2128
2152
  return response_data.response
2129
2153
 
2130
2154
 
2131
- def _benchmark_benchmark_id_participants_post_serialize(
2155
+ def _benchmark_benchmark_id_prompt_post_serialize(
2132
2156
  self,
2133
2157
  benchmark_id,
2134
- create_benchmark_participant_model,
2158
+ submit_prompt_model,
2135
2159
  _request_auth,
2136
2160
  _content_type,
2137
2161
  _headers,
@@ -2159,19 +2183,10 @@ class BenchmarkApi:
2159
2183
  # process the header parameters
2160
2184
  # process the form parameters
2161
2185
  # process the body parameter
2162
- if create_benchmark_participant_model is not None:
2163
- _body_params = create_benchmark_participant_model
2186
+ if submit_prompt_model is not None:
2187
+ _body_params = submit_prompt_model
2164
2188
 
2165
2189
 
2166
- # set the HTTP header `Accept`
2167
- if 'Accept' not in _header_params:
2168
- _header_params['Accept'] = self.api_client.select_header_accept(
2169
- [
2170
- 'text/plain',
2171
- 'application/json',
2172
- 'text/json'
2173
- ]
2174
- )
2175
2190
 
2176
2191
  # set the HTTP header `Content-Type`
2177
2192
  if _content_type:
@@ -2197,7 +2212,7 @@ class BenchmarkApi:
2197
2212
 
2198
2213
  return self.api_client.param_serialize(
2199
2214
  method='POST',
2200
- resource_path='/benchmark/{benchmarkId}/participants',
2215
+ resource_path='/benchmark/{benchmarkId}/prompt',
2201
2216
  path_params=_path_params,
2202
2217
  query_params=_query_params,
2203
2218
  header_params=_header_params,
@@ -2214,10 +2229,10 @@ class BenchmarkApi:
2214
2229
 
2215
2230
 
2216
2231
  @validate_call
2217
- def benchmark_benchmark_id_prompt_post(
2232
+ def benchmark_benchmark_id_prompts_get(
2218
2233
  self,
2219
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2220
- submit_prompt_model: Optional[SubmitPromptModel] = None,
2234
+ benchmark_id: StrictStr,
2235
+ request: Optional[QueryModel] = None,
2221
2236
  _request_timeout: Union[
2222
2237
  None,
2223
2238
  Annotated[StrictFloat, Field(gt=0)],
@@ -2230,14 +2245,14 @@ class BenchmarkApi:
2230
2245
  _content_type: Optional[StrictStr] = None,
2231
2246
  _headers: Optional[Dict[StrictStr, Any]] = None,
2232
2247
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2233
- ) -> None:
2234
- """Adds a new prompt to a benchmark.
2248
+ ) -> PromptByBenchmarkResultPagedResult:
2249
+ """Returns the paged prompts of a benchmark by its ID.
2235
2250
 
2236
2251
 
2237
- :param benchmark_id: The benchmark id. (required)
2252
+ :param benchmark_id: (required)
2238
2253
  :type benchmark_id: str
2239
- :param submit_prompt_model:
2240
- :type submit_prompt_model: SubmitPromptModel
2254
+ :param request:
2255
+ :type request: QueryModel
2241
2256
  :param _request_timeout: timeout setting for this request. If one
2242
2257
  number provided, it will be total request
2243
2258
  timeout. It can also be a pair (tuple) of
@@ -2260,9 +2275,9 @@ class BenchmarkApi:
2260
2275
  :return: Returns the result object.
2261
2276
  """ # noqa: E501
2262
2277
 
2263
- _param = self._benchmark_benchmark_id_prompt_post_serialize(
2278
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2264
2279
  benchmark_id=benchmark_id,
2265
- submit_prompt_model=submit_prompt_model,
2280
+ request=request,
2266
2281
  _request_auth=_request_auth,
2267
2282
  _content_type=_content_type,
2268
2283
  _headers=_headers,
@@ -2270,7 +2285,7 @@ class BenchmarkApi:
2270
2285
  )
2271
2286
 
2272
2287
  _response_types_map: Dict[str, Optional[str]] = {
2273
- '204': None,
2288
+ '200': "PromptByBenchmarkResultPagedResult",
2274
2289
  }
2275
2290
  response_data = self.api_client.call_api(
2276
2291
  *_param,
@@ -2284,10 +2299,10 @@ class BenchmarkApi:
2284
2299
 
2285
2300
 
2286
2301
  @validate_call
2287
- def benchmark_benchmark_id_prompt_post_with_http_info(
2302
+ def benchmark_benchmark_id_prompts_get_with_http_info(
2288
2303
  self,
2289
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2290
- submit_prompt_model: Optional[SubmitPromptModel] = None,
2304
+ benchmark_id: StrictStr,
2305
+ request: Optional[QueryModel] = None,
2291
2306
  _request_timeout: Union[
2292
2307
  None,
2293
2308
  Annotated[StrictFloat, Field(gt=0)],
@@ -2300,14 +2315,14 @@ class BenchmarkApi:
2300
2315
  _content_type: Optional[StrictStr] = None,
2301
2316
  _headers: Optional[Dict[StrictStr, Any]] = None,
2302
2317
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2303
- ) -> ApiResponse[None]:
2304
- """Adds a new prompt to a benchmark.
2318
+ ) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
2319
+ """Returns the paged prompts of a benchmark by its ID.
2305
2320
 
2306
2321
 
2307
- :param benchmark_id: The benchmark id. (required)
2322
+ :param benchmark_id: (required)
2308
2323
  :type benchmark_id: str
2309
- :param submit_prompt_model:
2310
- :type submit_prompt_model: SubmitPromptModel
2324
+ :param request:
2325
+ :type request: QueryModel
2311
2326
  :param _request_timeout: timeout setting for this request. If one
2312
2327
  number provided, it will be total request
2313
2328
  timeout. It can also be a pair (tuple) of
@@ -2330,9 +2345,9 @@ class BenchmarkApi:
2330
2345
  :return: Returns the result object.
2331
2346
  """ # noqa: E501
2332
2347
 
2333
- _param = self._benchmark_benchmark_id_prompt_post_serialize(
2348
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2334
2349
  benchmark_id=benchmark_id,
2335
- submit_prompt_model=submit_prompt_model,
2350
+ request=request,
2336
2351
  _request_auth=_request_auth,
2337
2352
  _content_type=_content_type,
2338
2353
  _headers=_headers,
@@ -2340,7 +2355,7 @@ class BenchmarkApi:
2340
2355
  )
2341
2356
 
2342
2357
  _response_types_map: Dict[str, Optional[str]] = {
2343
- '204': None,
2358
+ '200': "PromptByBenchmarkResultPagedResult",
2344
2359
  }
2345
2360
  response_data = self.api_client.call_api(
2346
2361
  *_param,
@@ -2354,10 +2369,10 @@ class BenchmarkApi:
2354
2369
 
2355
2370
 
2356
2371
  @validate_call
2357
- def benchmark_benchmark_id_prompt_post_without_preload_content(
2372
+ def benchmark_benchmark_id_prompts_get_without_preload_content(
2358
2373
  self,
2359
- benchmark_id: Annotated[StrictStr, Field(description="The benchmark id.")],
2360
- submit_prompt_model: Optional[SubmitPromptModel] = None,
2374
+ benchmark_id: StrictStr,
2375
+ request: Optional[QueryModel] = None,
2361
2376
  _request_timeout: Union[
2362
2377
  None,
2363
2378
  Annotated[StrictFloat, Field(gt=0)],
@@ -2371,13 +2386,13 @@ class BenchmarkApi:
2371
2386
  _headers: Optional[Dict[StrictStr, Any]] = None,
2372
2387
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2373
2388
  ) -> RESTResponseType:
2374
- """Adds a new prompt to a benchmark.
2389
+ """Returns the paged prompts of a benchmark by its ID.
2375
2390
 
2376
2391
 
2377
- :param benchmark_id: The benchmark id. (required)
2392
+ :param benchmark_id: (required)
2378
2393
  :type benchmark_id: str
2379
- :param submit_prompt_model:
2380
- :type submit_prompt_model: SubmitPromptModel
2394
+ :param request:
2395
+ :type request: QueryModel
2381
2396
  :param _request_timeout: timeout setting for this request. If one
2382
2397
  number provided, it will be total request
2383
2398
  timeout. It can also be a pair (tuple) of
@@ -2400,9 +2415,9 @@ class BenchmarkApi:
2400
2415
  :return: Returns the result object.
2401
2416
  """ # noqa: E501
2402
2417
 
2403
- _param = self._benchmark_benchmark_id_prompt_post_serialize(
2418
+ _param = self._benchmark_benchmark_id_prompts_get_serialize(
2404
2419
  benchmark_id=benchmark_id,
2405
- submit_prompt_model=submit_prompt_model,
2420
+ request=request,
2406
2421
  _request_auth=_request_auth,
2407
2422
  _content_type=_content_type,
2408
2423
  _headers=_headers,
@@ -2410,7 +2425,7 @@ class BenchmarkApi:
2410
2425
  )
2411
2426
 
2412
2427
  _response_types_map: Dict[str, Optional[str]] = {
2413
- '204': None,
2428
+ '200': "PromptByBenchmarkResultPagedResult",
2414
2429
  }
2415
2430
  response_data = self.api_client.call_api(
2416
2431
  *_param,
@@ -2419,10 +2434,10 @@ class BenchmarkApi:
2419
2434
  return response_data.response
2420
2435
 
2421
2436
 
2422
- def _benchmark_benchmark_id_prompt_post_serialize(
2437
+ def _benchmark_benchmark_id_prompts_get_serialize(
2423
2438
  self,
2424
2439
  benchmark_id,
2425
- submit_prompt_model,
2440
+ request,
2426
2441
  _request_auth,
2427
2442
  _content_type,
2428
2443
  _headers,
@@ -2447,29 +2462,25 @@ class BenchmarkApi:
2447
2462
  if benchmark_id is not None:
2448
2463
  _path_params['benchmarkId'] = benchmark_id
2449
2464
  # process the query parameters
2465
+ if request is not None:
2466
+
2467
+ _query_params.append(('request', request))
2468
+
2450
2469
  # process the header parameters
2451
2470
  # process the form parameters
2452
2471
  # process the body parameter
2453
- if submit_prompt_model is not None:
2454
- _body_params = submit_prompt_model
2455
-
2456
2472
 
2457
2473
 
2458
- # set the HTTP header `Content-Type`
2459
- if _content_type:
2460
- _header_params['Content-Type'] = _content_type
2461
- else:
2462
- _default_content_type = (
2463
- self.api_client.select_header_content_type(
2464
- [
2465
- 'application/json',
2466
- 'text/json',
2467
- 'application/*+json'
2468
- ]
2469
- )
2474
+ # set the HTTP header `Accept`
2475
+ if 'Accept' not in _header_params:
2476
+ _header_params['Accept'] = self.api_client.select_header_accept(
2477
+ [
2478
+ 'text/plain',
2479
+ 'application/json',
2480
+ 'text/json'
2481
+ ]
2470
2482
  )
2471
- if _default_content_type is not None:
2472
- _header_params['Content-Type'] = _default_content_type
2483
+
2473
2484
 
2474
2485
  # authentication setting
2475
2486
  _auth_settings: List[str] = [
@@ -2478,8 +2489,8 @@ class BenchmarkApi:
2478
2489
  ]
2479
2490
 
2480
2491
  return self.api_client.param_serialize(
2481
- method='POST',
2482
- resource_path='/benchmark/{benchmarkId}/prompt',
2492
+ method='GET',
2493
+ resource_path='/benchmark/{benchmarkId}/prompts',
2483
2494
  path_params=_path_params,
2484
2495
  query_params=_query_params,
2485
2496
  header_params=_header_params,
@@ -2496,10 +2507,9 @@ class BenchmarkApi:
2496
2507
 
2497
2508
 
2498
2509
  @validate_call
2499
- def benchmark_benchmark_id_prompts_get(
2510
+ def benchmark_benchmark_id_tags_get(
2500
2511
  self,
2501
- benchmark_id: StrictStr,
2502
- request: Optional[QueryModel] = None,
2512
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
2503
2513
  _request_timeout: Union[
2504
2514
  None,
2505
2515
  Annotated[StrictFloat, Field(gt=0)],
@@ -2512,14 +2522,12 @@ class BenchmarkApi:
2512
2522
  _content_type: Optional[StrictStr] = None,
2513
2523
  _headers: Optional[Dict[StrictStr, Any]] = None,
2514
2524
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2515
- ) -> PromptByBenchmarkResultPagedResult:
2516
- """Returns the paged prompts of a benchmark by its ID.
2525
+ ) -> ParticipantByBenchmarkPagedResult:
2526
+ """Query all tags within a benchmark
2517
2527
 
2518
2528
 
2519
- :param benchmark_id: (required)
2529
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
2520
2530
  :type benchmark_id: str
2521
- :param request:
2522
- :type request: QueryModel
2523
2531
  :param _request_timeout: timeout setting for this request. If one
2524
2532
  number provided, it will be total request
2525
2533
  timeout. It can also be a pair (tuple) of
@@ -2542,9 +2550,8 @@ class BenchmarkApi:
2542
2550
  :return: Returns the result object.
2543
2551
  """ # noqa: E501
2544
2552
 
2545
- _param = self._benchmark_benchmark_id_prompts_get_serialize(
2553
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
2546
2554
  benchmark_id=benchmark_id,
2547
- request=request,
2548
2555
  _request_auth=_request_auth,
2549
2556
  _content_type=_content_type,
2550
2557
  _headers=_headers,
@@ -2552,7 +2559,7 @@ class BenchmarkApi:
2552
2559
  )
2553
2560
 
2554
2561
  _response_types_map: Dict[str, Optional[str]] = {
2555
- '200': "PromptByBenchmarkResultPagedResult",
2562
+ '200': "ParticipantByBenchmarkPagedResult",
2556
2563
  }
2557
2564
  response_data = self.api_client.call_api(
2558
2565
  *_param,
@@ -2566,10 +2573,9 @@ class BenchmarkApi:
2566
2573
 
2567
2574
 
2568
2575
  @validate_call
2569
- def benchmark_benchmark_id_prompts_get_with_http_info(
2576
+ def benchmark_benchmark_id_tags_get_with_http_info(
2570
2577
  self,
2571
- benchmark_id: StrictStr,
2572
- request: Optional[QueryModel] = None,
2578
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
2573
2579
  _request_timeout: Union[
2574
2580
  None,
2575
2581
  Annotated[StrictFloat, Field(gt=0)],
@@ -2582,14 +2588,12 @@ class BenchmarkApi:
2582
2588
  _content_type: Optional[StrictStr] = None,
2583
2589
  _headers: Optional[Dict[StrictStr, Any]] = None,
2584
2590
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2585
- ) -> ApiResponse[PromptByBenchmarkResultPagedResult]:
2586
- """Returns the paged prompts of a benchmark by its ID.
2591
+ ) -> ApiResponse[ParticipantByBenchmarkPagedResult]:
2592
+ """Query all tags within a benchmark
2587
2593
 
2588
2594
 
2589
- :param benchmark_id: (required)
2595
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
2590
2596
  :type benchmark_id: str
2591
- :param request:
2592
- :type request: QueryModel
2593
2597
  :param _request_timeout: timeout setting for this request. If one
2594
2598
  number provided, it will be total request
2595
2599
  timeout. It can also be a pair (tuple) of
@@ -2612,9 +2616,8 @@ class BenchmarkApi:
2612
2616
  :return: Returns the result object.
2613
2617
  """ # noqa: E501
2614
2618
 
2615
- _param = self._benchmark_benchmark_id_prompts_get_serialize(
2619
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
2616
2620
  benchmark_id=benchmark_id,
2617
- request=request,
2618
2621
  _request_auth=_request_auth,
2619
2622
  _content_type=_content_type,
2620
2623
  _headers=_headers,
@@ -2622,7 +2625,7 @@ class BenchmarkApi:
2622
2625
  )
2623
2626
 
2624
2627
  _response_types_map: Dict[str, Optional[str]] = {
2625
- '200': "PromptByBenchmarkResultPagedResult",
2628
+ '200': "ParticipantByBenchmarkPagedResult",
2626
2629
  }
2627
2630
  response_data = self.api_client.call_api(
2628
2631
  *_param,
@@ -2636,10 +2639,9 @@ class BenchmarkApi:
2636
2639
 
2637
2640
 
2638
2641
  @validate_call
2639
- def benchmark_benchmark_id_prompts_get_without_preload_content(
2642
+ def benchmark_benchmark_id_tags_get_without_preload_content(
2640
2643
  self,
2641
- benchmark_id: StrictStr,
2642
- request: Optional[QueryModel] = None,
2644
+ benchmark_id: Annotated[StrictStr, Field(description="The id of the benchmark the prompts should be retrieved from")],
2643
2645
  _request_timeout: Union[
2644
2646
  None,
2645
2647
  Annotated[StrictFloat, Field(gt=0)],
@@ -2653,13 +2655,11 @@ class BenchmarkApi:
2653
2655
  _headers: Optional[Dict[StrictStr, Any]] = None,
2654
2656
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2655
2657
  ) -> RESTResponseType:
2656
- """Returns the paged prompts of a benchmark by its ID.
2658
+ """Query all tags within a benchmark
2657
2659
 
2658
2660
 
2659
- :param benchmark_id: (required)
2661
+ :param benchmark_id: The id of the benchmark the prompts should be retrieved from (required)
2660
2662
  :type benchmark_id: str
2661
- :param request:
2662
- :type request: QueryModel
2663
2663
  :param _request_timeout: timeout setting for this request. If one
2664
2664
  number provided, it will be total request
2665
2665
  timeout. It can also be a pair (tuple) of
@@ -2682,9 +2682,8 @@ class BenchmarkApi:
2682
2682
  :return: Returns the result object.
2683
2683
  """ # noqa: E501
2684
2684
 
2685
- _param = self._benchmark_benchmark_id_prompts_get_serialize(
2685
+ _param = self._benchmark_benchmark_id_tags_get_serialize(
2686
2686
  benchmark_id=benchmark_id,
2687
- request=request,
2688
2687
  _request_auth=_request_auth,
2689
2688
  _content_type=_content_type,
2690
2689
  _headers=_headers,
@@ -2692,7 +2691,7 @@ class BenchmarkApi:
2692
2691
  )
2693
2692
 
2694
2693
  _response_types_map: Dict[str, Optional[str]] = {
2695
- '200': "PromptByBenchmarkResultPagedResult",
2694
+ '200': "ParticipantByBenchmarkPagedResult",
2696
2695
  }
2697
2696
  response_data = self.api_client.call_api(
2698
2697
  *_param,
@@ -2701,10 +2700,9 @@ class BenchmarkApi:
2701
2700
  return response_data.response
2702
2701
 
2703
2702
 
2704
- def _benchmark_benchmark_id_prompts_get_serialize(
2703
+ def _benchmark_benchmark_id_tags_get_serialize(
2705
2704
  self,
2706
2705
  benchmark_id,
2707
- request,
2708
2706
  _request_auth,
2709
2707
  _content_type,
2710
2708
  _headers,
@@ -2729,10 +2727,6 @@ class BenchmarkApi:
2729
2727
  if benchmark_id is not None:
2730
2728
  _path_params['benchmarkId'] = benchmark_id
2731
2729
  # process the query parameters
2732
- if request is not None:
2733
-
2734
- _query_params.append(('request', request))
2735
-
2736
2730
  # process the header parameters
2737
2731
  # process the form parameters
2738
2732
  # process the body parameter
@@ -2757,7 +2751,7 @@ class BenchmarkApi:
2757
2751
 
2758
2752
  return self.api_client.param_serialize(
2759
2753
  method='GET',
2760
- resource_path='/benchmark/{benchmarkId}/prompts',
2754
+ resource_path='/benchmark/{benchmarkId}/tags',
2761
2755
  path_params=_path_params,
2762
2756
  query_params=_query_params,
2763
2757
  header_params=_header_params,