scale-gp-beta 0.1.0a7__py3-none-any.whl → 0.1.0a9__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/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "scale_gp_beta"
4
- __version__ = "0.1.0-alpha.7" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.9" # x-release-please-version
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable, Optional
6
- from typing_extensions import overload
5
+ from typing import Dict, List, Iterable, Optional
6
+ from typing_extensions import Literal, overload
7
7
 
8
8
  import httpx
9
9
 
@@ -25,6 +25,7 @@ from .._response import (
25
25
  from ..pagination import SyncCursorPage, AsyncCursorPage
26
26
  from .._base_client import AsyncPaginator, make_request_options
27
27
  from ..types.evaluation import Evaluation
28
+ from ..types.evaluation_task_param import EvaluationTaskParam
28
29
  from ..types.evaluation_archive_response import EvaluationArchiveResponse
29
30
 
30
31
  __all__ = ["EvaluationsResource", "AsyncEvaluationsResource"]
@@ -57,7 +58,7 @@ class EvaluationsResource(SyncAPIResource):
57
58
  data: Iterable[Dict[str, object]],
58
59
  name: str,
59
60
  description: str | NotGiven = NOT_GIVEN,
60
- tasks: Iterable[evaluation_create_params.EvaluationStandaloneCreateRequestTask] | NotGiven = NOT_GIVEN,
61
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
61
62
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
62
63
  # The extra values given here take precedence over values defined on the client or passed to this method.
63
64
  extra_headers: Headers | None = None,
@@ -91,7 +92,7 @@ class EvaluationsResource(SyncAPIResource):
91
92
  name: str,
92
93
  data: Iterable[evaluation_create_params.EvaluationFromDatasetCreateRequestData] | NotGiven = NOT_GIVEN,
93
94
  description: str | NotGiven = NOT_GIVEN,
94
- tasks: Iterable[evaluation_create_params.EvaluationFromDatasetCreateRequestTask] | NotGiven = NOT_GIVEN,
95
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
95
96
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
96
97
  # The extra values given here take precedence over values defined on the client or passed to this method.
97
98
  extra_headers: Headers | None = None,
@@ -127,7 +128,7 @@ class EvaluationsResource(SyncAPIResource):
127
128
  dataset: evaluation_create_params.EvaluationWithDatasetCreateRequestDataset,
128
129
  name: str,
129
130
  description: str | NotGiven = NOT_GIVEN,
130
- tasks: Iterable[evaluation_create_params.EvaluationWithDatasetCreateRequestTask] | NotGiven = NOT_GIVEN,
131
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
131
132
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
132
133
  # The extra values given here take precedence over values defined on the client or passed to this method.
133
134
  extra_headers: Headers | None = None,
@@ -164,7 +165,7 @@ class EvaluationsResource(SyncAPIResource):
164
165
  | NotGiven = NOT_GIVEN,
165
166
  name: str,
166
167
  description: str | NotGiven = NOT_GIVEN,
167
- tasks: Iterable[evaluation_create_params.EvaluationStandaloneCreateRequestTask] | NotGiven = NOT_GIVEN,
168
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
168
169
  dataset_id: str | NotGiven = NOT_GIVEN,
169
170
  dataset: evaluation_create_params.EvaluationWithDatasetCreateRequestDataset | NotGiven = NOT_GIVEN,
170
171
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -198,6 +199,7 @@ class EvaluationsResource(SyncAPIResource):
198
199
  evaluation_id: str,
199
200
  *,
200
201
  include_archived: bool | NotGiven = NOT_GIVEN,
202
+ views: List[Literal["tasks"]] | NotGiven = NOT_GIVEN,
201
203
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
202
204
  # The extra values given here take precedence over values defined on the client or passed to this method.
203
205
  extra_headers: Headers | None = None,
@@ -227,7 +229,11 @@ class EvaluationsResource(SyncAPIResource):
227
229
  extra_body=extra_body,
228
230
  timeout=timeout,
229
231
  query=maybe_transform(
230
- {"include_archived": include_archived}, evaluation_retrieve_params.EvaluationRetrieveParams
232
+ {
233
+ "include_archived": include_archived,
234
+ "views": views,
235
+ },
236
+ evaluation_retrieve_params.EvaluationRetrieveParams,
231
237
  ),
232
238
  ),
233
239
  cast_to=Evaluation,
@@ -240,6 +246,7 @@ class EvaluationsResource(SyncAPIResource):
240
246
  include_archived: bool | NotGiven = NOT_GIVEN,
241
247
  limit: int | NotGiven = NOT_GIVEN,
242
248
  starting_after: Optional[str] | NotGiven = NOT_GIVEN,
249
+ views: List[Literal["tasks"]] | NotGiven = NOT_GIVEN,
243
250
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
244
251
  # The extra values given here take precedence over values defined on the client or passed to this method.
245
252
  extra_headers: Headers | None = None,
@@ -273,6 +280,7 @@ class EvaluationsResource(SyncAPIResource):
273
280
  "include_archived": include_archived,
274
281
  "limit": limit,
275
282
  "starting_after": starting_after,
283
+ "views": views,
276
284
  },
277
285
  evaluation_list_params.EvaluationListParams,
278
286
  ),
@@ -341,7 +349,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
341
349
  data: Iterable[Dict[str, object]],
342
350
  name: str,
343
351
  description: str | NotGiven = NOT_GIVEN,
344
- tasks: Iterable[evaluation_create_params.EvaluationStandaloneCreateRequestTask] | NotGiven = NOT_GIVEN,
352
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
345
353
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
346
354
  # The extra values given here take precedence over values defined on the client or passed to this method.
347
355
  extra_headers: Headers | None = None,
@@ -375,7 +383,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
375
383
  name: str,
376
384
  data: Iterable[evaluation_create_params.EvaluationFromDatasetCreateRequestData] | NotGiven = NOT_GIVEN,
377
385
  description: str | NotGiven = NOT_GIVEN,
378
- tasks: Iterable[evaluation_create_params.EvaluationFromDatasetCreateRequestTask] | NotGiven = NOT_GIVEN,
386
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
379
387
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
380
388
  # The extra values given here take precedence over values defined on the client or passed to this method.
381
389
  extra_headers: Headers | None = None,
@@ -411,7 +419,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
411
419
  dataset: evaluation_create_params.EvaluationWithDatasetCreateRequestDataset,
412
420
  name: str,
413
421
  description: str | NotGiven = NOT_GIVEN,
414
- tasks: Iterable[evaluation_create_params.EvaluationWithDatasetCreateRequestTask] | NotGiven = NOT_GIVEN,
422
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
415
423
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
416
424
  # The extra values given here take precedence over values defined on the client or passed to this method.
417
425
  extra_headers: Headers | None = None,
@@ -448,7 +456,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
448
456
  | NotGiven = NOT_GIVEN,
449
457
  name: str,
450
458
  description: str | NotGiven = NOT_GIVEN,
451
- tasks: Iterable[evaluation_create_params.EvaluationStandaloneCreateRequestTask] | NotGiven = NOT_GIVEN,
459
+ tasks: Iterable[EvaluationTaskParam] | NotGiven = NOT_GIVEN,
452
460
  dataset_id: str | NotGiven = NOT_GIVEN,
453
461
  dataset: evaluation_create_params.EvaluationWithDatasetCreateRequestDataset | NotGiven = NOT_GIVEN,
454
462
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -482,6 +490,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
482
490
  evaluation_id: str,
483
491
  *,
484
492
  include_archived: bool | NotGiven = NOT_GIVEN,
493
+ views: List[Literal["tasks"]] | NotGiven = NOT_GIVEN,
485
494
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
486
495
  # The extra values given here take precedence over values defined on the client or passed to this method.
487
496
  extra_headers: Headers | None = None,
@@ -511,7 +520,11 @@ class AsyncEvaluationsResource(AsyncAPIResource):
511
520
  extra_body=extra_body,
512
521
  timeout=timeout,
513
522
  query=await async_maybe_transform(
514
- {"include_archived": include_archived}, evaluation_retrieve_params.EvaluationRetrieveParams
523
+ {
524
+ "include_archived": include_archived,
525
+ "views": views,
526
+ },
527
+ evaluation_retrieve_params.EvaluationRetrieveParams,
515
528
  ),
516
529
  ),
517
530
  cast_to=Evaluation,
@@ -524,6 +537,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
524
537
  include_archived: bool | NotGiven = NOT_GIVEN,
525
538
  limit: int | NotGiven = NOT_GIVEN,
526
539
  starting_after: Optional[str] | NotGiven = NOT_GIVEN,
540
+ views: List[Literal["tasks"]] | NotGiven = NOT_GIVEN,
527
541
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
528
542
  # The extra values given here take precedence over values defined on the client or passed to this method.
529
543
  extra_headers: Headers | None = None,
@@ -557,6 +571,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
557
571
  "include_archived": include_archived,
558
572
  "limit": limit,
559
573
  "starting_after": starting_after,
574
+ "views": views,
560
575
  },
561
576
  evaluation_list_params.EvaluationListParams,
562
577
  ),
@@ -9,6 +9,7 @@ from .completion import Completion as Completion
9
9
  from .evaluation import Evaluation as Evaluation
10
10
  from .dataset_item import DatasetItem as DatasetItem
11
11
  from .evaluation_item import EvaluationItem as EvaluationItem
12
+ from .evaluation_task import EvaluationTask as EvaluationTask
12
13
  from .inference_model import InferenceModel as InferenceModel
13
14
  from .file_list_params import FileListParams as FileListParams
14
15
  from .model_list_params import ModelListParams as ModelListParams
@@ -22,6 +23,7 @@ from .file_delete_response import FileDeleteResponse as FileDeleteResponse
22
23
  from .inference_model_list import InferenceModelList as InferenceModelList
23
24
  from .dataset_create_params import DatasetCreateParams as DatasetCreateParams
24
25
  from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams
26
+ from .evaluation_task_param import EvaluationTaskParam as EvaluationTaskParam
25
27
  from .model_delete_response import ModelDeleteResponse as ModelDeleteResponse
26
28
  from .evaluation_list_params import EvaluationListParams as EvaluationListParams
27
29
  from .dataset_delete_response import DatasetDeleteResponse as DatasetDeleteResponse
@@ -6,6 +6,7 @@ from typing_extensions import Literal
6
6
 
7
7
  from .dataset import Dataset
8
8
  from .._models import BaseModel
9
+ from .evaluation_task import EvaluationTask
9
10
 
10
11
  __all__ = ["Evaluation"]
11
12
 
@@ -28,3 +29,6 @@ class Evaluation(BaseModel):
28
29
  description: Optional[str] = None
29
30
 
30
31
  object: Optional[Literal["evaluation"]] = None
32
+
33
+ tasks: Optional[List[EvaluationTask]] = None
34
+ """Tasks executed during evaluation. Populated with optional `task` view."""