|
43 | 43 | inspect,
|
44 | 44 | scoring,
|
45 | 45 | shields,
|
| 46 | + datasets, |
46 | 47 | providers,
|
47 | 48 | responses,
|
48 | 49 | telemetry,
|
49 | 50 | vector_io,
|
| 51 | + benchmarks, |
50 | 52 | embeddings,
|
51 | 53 | toolgroups,
|
52 | 54 | vector_dbs,
|
|
64 | 66 | from .resources.inspect import InspectResource, AsyncInspectResource
|
65 | 67 | from .resources.scoring import ScoringResource, AsyncScoringResource
|
66 | 68 | from .resources.shields import ShieldsResource, AsyncShieldsResource
|
| 69 | + from .resources.datasets import DatasetsResource, AsyncDatasetsResource |
67 | 70 | from .resources.chat.chat import ChatResource, AsyncChatResource
|
68 | 71 | from .resources.providers import ProvidersResource, AsyncProvidersResource
|
69 | 72 | from .resources.telemetry import TelemetryResource, AsyncTelemetryResource
|
70 | 73 | from .resources.vector_io import VectorIoResource, AsyncVectorIoResource
|
| 74 | + from .resources.benchmarks import BenchmarksResource, AsyncBenchmarksResource |
71 | 75 | from .resources.embeddings import EmbeddingsResource, AsyncEmbeddingsResource
|
72 | 76 | from .resources.toolgroups import ToolgroupsResource, AsyncToolgroupsResource
|
73 | 77 | from .resources.vector_dbs import VectorDBsResource, AsyncVectorDBsResource
|
@@ -177,6 +181,12 @@ def responses(self) -> ResponsesResource:
|
177 | 181 |
|
178 | 182 | return ResponsesResource(self)
|
179 | 183 |
|
| 184 | + @cached_property |
| 185 | + def datasets(self) -> DatasetsResource: |
| 186 | + from .resources.datasets import DatasetsResource |
| 187 | + |
| 188 | + return DatasetsResource(self) |
| 189 | + |
180 | 190 | @cached_property
|
181 | 191 | def inspect(self) -> InspectResource:
|
182 | 192 | from .resources.inspect import InspectResource
|
@@ -279,6 +289,12 @@ def scoring_functions(self) -> ScoringFunctionsResource:
|
279 | 289 |
|
280 | 290 | return ScoringFunctionsResource(self)
|
281 | 291 |
|
| 292 | + @cached_property |
| 293 | + def benchmarks(self) -> BenchmarksResource: |
| 294 | + from .resources.benchmarks import BenchmarksResource |
| 295 | + |
| 296 | + return BenchmarksResource(self) |
| 297 | + |
282 | 298 | @cached_property
|
283 | 299 | def files(self) -> FilesResource:
|
284 | 300 | from .resources.files import FilesResource
|
@@ -487,6 +503,12 @@ def responses(self) -> AsyncResponsesResource:
|
487 | 503 |
|
488 | 504 | return AsyncResponsesResource(self)
|
489 | 505 |
|
| 506 | + @cached_property |
| 507 | + def datasets(self) -> AsyncDatasetsResource: |
| 508 | + from .resources.datasets import AsyncDatasetsResource |
| 509 | + |
| 510 | + return AsyncDatasetsResource(self) |
| 511 | + |
490 | 512 | @cached_property
|
491 | 513 | def inspect(self) -> AsyncInspectResource:
|
492 | 514 | from .resources.inspect import AsyncInspectResource
|
@@ -589,6 +611,12 @@ def scoring_functions(self) -> AsyncScoringFunctionsResource:
|
589 | 611 |
|
590 | 612 | return AsyncScoringFunctionsResource(self)
|
591 | 613 |
|
| 614 | + @cached_property |
| 615 | + def benchmarks(self) -> AsyncBenchmarksResource: |
| 616 | + from .resources.benchmarks import AsyncBenchmarksResource |
| 617 | + |
| 618 | + return AsyncBenchmarksResource(self) |
| 619 | + |
592 | 620 | @cached_property
|
593 | 621 | def files(self) -> AsyncFilesResource:
|
594 | 622 | from .resources.files import AsyncFilesResource
|
@@ -746,6 +774,12 @@ def responses(self) -> responses.ResponsesResourceWithRawResponse:
|
746 | 774 |
|
747 | 775 | return ResponsesResourceWithRawResponse(self._client.responses)
|
748 | 776 |
|
| 777 | + @cached_property |
| 778 | + def datasets(self) -> datasets.DatasetsResourceWithRawResponse: |
| 779 | + from .resources.datasets import DatasetsResourceWithRawResponse |
| 780 | + |
| 781 | + return DatasetsResourceWithRawResponse(self._client.datasets) |
| 782 | + |
749 | 783 | @cached_property
|
750 | 784 | def inspect(self) -> inspect.InspectResourceWithRawResponse:
|
751 | 785 | from .resources.inspect import InspectResourceWithRawResponse
|
@@ -848,6 +882,12 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithRaw
|
848 | 882 |
|
849 | 883 | return ScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
|
850 | 884 |
|
| 885 | + @cached_property |
| 886 | + def benchmarks(self) -> benchmarks.BenchmarksResourceWithRawResponse: |
| 887 | + from .resources.benchmarks import BenchmarksResourceWithRawResponse |
| 888 | + |
| 889 | + return BenchmarksResourceWithRawResponse(self._client.benchmarks) |
| 890 | + |
851 | 891 | @cached_property
|
852 | 892 | def files(self) -> files.FilesResourceWithRawResponse:
|
853 | 893 | from .resources.files import FilesResourceWithRawResponse
|
@@ -891,6 +931,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithRawResponse:
|
891 | 931 |
|
892 | 932 | return AsyncResponsesResourceWithRawResponse(self._client.responses)
|
893 | 933 |
|
| 934 | + @cached_property |
| 935 | + def datasets(self) -> datasets.AsyncDatasetsResourceWithRawResponse: |
| 936 | + from .resources.datasets import AsyncDatasetsResourceWithRawResponse |
| 937 | + |
| 938 | + return AsyncDatasetsResourceWithRawResponse(self._client.datasets) |
| 939 | + |
894 | 940 | @cached_property
|
895 | 941 | def inspect(self) -> inspect.AsyncInspectResourceWithRawResponse:
|
896 | 942 | from .resources.inspect import AsyncInspectResourceWithRawResponse
|
@@ -995,6 +1041,12 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
|
995 | 1041 |
|
996 | 1042 | return AsyncScoringFunctionsResourceWithRawResponse(self._client.scoring_functions)
|
997 | 1043 |
|
| 1044 | + @cached_property |
| 1045 | + def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithRawResponse: |
| 1046 | + from .resources.benchmarks import AsyncBenchmarksResourceWithRawResponse |
| 1047 | + |
| 1048 | + return AsyncBenchmarksResourceWithRawResponse(self._client.benchmarks) |
| 1049 | + |
998 | 1050 | @cached_property
|
999 | 1051 | def files(self) -> files.AsyncFilesResourceWithRawResponse:
|
1000 | 1052 | from .resources.files import AsyncFilesResourceWithRawResponse
|
@@ -1038,6 +1090,12 @@ def responses(self) -> responses.ResponsesResourceWithStreamingResponse:
|
1038 | 1090 |
|
1039 | 1091 | return ResponsesResourceWithStreamingResponse(self._client.responses)
|
1040 | 1092 |
|
| 1093 | + @cached_property |
| 1094 | + def datasets(self) -> datasets.DatasetsResourceWithStreamingResponse: |
| 1095 | + from .resources.datasets import DatasetsResourceWithStreamingResponse |
| 1096 | + |
| 1097 | + return DatasetsResourceWithStreamingResponse(self._client.datasets) |
| 1098 | + |
1041 | 1099 | @cached_property
|
1042 | 1100 | def inspect(self) -> inspect.InspectResourceWithStreamingResponse:
|
1043 | 1101 | from .resources.inspect import InspectResourceWithStreamingResponse
|
@@ -1142,6 +1200,12 @@ def scoring_functions(self) -> scoring_functions.ScoringFunctionsResourceWithStr
|
1142 | 1200 |
|
1143 | 1201 | return ScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
|
1144 | 1202 |
|
| 1203 | + @cached_property |
| 1204 | + def benchmarks(self) -> benchmarks.BenchmarksResourceWithStreamingResponse: |
| 1205 | + from .resources.benchmarks import BenchmarksResourceWithStreamingResponse |
| 1206 | + |
| 1207 | + return BenchmarksResourceWithStreamingResponse(self._client.benchmarks) |
| 1208 | + |
1145 | 1209 | @cached_property
|
1146 | 1210 | def files(self) -> files.FilesResourceWithStreamingResponse:
|
1147 | 1211 | from .resources.files import FilesResourceWithStreamingResponse
|
@@ -1185,6 +1249,12 @@ def responses(self) -> responses.AsyncResponsesResourceWithStreamingResponse:
|
1185 | 1249 |
|
1186 | 1250 | return AsyncResponsesResourceWithStreamingResponse(self._client.responses)
|
1187 | 1251 |
|
| 1252 | + @cached_property |
| 1253 | + def datasets(self) -> datasets.AsyncDatasetsResourceWithStreamingResponse: |
| 1254 | + from .resources.datasets import AsyncDatasetsResourceWithStreamingResponse |
| 1255 | + |
| 1256 | + return AsyncDatasetsResourceWithStreamingResponse(self._client.datasets) |
| 1257 | + |
1188 | 1258 | @cached_property
|
1189 | 1259 | def inspect(self) -> inspect.AsyncInspectResourceWithStreamingResponse:
|
1190 | 1260 | from .resources.inspect import AsyncInspectResourceWithStreamingResponse
|
@@ -1289,6 +1359,12 @@ def scoring_functions(self) -> scoring_functions.AsyncScoringFunctionsResourceWi
|
1289 | 1359 |
|
1290 | 1360 | return AsyncScoringFunctionsResourceWithStreamingResponse(self._client.scoring_functions)
|
1291 | 1361 |
|
| 1362 | + @cached_property |
| 1363 | + def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithStreamingResponse: |
| 1364 | + from .resources.benchmarks import AsyncBenchmarksResourceWithStreamingResponse |
| 1365 | + |
| 1366 | + return AsyncBenchmarksResourceWithStreamingResponse(self._client.benchmarks) |
| 1367 | + |
1292 | 1368 | @cached_property
|
1293 | 1369 | def files(self) -> files.AsyncFilesResourceWithStreamingResponse:
|
1294 | 1370 | from .resources.files import AsyncFilesResourceWithStreamingResponse
|
|
0 commit comments