scale-gp-beta 0.1.0a39__py3-none-any.whl → 0.1.0a41__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.
Files changed (46) hide show
  1. scale_gp_beta/_base_client.py +140 -11
  2. scale_gp_beta/_client.py +602 -143
  3. scale_gp_beta/_models.py +16 -1
  4. scale_gp_beta/_streaming.py +12 -10
  5. scale_gp_beta/_types.py +12 -2
  6. scale_gp_beta/_version.py +1 -1
  7. scale_gp_beta/resources/__init__.py +14 -0
  8. scale_gp_beta/resources/build.py +582 -0
  9. scale_gp_beta/resources/chat/completions.py +4 -0
  10. scale_gp_beta/resources/credentials.py +4 -0
  11. scale_gp_beta/resources/dataset_items.py +4 -0
  12. scale_gp_beta/resources/datasets.py +4 -0
  13. scale_gp_beta/resources/evaluation_items.py +4 -0
  14. scale_gp_beta/resources/evaluations.py +4 -0
  15. scale_gp_beta/resources/files/files.py +4 -0
  16. scale_gp_beta/resources/models.py +4 -0
  17. scale_gp_beta/resources/questions.py +4 -0
  18. scale_gp_beta/resources/spans.py +28 -0
  19. scale_gp_beta/types/__init__.py +6 -0
  20. scale_gp_beta/types/build_cancel_response.py +38 -0
  21. scale_gp_beta/types/build_create_params.py +26 -0
  22. scale_gp_beta/types/build_create_response.py +38 -0
  23. scale_gp_beta/types/build_list_params.py +19 -0
  24. scale_gp_beta/types/build_list_response.py +38 -0
  25. scale_gp_beta/types/build_retrieve_response.py +38 -0
  26. scale_gp_beta/types/chat/completion_models_params.py +2 -0
  27. scale_gp_beta/types/credential_list_params.py +2 -0
  28. scale_gp_beta/types/dataset_item_list_params.py +2 -0
  29. scale_gp_beta/types/dataset_list_params.py +2 -0
  30. scale_gp_beta/types/evaluation.py +2 -0
  31. scale_gp_beta/types/evaluation_create_params.py +2 -0
  32. scale_gp_beta/types/evaluation_item_list_params.py +2 -0
  33. scale_gp_beta/types/evaluation_list_params.py +2 -0
  34. scale_gp_beta/types/evaluation_task.py +5 -1
  35. scale_gp_beta/types/evaluation_task_param.py +5 -1
  36. scale_gp_beta/types/file_import_from_cloud_response.py +4 -0
  37. scale_gp_beta/types/file_list_params.py +2 -0
  38. scale_gp_beta/types/inference_create_params.py +2 -0
  39. scale_gp_beta/types/model_list_params.py +2 -0
  40. scale_gp_beta/types/question_list_params.py +2 -0
  41. scale_gp_beta/types/span_assessment.py +2 -0
  42. scale_gp_beta/types/span_search_params.py +11 -0
  43. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a41.dist-info}/METADATA +14 -42
  44. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a41.dist-info}/RECORD +46 -39
  45. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a41.dist-info}/licenses/LICENSE +1 -1
  46. {scale_gp_beta-0.1.0a39.dist-info → scale_gp_beta-0.1.0a41.dist-info}/WHEEL +0 -0
@@ -238,6 +238,7 @@ class DatasetsResource(SyncAPIResource):
238
238
  include_archived: bool | Omit = omit,
239
239
  limit: int | Omit = omit,
240
240
  name: str | Omit = omit,
241
+ sort_by: str | Omit = omit,
241
242
  sort_order: Literal["asc", "desc"] | Omit = omit,
242
243
  starting_after: str | Omit = omit,
243
244
  tags: SequenceNotStr[str] | Omit = omit,
@@ -274,6 +275,7 @@ class DatasetsResource(SyncAPIResource):
274
275
  "include_archived": include_archived,
275
276
  "limit": limit,
276
277
  "name": name,
278
+ "sort_by": sort_by,
277
279
  "sort_order": sort_order,
278
280
  "starting_after": starting_after,
279
281
  "tags": tags,
@@ -530,6 +532,7 @@ class AsyncDatasetsResource(AsyncAPIResource):
530
532
  include_archived: bool | Omit = omit,
531
533
  limit: int | Omit = omit,
532
534
  name: str | Omit = omit,
535
+ sort_by: str | Omit = omit,
533
536
  sort_order: Literal["asc", "desc"] | Omit = omit,
534
537
  starting_after: str | Omit = omit,
535
538
  tags: SequenceNotStr[str] | Omit = omit,
@@ -566,6 +569,7 @@ class AsyncDatasetsResource(AsyncAPIResource):
566
569
  "include_archived": include_archived,
567
570
  "limit": limit,
568
571
  "name": name,
572
+ "sort_by": sort_by,
569
573
  "sort_order": sort_order,
570
574
  "starting_after": starting_after,
571
575
  "tags": tags,
@@ -91,6 +91,7 @@ class EvaluationItemsResource(SyncAPIResource):
91
91
  evaluation_id: str | Omit = omit,
92
92
  include_archived: bool | Omit = omit,
93
93
  limit: int | Omit = omit,
94
+ sort_by: str | Omit = omit,
94
95
  sort_order: Literal["asc", "desc"] | Omit = omit,
95
96
  starting_after: str | Omit = omit,
96
97
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -126,6 +127,7 @@ class EvaluationItemsResource(SyncAPIResource):
126
127
  "evaluation_id": evaluation_id,
127
128
  "include_archived": include_archived,
128
129
  "limit": limit,
130
+ "sort_by": sort_by,
129
131
  "sort_order": sort_order,
130
132
  "starting_after": starting_after,
131
133
  },
@@ -203,6 +205,7 @@ class AsyncEvaluationItemsResource(AsyncAPIResource):
203
205
  evaluation_id: str | Omit = omit,
204
206
  include_archived: bool | Omit = omit,
205
207
  limit: int | Omit = omit,
208
+ sort_by: str | Omit = omit,
206
209
  sort_order: Literal["asc", "desc"] | Omit = omit,
207
210
  starting_after: str | Omit = omit,
208
211
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -238,6 +241,7 @@ class AsyncEvaluationItemsResource(AsyncAPIResource):
238
241
  "evaluation_id": evaluation_id,
239
242
  "include_archived": include_archived,
240
243
  "limit": limit,
244
+ "sort_by": sort_by,
241
245
  "sort_order": sort_order,
242
246
  "starting_after": starting_after,
243
247
  },
@@ -370,6 +370,7 @@ class EvaluationsResource(SyncAPIResource):
370
370
  include_archived: bool | Omit = omit,
371
371
  limit: int | Omit = omit,
372
372
  name: str | Omit = omit,
373
+ sort_by: str | Omit = omit,
373
374
  sort_order: Literal["asc", "desc"] | Omit = omit,
374
375
  starting_after: str | Omit = omit,
375
376
  tags: SequenceNotStr[str] | Omit = omit,
@@ -407,6 +408,7 @@ class EvaluationsResource(SyncAPIResource):
407
408
  "include_archived": include_archived,
408
409
  "limit": limit,
409
410
  "name": name,
411
+ "sort_by": sort_by,
410
412
  "sort_order": sort_order,
411
413
  "starting_after": starting_after,
412
414
  "tags": tags,
@@ -791,6 +793,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
791
793
  include_archived: bool | Omit = omit,
792
794
  limit: int | Omit = omit,
793
795
  name: str | Omit = omit,
796
+ sort_by: str | Omit = omit,
794
797
  sort_order: Literal["asc", "desc"] | Omit = omit,
795
798
  starting_after: str | Omit = omit,
796
799
  tags: SequenceNotStr[str] | Omit = omit,
@@ -828,6 +831,7 @@ class AsyncEvaluationsResource(AsyncAPIResource):
828
831
  "include_archived": include_archived,
829
832
  "limit": limit,
830
833
  "name": name,
834
+ "sort_by": sort_by,
831
835
  "sort_order": sort_order,
832
836
  "starting_after": starting_after,
833
837
  "tags": tags,
@@ -172,6 +172,7 @@ class FilesResource(SyncAPIResource):
172
172
  ending_before: str | Omit = omit,
173
173
  filename: str | Omit = omit,
174
174
  limit: int | Omit = omit,
175
+ sort_by: str | Omit = omit,
175
176
  sort_order: Literal["asc", "desc"] | Omit = omit,
176
177
  starting_after: str | Omit = omit,
177
178
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -208,6 +209,7 @@ class FilesResource(SyncAPIResource):
208
209
  "ending_before": ending_before,
209
210
  "filename": filename,
210
211
  "limit": limit,
212
+ "sort_by": sort_by,
211
213
  "sort_order": sort_order,
212
214
  "starting_after": starting_after,
213
215
  },
@@ -422,6 +424,7 @@ class AsyncFilesResource(AsyncAPIResource):
422
424
  ending_before: str | Omit = omit,
423
425
  filename: str | Omit = omit,
424
426
  limit: int | Omit = omit,
427
+ sort_by: str | Omit = omit,
425
428
  sort_order: Literal["asc", "desc"] | Omit = omit,
426
429
  starting_after: str | Omit = omit,
427
430
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -458,6 +461,7 @@ class AsyncFilesResource(AsyncAPIResource):
458
461
  "ending_before": ending_before,
459
462
  "filename": filename,
460
463
  "limit": limit,
464
+ "sort_by": sort_by,
461
465
  "sort_order": sort_order,
462
466
  "starting_after": starting_after,
463
467
  },
@@ -320,6 +320,7 @@ class ModelsResource(SyncAPIResource):
320
320
  ]
321
321
  | Omit = omit,
322
322
  name: str | Omit = omit,
323
+ sort_by: str | Omit = omit,
323
324
  sort_order: Literal["asc", "desc"] | Omit = omit,
324
325
  starting_after: str | Omit = omit,
325
326
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -355,6 +356,7 @@ class ModelsResource(SyncAPIResource):
355
356
  "limit": limit,
356
357
  "model_vendor": model_vendor,
357
358
  "name": name,
359
+ "sort_by": sort_by,
358
360
  "sort_order": sort_order,
359
361
  "starting_after": starting_after,
360
362
  },
@@ -692,6 +694,7 @@ class AsyncModelsResource(AsyncAPIResource):
692
694
  ]
693
695
  | Omit = omit,
694
696
  name: str | Omit = omit,
697
+ sort_by: str | Omit = omit,
695
698
  sort_order: Literal["asc", "desc"] | Omit = omit,
696
699
  starting_after: str | Omit = omit,
697
700
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -727,6 +730,7 @@ class AsyncModelsResource(AsyncAPIResource):
727
730
  "limit": limit,
728
731
  "model_vendor": model_vendor,
729
732
  "name": name,
733
+ "sort_by": sort_by,
730
734
  "sort_order": sort_order,
731
735
  "starting_after": starting_after,
732
736
  },
@@ -339,6 +339,7 @@ class QuestionsResource(SyncAPIResource):
339
339
  *,
340
340
  ending_before: str | Omit = omit,
341
341
  limit: int | Omit = omit,
342
+ sort_by: str | Omit = omit,
342
343
  sort_order: Literal["asc", "desc"] | Omit = omit,
343
344
  starting_after: str | Omit = omit,
344
345
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -372,6 +373,7 @@ class QuestionsResource(SyncAPIResource):
372
373
  {
373
374
  "ending_before": ending_before,
374
375
  "limit": limit,
376
+ "sort_by": sort_by,
375
377
  "sort_order": sort_order,
376
378
  "starting_after": starting_after,
377
379
  },
@@ -696,6 +698,7 @@ class AsyncQuestionsResource(AsyncAPIResource):
696
698
  *,
697
699
  ending_before: str | Omit = omit,
698
700
  limit: int | Omit = omit,
701
+ sort_by: str | Omit = omit,
699
702
  sort_order: Literal["asc", "desc"] | Omit = omit,
700
703
  starting_after: str | Omit = omit,
701
704
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -729,6 +732,7 @@ class AsyncQuestionsResource(AsyncAPIResource):
729
732
  {
730
733
  "ending_before": ending_before,
731
734
  "limit": limit,
735
+ "sort_by": sort_by,
732
736
  "sort_order": sort_order,
733
737
  "starting_after": starting_after,
734
738
  },
@@ -252,9 +252,13 @@ class SpansResource(SyncAPIResource):
252
252
  ending_before: str | Omit = omit,
253
253
  from_ts: Union[str, datetime] | Omit = omit,
254
254
  limit: int | Omit = omit,
255
+ sort_by: str | Omit = omit,
255
256
  sort_order: Literal["asc", "desc"] | Omit = omit,
256
257
  starting_after: str | Omit = omit,
257
258
  to_ts: Union[str, datetime] | Omit = omit,
259
+ acp_types: SequenceNotStr[str] | Omit = omit,
260
+ agentex_agent_ids: SequenceNotStr[str] | Omit = omit,
261
+ agentex_agent_names: SequenceNotStr[str] | Omit = omit,
258
262
  application_variant_ids: SequenceNotStr[str] | Omit = omit,
259
263
  assessment_types: SequenceNotStr[str] | Omit = omit,
260
264
  excluded_span_ids: SequenceNotStr[str] | Omit = omit,
@@ -285,6 +289,12 @@ class SpansResource(SyncAPIResource):
285
289
 
286
290
  to_ts: The ending (most recent) timestamp in ISO format.
287
291
 
292
+ acp_types: Filter by ACP types
293
+
294
+ agentex_agent_ids: Filter by Agentex agent IDs
295
+
296
+ agentex_agent_names: Filter by Agentex agent names
297
+
288
298
  application_variant_ids: Filter by application variant IDs
289
299
 
290
300
  assessment_types: Filter spans by traces that have assessments of these types
@@ -326,6 +336,9 @@ class SpansResource(SyncAPIResource):
326
336
  page=SyncCursorPage[Span],
327
337
  body=maybe_transform(
328
338
  {
339
+ "acp_types": acp_types,
340
+ "agentex_agent_ids": agentex_agent_ids,
341
+ "agentex_agent_names": agentex_agent_names,
329
342
  "application_variant_ids": application_variant_ids,
330
343
  "assessment_types": assessment_types,
331
344
  "excluded_span_ids": excluded_span_ids,
@@ -354,6 +367,7 @@ class SpansResource(SyncAPIResource):
354
367
  "ending_before": ending_before,
355
368
  "from_ts": from_ts,
356
369
  "limit": limit,
370
+ "sort_by": sort_by,
357
371
  "sort_order": sort_order,
358
372
  "starting_after": starting_after,
359
373
  "to_ts": to_ts,
@@ -612,9 +626,13 @@ class AsyncSpansResource(AsyncAPIResource):
612
626
  ending_before: str | Omit = omit,
613
627
  from_ts: Union[str, datetime] | Omit = omit,
614
628
  limit: int | Omit = omit,
629
+ sort_by: str | Omit = omit,
615
630
  sort_order: Literal["asc", "desc"] | Omit = omit,
616
631
  starting_after: str | Omit = omit,
617
632
  to_ts: Union[str, datetime] | Omit = omit,
633
+ acp_types: SequenceNotStr[str] | Omit = omit,
634
+ agentex_agent_ids: SequenceNotStr[str] | Omit = omit,
635
+ agentex_agent_names: SequenceNotStr[str] | Omit = omit,
618
636
  application_variant_ids: SequenceNotStr[str] | Omit = omit,
619
637
  assessment_types: SequenceNotStr[str] | Omit = omit,
620
638
  excluded_span_ids: SequenceNotStr[str] | Omit = omit,
@@ -645,6 +663,12 @@ class AsyncSpansResource(AsyncAPIResource):
645
663
 
646
664
  to_ts: The ending (most recent) timestamp in ISO format.
647
665
 
666
+ acp_types: Filter by ACP types
667
+
668
+ agentex_agent_ids: Filter by Agentex agent IDs
669
+
670
+ agentex_agent_names: Filter by Agentex agent names
671
+
648
672
  application_variant_ids: Filter by application variant IDs
649
673
 
650
674
  assessment_types: Filter spans by traces that have assessments of these types
@@ -686,6 +710,9 @@ class AsyncSpansResource(AsyncAPIResource):
686
710
  page=AsyncCursorPage[Span],
687
711
  body=maybe_transform(
688
712
  {
713
+ "acp_types": acp_types,
714
+ "agentex_agent_ids": agentex_agent_ids,
715
+ "agentex_agent_names": agentex_agent_names,
689
716
  "application_variant_ids": application_variant_ids,
690
717
  "assessment_types": assessment_types,
691
718
  "excluded_span_ids": excluded_span_ids,
@@ -714,6 +741,7 @@ class AsyncSpansResource(AsyncAPIResource):
714
741
  "ending_before": ending_before,
715
742
  "from_ts": from_ts,
716
743
  "limit": limit,
744
+ "sort_by": sort_by,
717
745
  "sort_order": sort_order,
718
746
  "starting_after": starting_after,
719
747
  "to_ts": to_ts,
@@ -28,6 +28,7 @@ from .evaluation_task import EvaluationTask as EvaluationTask
28
28
  from .inference_model import InferenceModel as InferenceModel
29
29
  from .span_assessment import SpanAssessment as SpanAssessment
30
30
  from .file_list_params import FileListParams as FileListParams
31
+ from .build_list_params import BuildListParams as BuildListParams
31
32
  from .credential_secret import CredentialSecret as CredentialSecret
32
33
  from .model_list_params import ModelListParams as ModelListParams
33
34
  from .span_batch_params import SpanBatchParams as SpanBatchParams
@@ -37,12 +38,16 @@ from .inference_response import InferenceResponse as InferenceResponse
37
38
  from .span_create_params import SpanCreateParams as SpanCreateParams
38
39
  from .span_search_params import SpanSearchParams as SpanSearchParams
39
40
  from .span_update_params import SpanUpdateParams as SpanUpdateParams
41
+ from .build_create_params import BuildCreateParams as BuildCreateParams
42
+ from .build_list_response import BuildListResponse as BuildListResponse
40
43
  from .dataset_list_params import DatasetListParams as DatasetListParams
41
44
  from .model_create_params import ModelCreateParams as ModelCreateParams
42
45
  from .model_update_params import ModelUpdateParams as ModelUpdateParams
43
46
  from .span_batch_response import SpanBatchResponse as SpanBatchResponse
44
47
  from .file_delete_response import FileDeleteResponse as FileDeleteResponse
45
48
  from .question_list_params import QuestionListParams as QuestionListParams
49
+ from .build_cancel_response import BuildCancelResponse as BuildCancelResponse
50
+ from .build_create_response import BuildCreateResponse as BuildCreateResponse
46
51
  from .dataset_create_params import DatasetCreateParams as DatasetCreateParams
47
52
  from .dataset_update_params import DatasetUpdateParams as DatasetUpdateParams
48
53
  from .evaluation_task_param import EvaluationTaskParam as EvaluationTaskParam
@@ -52,6 +57,7 @@ from .credential_list_params import CredentialListParams as CredentialListParams
52
57
  from .evaluation_list_params import EvaluationListParams as EvaluationListParams
53
58
  from .question_create_params import QuestionCreateParams as QuestionCreateParams
54
59
  from .response_create_params import ResponseCreateParams as ResponseCreateParams
60
+ from .build_retrieve_response import BuildRetrieveResponse as BuildRetrieveResponse
55
61
  from .dataset_delete_response import DatasetDeleteResponse as DatasetDeleteResponse
56
62
  from .dataset_retrieve_params import DatasetRetrieveParams as DatasetRetrieveParams
57
63
  from .inference_create_params import InferenceCreateParams as InferenceCreateParams
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildCancelResponse"]
11
+
12
+
13
+ class BuildCancelResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Required, TypedDict
6
+
7
+ from .._types import FileTypes
8
+
9
+ __all__ = ["BuildCreateParams"]
10
+
11
+
12
+ class BuildCreateParams(TypedDict, total=False):
13
+ context_archive: Required[FileTypes]
14
+ """
15
+ tar.gz archive containing the build context (Dockerfile and any files needed for
16
+ the build)
17
+ """
18
+
19
+ image_name: Required[str]
20
+ """Name for the built image"""
21
+
22
+ build_args: str
23
+ """JSON string of build arguments"""
24
+
25
+ image_tag: str
26
+ """Tag for the built image"""
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildCreateResponse"]
11
+
12
+
13
+ class BuildCreateResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import Literal, TypedDict
6
+
7
+ __all__ = ["BuildListParams"]
8
+
9
+
10
+ class BuildListParams(TypedDict, total=False):
11
+ ending_before: str
12
+
13
+ limit: int
14
+
15
+ sort_by: str
16
+
17
+ sort_order: Literal["asc", "desc"]
18
+
19
+ starting_after: str
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildListResponse"]
11
+
12
+
13
+ class BuildListResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+ from .shared.identity import Identity
9
+
10
+ __all__ = ["BuildRetrieveResponse"]
11
+
12
+
13
+ class BuildRetrieveResponse(BaseModel):
14
+ account_id: str
15
+
16
+ build_id: str
17
+
18
+ created_at: datetime
19
+
20
+ created_by: Identity
21
+ """The identity that created the entity."""
22
+
23
+ image_name: str
24
+
25
+ image_tag: str
26
+
27
+ image_url: str
28
+
29
+ status: str
30
+ """The current build status from the cloud provider"""
31
+
32
+ build_end_time: Optional[datetime] = None
33
+ """When the cloud provider finished the build"""
34
+
35
+ build_start_time: Optional[datetime] = None
36
+ """When the cloud provider started the build"""
37
+
38
+ object: Optional[Literal["agentex_cloud_build"]] = None
@@ -27,6 +27,8 @@ class CompletionModelsParams(TypedDict, total=False):
27
27
  "fireworks_ai",
28
28
  ]
29
29
 
30
+ sort_by: str
31
+
30
32
  sort_order: Literal["asc", "desc"]
31
33
 
32
34
  starting_after: str
@@ -15,6 +15,8 @@ class CredentialListParams(TypedDict, total=False):
15
15
  name: str
16
16
  """Filter credentials by name"""
17
17
 
18
+ sort_by: str
19
+
18
20
  sort_order: Literal["asc", "desc"]
19
21
 
20
22
  starting_after: str
@@ -20,6 +20,8 @@ class DatasetItemListParams(TypedDict, total=False):
20
20
 
21
21
  limit: int
22
22
 
23
+ sort_by: str
24
+
23
25
  sort_order: Literal["asc", "desc"]
24
26
 
25
27
  starting_after: str
@@ -18,6 +18,8 @@ class DatasetListParams(TypedDict, total=False):
18
18
 
19
19
  name: str
20
20
 
21
+ sort_by: str
22
+
21
23
  sort_order: Literal["asc", "desc"]
22
24
 
23
25
  starting_after: str
@@ -44,6 +44,8 @@ class ProgressWorkflows(BaseModel):
44
44
 
45
45
 
46
46
  class Progress(BaseModel):
47
+ """Progress of the evaluation's underlying async job"""
48
+
47
49
  items: Optional[ProgressItems] = None
48
50
 
49
51
  workflows: Optional[ProgressWorkflows] = None
@@ -93,6 +93,8 @@ class EvaluationWithDatasetCreateRequest(TypedDict, total=False):
93
93
 
94
94
 
95
95
  class EvaluationWithDatasetCreateRequestDataset(TypedDict, total=False):
96
+ """Create a reusable dataset from items in the `data` field"""
97
+
96
98
  name: Required[str]
97
99
 
98
100
  description: str
@@ -16,6 +16,8 @@ class EvaluationItemListParams(TypedDict, total=False):
16
16
 
17
17
  limit: int
18
18
 
19
+ sort_by: str
20
+
19
21
  sort_order: Literal["asc", "desc"]
20
22
 
21
23
  starting_after: str
@@ -19,6 +19,8 @@ class EvaluationListParams(TypedDict, total=False):
19
19
 
20
20
  name: str
21
21
 
22
+ sort_by: str
23
+
22
24
  sort_order: Literal["asc", "desc"]
23
25
 
24
26
  starting_after: str
@@ -210,6 +210,8 @@ class ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplication
210
210
 
211
211
 
212
212
  class ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides(BaseModel):
213
+ """Execution override options for agentic applications"""
214
+
213
215
  concurrent: Optional[bool] = None
214
216
 
215
217
  initial_state: Optional[
@@ -259,7 +261,9 @@ class ApplicationVariantV1EvaluationTask(BaseModel):
259
261
  class AgentexOutputEvaluationTaskConfiguration(BaseModel):
260
262
  agentex_agent_id: str
261
263
 
262
- input_column: str
264
+ input_column: Union[ItemLocator, object]
265
+
266
+ include_traces: Union[bool, ItemLocator, None] = None
263
267
 
264
268
 
265
269
  class AgentexOutputEvaluationTask(BaseModel):
@@ -206,6 +206,8 @@ class ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplication
206
206
 
207
207
 
208
208
  class ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides(TypedDict, total=False):
209
+ """Execution override options for agentic applications"""
210
+
209
211
  concurrent: bool
210
212
 
211
213
  initial_state: ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState
@@ -251,7 +253,9 @@ class ApplicationVariantV1EvaluationTask(TypedDict, total=False):
251
253
  class AgentexOutputEvaluationTaskConfiguration(TypedDict, total=False):
252
254
  agentex_agent_id: Required[str]
253
255
 
254
- input_column: Required[str]
256
+ input_column: Required[Union[ItemLocator, object]]
257
+
258
+ include_traces: Union[bool, ItemLocator]
255
259
 
256
260
 
257
261
  class AgentexOutputEvaluationTask(TypedDict, total=False):
@@ -10,6 +10,10 @@ __all__ = ["FileImportFromCloudResponse", "Result", "ResultFile", "ResultFile_Fa
10
10
 
11
11
 
12
12
  class ResultFile_FailedFile(BaseModel):
13
+ """
14
+ Minimal file representation for failed uploads containing only essential information.
15
+ """
16
+
13
17
  filename: str
14
18
  """The original filename from the request"""
15
19
 
@@ -15,6 +15,8 @@ class FileListParams(TypedDict, total=False):
15
15
 
16
16
  limit: int
17
17
 
18
+ sort_by: str
19
+
18
20
  sort_order: Literal["asc", "desc"]
19
21
 
20
22
  starting_after: str