scale-gp-beta 0.1.0a30__py3-none-any.whl → 0.1.0a32__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.
- scale_gp_beta/__init__.py +3 -1
- scale_gp_beta/_base_client.py +12 -12
- scale_gp_beta/_client.py +20 -20
- scale_gp_beta/_compat.py +48 -48
- scale_gp_beta/_models.py +51 -45
- scale_gp_beta/_qs.py +7 -7
- scale_gp_beta/_types.py +53 -12
- scale_gp_beta/_utils/__init__.py +9 -2
- scale_gp_beta/_utils/_compat.py +45 -0
- scale_gp_beta/_utils/_datetime_parse.py +136 -0
- scale_gp_beta/_utils/_transform.py +13 -3
- scale_gp_beta/_utils/_typing.py +6 -1
- scale_gp_beta/_utils/_utils.py +4 -5
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/resources/__init__.py +6 -6
- scale_gp_beta/resources/chat/completions.py +236 -236
- scale_gp_beta/resources/completions.py +142 -142
- scale_gp_beta/resources/dataset_items.py +27 -27
- scale_gp_beta/resources/datasets.py +38 -38
- scale_gp_beta/resources/evaluation_items.py +19 -19
- scale_gp_beta/resources/evaluations.py +97 -75
- scale_gp_beta/resources/files/content.py +3 -3
- scale_gp_beta/resources/files/files.py +21 -21
- scale_gp_beta/resources/inference.py +7 -7
- scale_gp_beta/resources/models.py +71 -73
- scale_gp_beta/resources/questions.py +43 -43
- scale_gp_beta/resources/responses.py +34 -34
- scale_gp_beta/resources/spans.py +81 -81
- scale_gp_beta/types/__init__.py +4 -4
- scale_gp_beta/types/chat/chat_completion.py +114 -19
- scale_gp_beta/types/chat/chat_completion_chunk.py +84 -14
- scale_gp_beta/types/chat/completion_create_params.py +5 -3
- scale_gp_beta/types/completion.py +36 -6
- scale_gp_beta/types/completion_create_params.py +5 -3
- scale_gp_beta/types/container.py +2 -2
- scale_gp_beta/types/container_param.py +2 -2
- scale_gp_beta/types/dataset_create_params.py +4 -2
- scale_gp_beta/types/dataset_list_params.py +3 -2
- scale_gp_beta/types/dataset_update_params.py +3 -2
- scale_gp_beta/types/evaluation.py +7 -1
- scale_gp_beta/types/evaluation_create_params.py +17 -6
- scale_gp_beta/types/evaluation_list_params.py +3 -1
- scale_gp_beta/types/evaluation_task.py +6 -1
- scale_gp_beta/types/evaluation_task_param.py +4 -3
- scale_gp_beta/types/evaluation_update_params.py +3 -2
- scale_gp_beta/types/inference_model.py +10 -1
- scale_gp_beta/types/model_create_params.py +6 -4
- scale_gp_beta/types/model_update_params.py +6 -4
- scale_gp_beta/types/question_create_params.py +4 -2
- scale_gp_beta/types/response.py +852 -142
- scale_gp_beta/types/response_create_params.py +7 -5
- scale_gp_beta/types/response_create_response.py +6072 -1012
- scale_gp_beta/types/span_search_params.py +8 -7
- {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/METADATA +1 -1
- {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/RECORD +57 -55
- {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a30.dist-info → scale_gp_beta-0.1.0a32.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Dict,
|
|
5
|
+
from typing import Dict, Iterable
|
|
6
6
|
from typing_extensions import Literal
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
10
|
from ..types import dataset_list_params, dataset_create_params, dataset_update_params, dataset_retrieve_params
|
|
11
|
-
from .._types import
|
|
11
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
12
12
|
from .._utils import maybe_transform, async_maybe_transform
|
|
13
13
|
from .._compat import cached_property
|
|
14
14
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -51,14 +51,14 @@ class DatasetsResource(SyncAPIResource):
|
|
|
51
51
|
*,
|
|
52
52
|
data: Iterable[Dict[str, object]],
|
|
53
53
|
name: str,
|
|
54
|
-
description: str |
|
|
55
|
-
tags:
|
|
54
|
+
description: str | Omit = omit,
|
|
55
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
56
56
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
57
57
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
58
58
|
extra_headers: Headers | None = None,
|
|
59
59
|
extra_query: Query | None = None,
|
|
60
60
|
extra_body: Body | None = None,
|
|
61
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
61
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
62
62
|
) -> Dataset:
|
|
63
63
|
"""
|
|
64
64
|
Create Dataset
|
|
@@ -97,13 +97,13 @@ class DatasetsResource(SyncAPIResource):
|
|
|
97
97
|
self,
|
|
98
98
|
dataset_id: str,
|
|
99
99
|
*,
|
|
100
|
-
include_archived: bool |
|
|
100
|
+
include_archived: bool | Omit = omit,
|
|
101
101
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
102
102
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
103
103
|
extra_headers: Headers | None = None,
|
|
104
104
|
extra_query: Query | None = None,
|
|
105
105
|
extra_body: Body | None = None,
|
|
106
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
106
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
107
107
|
) -> Dataset:
|
|
108
108
|
"""
|
|
109
109
|
Get Dataset
|
|
@@ -137,15 +137,15 @@ class DatasetsResource(SyncAPIResource):
|
|
|
137
137
|
self,
|
|
138
138
|
dataset_id: str,
|
|
139
139
|
*,
|
|
140
|
-
description: str |
|
|
141
|
-
name: str |
|
|
142
|
-
tags:
|
|
140
|
+
description: str | Omit = omit,
|
|
141
|
+
name: str | Omit = omit,
|
|
142
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
143
143
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
144
144
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
145
145
|
extra_headers: Headers | None = None,
|
|
146
146
|
extra_query: Query | None = None,
|
|
147
147
|
extra_body: Body | None = None,
|
|
148
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
148
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
149
149
|
) -> Dataset:
|
|
150
150
|
"""
|
|
151
151
|
Update Dataset
|
|
@@ -182,19 +182,19 @@ class DatasetsResource(SyncAPIResource):
|
|
|
182
182
|
def list(
|
|
183
183
|
self,
|
|
184
184
|
*,
|
|
185
|
-
ending_before: str |
|
|
186
|
-
include_archived: bool |
|
|
187
|
-
limit: int |
|
|
188
|
-
name: str |
|
|
189
|
-
sort_order: Literal["asc", "desc"] |
|
|
190
|
-
starting_after: str |
|
|
191
|
-
tags:
|
|
185
|
+
ending_before: str | Omit = omit,
|
|
186
|
+
include_archived: bool | Omit = omit,
|
|
187
|
+
limit: int | Omit = omit,
|
|
188
|
+
name: str | Omit = omit,
|
|
189
|
+
sort_order: Literal["asc", "desc"] | Omit = omit,
|
|
190
|
+
starting_after: str | Omit = omit,
|
|
191
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
192
192
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
193
193
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
194
194
|
extra_headers: Headers | None = None,
|
|
195
195
|
extra_query: Query | None = None,
|
|
196
196
|
extra_body: Body | None = None,
|
|
197
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
197
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
198
198
|
) -> SyncCursorPage[Dataset]:
|
|
199
199
|
"""
|
|
200
200
|
List Datasets
|
|
@@ -241,7 +241,7 @@ class DatasetsResource(SyncAPIResource):
|
|
|
241
241
|
extra_headers: Headers | None = None,
|
|
242
242
|
extra_query: Query | None = None,
|
|
243
243
|
extra_body: Body | None = None,
|
|
244
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
244
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
245
245
|
) -> DatasetDeleteResponse:
|
|
246
246
|
"""
|
|
247
247
|
Delete Dataset
|
|
@@ -291,14 +291,14 @@ class AsyncDatasetsResource(AsyncAPIResource):
|
|
|
291
291
|
*,
|
|
292
292
|
data: Iterable[Dict[str, object]],
|
|
293
293
|
name: str,
|
|
294
|
-
description: str |
|
|
295
|
-
tags:
|
|
294
|
+
description: str | Omit = omit,
|
|
295
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
296
296
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
297
297
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
298
298
|
extra_headers: Headers | None = None,
|
|
299
299
|
extra_query: Query | None = None,
|
|
300
300
|
extra_body: Body | None = None,
|
|
301
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
301
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
302
302
|
) -> Dataset:
|
|
303
303
|
"""
|
|
304
304
|
Create Dataset
|
|
@@ -337,13 +337,13 @@ class AsyncDatasetsResource(AsyncAPIResource):
|
|
|
337
337
|
self,
|
|
338
338
|
dataset_id: str,
|
|
339
339
|
*,
|
|
340
|
-
include_archived: bool |
|
|
340
|
+
include_archived: bool | Omit = omit,
|
|
341
341
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
342
342
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
343
343
|
extra_headers: Headers | None = None,
|
|
344
344
|
extra_query: Query | None = None,
|
|
345
345
|
extra_body: Body | None = None,
|
|
346
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
346
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
347
347
|
) -> Dataset:
|
|
348
348
|
"""
|
|
349
349
|
Get Dataset
|
|
@@ -377,15 +377,15 @@ class AsyncDatasetsResource(AsyncAPIResource):
|
|
|
377
377
|
self,
|
|
378
378
|
dataset_id: str,
|
|
379
379
|
*,
|
|
380
|
-
description: str |
|
|
381
|
-
name: str |
|
|
382
|
-
tags:
|
|
380
|
+
description: str | Omit = omit,
|
|
381
|
+
name: str | Omit = omit,
|
|
382
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
383
383
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
384
384
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
385
385
|
extra_headers: Headers | None = None,
|
|
386
386
|
extra_query: Query | None = None,
|
|
387
387
|
extra_body: Body | None = None,
|
|
388
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
388
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
389
389
|
) -> Dataset:
|
|
390
390
|
"""
|
|
391
391
|
Update Dataset
|
|
@@ -422,19 +422,19 @@ class AsyncDatasetsResource(AsyncAPIResource):
|
|
|
422
422
|
def list(
|
|
423
423
|
self,
|
|
424
424
|
*,
|
|
425
|
-
ending_before: str |
|
|
426
|
-
include_archived: bool |
|
|
427
|
-
limit: int |
|
|
428
|
-
name: str |
|
|
429
|
-
sort_order: Literal["asc", "desc"] |
|
|
430
|
-
starting_after: str |
|
|
431
|
-
tags:
|
|
425
|
+
ending_before: str | Omit = omit,
|
|
426
|
+
include_archived: bool | Omit = omit,
|
|
427
|
+
limit: int | Omit = omit,
|
|
428
|
+
name: str | Omit = omit,
|
|
429
|
+
sort_order: Literal["asc", "desc"] | Omit = omit,
|
|
430
|
+
starting_after: str | Omit = omit,
|
|
431
|
+
tags: SequenceNotStr[str] | Omit = omit,
|
|
432
432
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
433
433
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
434
434
|
extra_headers: Headers | None = None,
|
|
435
435
|
extra_query: Query | None = None,
|
|
436
436
|
extra_body: Body | None = None,
|
|
437
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
437
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
438
438
|
) -> AsyncPaginator[Dataset, AsyncCursorPage[Dataset]]:
|
|
439
439
|
"""
|
|
440
440
|
List Datasets
|
|
@@ -481,7 +481,7 @@ class AsyncDatasetsResource(AsyncAPIResource):
|
|
|
481
481
|
extra_headers: Headers | None = None,
|
|
482
482
|
extra_query: Query | None = None,
|
|
483
483
|
extra_body: Body | None = None,
|
|
484
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
484
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
485
485
|
) -> DatasetDeleteResponse:
|
|
486
486
|
"""
|
|
487
487
|
Delete Dataset
|
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
9
|
from ..types import evaluation_item_list_params, evaluation_item_retrieve_params
|
|
10
|
-
from .._types import
|
|
10
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
11
11
|
from .._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from .._compat import cached_property
|
|
13
13
|
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -48,13 +48,13 @@ class EvaluationItemsResource(SyncAPIResource):
|
|
|
48
48
|
self,
|
|
49
49
|
evaluation_item_id: str,
|
|
50
50
|
*,
|
|
51
|
-
include_archived: bool |
|
|
51
|
+
include_archived: bool | Omit = omit,
|
|
52
52
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
53
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
54
|
extra_headers: Headers | None = None,
|
|
55
55
|
extra_query: Query | None = None,
|
|
56
56
|
extra_body: Body | None = None,
|
|
57
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
57
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
58
58
|
) -> EvaluationItem:
|
|
59
59
|
"""
|
|
60
60
|
Get Evaluation Item
|
|
@@ -87,18 +87,18 @@ class EvaluationItemsResource(SyncAPIResource):
|
|
|
87
87
|
def list(
|
|
88
88
|
self,
|
|
89
89
|
*,
|
|
90
|
-
ending_before: str |
|
|
91
|
-
evaluation_id: str |
|
|
92
|
-
include_archived: bool |
|
|
93
|
-
limit: int |
|
|
94
|
-
sort_order: Literal["asc", "desc"] |
|
|
95
|
-
starting_after: str |
|
|
90
|
+
ending_before: str | Omit = omit,
|
|
91
|
+
evaluation_id: str | Omit = omit,
|
|
92
|
+
include_archived: bool | Omit = omit,
|
|
93
|
+
limit: int | Omit = omit,
|
|
94
|
+
sort_order: Literal["asc", "desc"] | Omit = omit,
|
|
95
|
+
starting_after: str | Omit = omit,
|
|
96
96
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
97
97
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
98
98
|
extra_headers: Headers | None = None,
|
|
99
99
|
extra_query: Query | None = None,
|
|
100
100
|
extra_body: Body | None = None,
|
|
101
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
101
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
102
102
|
) -> SyncCursorPage[EvaluationItem]:
|
|
103
103
|
"""
|
|
104
104
|
List Evaluation Items
|
|
@@ -160,13 +160,13 @@ class AsyncEvaluationItemsResource(AsyncAPIResource):
|
|
|
160
160
|
self,
|
|
161
161
|
evaluation_item_id: str,
|
|
162
162
|
*,
|
|
163
|
-
include_archived: bool |
|
|
163
|
+
include_archived: bool | Omit = omit,
|
|
164
164
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
165
165
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
166
166
|
extra_headers: Headers | None = None,
|
|
167
167
|
extra_query: Query | None = None,
|
|
168
168
|
extra_body: Body | None = None,
|
|
169
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
169
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
170
170
|
) -> EvaluationItem:
|
|
171
171
|
"""
|
|
172
172
|
Get Evaluation Item
|
|
@@ -199,18 +199,18 @@ class AsyncEvaluationItemsResource(AsyncAPIResource):
|
|
|
199
199
|
def list(
|
|
200
200
|
self,
|
|
201
201
|
*,
|
|
202
|
-
ending_before: str |
|
|
203
|
-
evaluation_id: str |
|
|
204
|
-
include_archived: bool |
|
|
205
|
-
limit: int |
|
|
206
|
-
sort_order: Literal["asc", "desc"] |
|
|
207
|
-
starting_after: str |
|
|
202
|
+
ending_before: str | Omit = omit,
|
|
203
|
+
evaluation_id: str | Omit = omit,
|
|
204
|
+
include_archived: bool | Omit = omit,
|
|
205
|
+
limit: int | Omit = omit,
|
|
206
|
+
sort_order: Literal["asc", "desc"] | Omit = omit,
|
|
207
|
+
starting_after: str | Omit = omit,
|
|
208
208
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
209
209
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
210
210
|
extra_headers: Headers | None = None,
|
|
211
211
|
extra_query: Query | None = None,
|
|
212
212
|
extra_body: Body | None = None,
|
|
213
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
213
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
214
214
|
) -> AsyncPaginator[EvaluationItem, AsyncCursorPage[EvaluationItem]]:
|
|
215
215
|
"""
|
|
216
216
|
List Evaluation Items
|