scale-gp-beta 0.1.0a14__py3-none-any.whl → 0.1.0a16__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/_base_client.py +6 -0
- scale_gp_beta/_models.py +2 -0
- scale_gp_beta/_types.py +2 -0
- scale_gp_beta/_version.py +1 -1
- scale_gp_beta/pagination.py +18 -0
- scale_gp_beta/resources/dataset_items.py +10 -13
- scale_gp_beta/resources/spans.py +31 -405
- scale_gp_beta/types/__init__.py +2 -1
- scale_gp_beta/types/chat/model_definition.py +3 -3
- scale_gp_beta/types/dataset_item_batch_create_response.py +15 -0
- scale_gp_beta/types/evaluation_task.py +43 -5
- scale_gp_beta/types/evaluation_task_param.py +35 -3
- scale_gp_beta/types/inference_model.py +5 -5
- scale_gp_beta/types/span.py +3 -0
- scale_gp_beta/types/span_batch_params.py +10 -62
- scale_gp_beta/types/span_batch_response.py +15 -0
- scale_gp_beta/types/span_create_params.py +10 -62
- {scale_gp_beta-0.1.0a14.dist-info → scale_gp_beta-0.1.0a16.dist-info}/METADATA +2 -5
- {scale_gp_beta-0.1.0a14.dist-info → scale_gp_beta-0.1.0a16.dist-info}/RECORD +21 -20
- scale_gp_beta/types/span_list_params.py +0 -27
- {scale_gp_beta-0.1.0a14.dist-info → scale_gp_beta-0.1.0a16.dist-info}/WHEEL +0 -0
- {scale_gp_beta-0.1.0a14.dist-info → scale_gp_beta-0.1.0a16.dist-info}/licenses/LICENSE +0 -0
|
@@ -20,7 +20,7 @@ __all__ = [
|
|
|
20
20
|
"GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration",
|
|
21
21
|
"ApplicationVariantV1EvaluationTask",
|
|
22
22
|
"ApplicationVariantV1EvaluationTaskConfiguration",
|
|
23
|
-
"
|
|
23
|
+
"ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray",
|
|
24
24
|
"ApplicationVariantV1EvaluationTaskConfigurationOverrides",
|
|
25
25
|
"ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides",
|
|
26
26
|
"ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState",
|
|
@@ -36,6 +36,8 @@ __all__ = [
|
|
|
36
36
|
"MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator",
|
|
37
37
|
"AutoEvaluationQuestionTask",
|
|
38
38
|
"AutoEvaluationQuestionTaskConfiguration",
|
|
39
|
+
"AutoEvaluationGuidedDecodingEvaluationTask",
|
|
40
|
+
"AutoEvaluationGuidedDecodingEvaluationTaskConfiguration",
|
|
39
41
|
"ContributorEvaluationQuestionTask",
|
|
40
42
|
"ContributorEvaluationQuestionTaskConfiguration",
|
|
41
43
|
]
|
|
@@ -140,7 +142,7 @@ class GenericInferenceEvaluationTask(BaseModel):
|
|
|
140
142
|
task_type: Optional[Literal["inference"]] = None
|
|
141
143
|
|
|
142
144
|
|
|
143
|
-
class
|
|
145
|
+
class ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray(BaseModel):
|
|
144
146
|
request: str
|
|
145
147
|
"""Request inputs"""
|
|
146
148
|
|
|
@@ -201,7 +203,11 @@ class ApplicationVariantV1EvaluationTaskConfiguration(BaseModel):
|
|
|
201
203
|
|
|
202
204
|
inputs: Union[Dict[str, object], ItemLocator]
|
|
203
205
|
|
|
204
|
-
history: Union[
|
|
206
|
+
history: Union[
|
|
207
|
+
List[ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray],
|
|
208
|
+
ItemLocator,
|
|
209
|
+
None,
|
|
210
|
+
] = None
|
|
205
211
|
|
|
206
212
|
operation_metadata: Union[Dict[str, object], ItemLocator, None] = None
|
|
207
213
|
|
|
@@ -319,6 +325,33 @@ class AutoEvaluationQuestionTask(BaseModel):
|
|
|
319
325
|
task_type: Optional[Literal["auto_evaluation.question"]] = None
|
|
320
326
|
|
|
321
327
|
|
|
328
|
+
class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(BaseModel):
|
|
329
|
+
choices: List[str]
|
|
330
|
+
"""Choices array cannot be empty"""
|
|
331
|
+
|
|
332
|
+
model: str
|
|
333
|
+
"""model specified as `model_vendor/model_name`"""
|
|
334
|
+
|
|
335
|
+
prompt: str
|
|
336
|
+
|
|
337
|
+
inference_args: Optional[Dict[str, object]] = None
|
|
338
|
+
"""Additional arguments to pass to the inference request"""
|
|
339
|
+
|
|
340
|
+
system_prompt: Optional[str] = None
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
class AutoEvaluationGuidedDecodingEvaluationTask(BaseModel):
|
|
344
|
+
configuration: AutoEvaluationGuidedDecodingEvaluationTaskConfiguration
|
|
345
|
+
|
|
346
|
+
alias: Optional[str] = None
|
|
347
|
+
"""Alias to title the results column.
|
|
348
|
+
|
|
349
|
+
Defaults to the `auto_evaluation_guided_decoding`
|
|
350
|
+
"""
|
|
351
|
+
|
|
352
|
+
task_type: Optional[Literal["auto_evaluation.guided_decoding"]] = None
|
|
353
|
+
|
|
354
|
+
|
|
322
355
|
class ContributorEvaluationQuestionTaskConfiguration(BaseModel):
|
|
323
356
|
layout: "Container"
|
|
324
357
|
|
|
@@ -347,6 +380,7 @@ EvaluationTask: TypeAlias = Annotated[
|
|
|
347
380
|
ApplicationVariantV1EvaluationTask,
|
|
348
381
|
MetricEvaluationTask,
|
|
349
382
|
AutoEvaluationQuestionTask,
|
|
383
|
+
AutoEvaluationGuidedDecodingEvaluationTask,
|
|
350
384
|
ContributorEvaluationQuestionTask,
|
|
351
385
|
],
|
|
352
386
|
PropertyInfo(discriminator="task_type"),
|
|
@@ -362,7 +396,7 @@ if PYDANTIC_V2:
|
|
|
362
396
|
GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration.model_rebuild()
|
|
363
397
|
ApplicationVariantV1EvaluationTask.model_rebuild()
|
|
364
398
|
ApplicationVariantV1EvaluationTaskConfiguration.model_rebuild()
|
|
365
|
-
|
|
399
|
+
ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray.model_rebuild()
|
|
366
400
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides.model_rebuild()
|
|
367
401
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState.model_rebuild()
|
|
368
402
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesPartialTrace.model_rebuild()
|
|
@@ -376,6 +410,8 @@ if PYDANTIC_V2:
|
|
|
376
410
|
MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator.model_rebuild()
|
|
377
411
|
AutoEvaluationQuestionTask.model_rebuild()
|
|
378
412
|
AutoEvaluationQuestionTaskConfiguration.model_rebuild()
|
|
413
|
+
AutoEvaluationGuidedDecodingEvaluationTask.model_rebuild()
|
|
414
|
+
AutoEvaluationGuidedDecodingEvaluationTaskConfiguration.model_rebuild()
|
|
379
415
|
ContributorEvaluationQuestionTask.model_rebuild()
|
|
380
416
|
ContributorEvaluationQuestionTaskConfiguration.model_rebuild()
|
|
381
417
|
else:
|
|
@@ -386,7 +422,7 @@ else:
|
|
|
386
422
|
GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration.update_forward_refs() # type: ignore
|
|
387
423
|
ApplicationVariantV1EvaluationTask.update_forward_refs() # type: ignore
|
|
388
424
|
ApplicationVariantV1EvaluationTaskConfiguration.update_forward_refs() # type: ignore
|
|
389
|
-
|
|
425
|
+
ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray.update_forward_refs() # type: ignore
|
|
390
426
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides.update_forward_refs() # type: ignore
|
|
391
427
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState.update_forward_refs() # type: ignore
|
|
392
428
|
ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesPartialTrace.update_forward_refs() # type: ignore
|
|
@@ -400,5 +436,7 @@ else:
|
|
|
400
436
|
MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator.update_forward_refs() # type: ignore
|
|
401
437
|
AutoEvaluationQuestionTask.update_forward_refs() # type: ignore
|
|
402
438
|
AutoEvaluationQuestionTaskConfiguration.update_forward_refs() # type: ignore
|
|
439
|
+
AutoEvaluationGuidedDecodingEvaluationTask.update_forward_refs() # type: ignore
|
|
440
|
+
AutoEvaluationGuidedDecodingEvaluationTaskConfiguration.update_forward_refs() # type: ignore
|
|
403
441
|
ContributorEvaluationQuestionTask.update_forward_refs() # type: ignore
|
|
404
442
|
ContributorEvaluationQuestionTaskConfiguration.update_forward_refs() # type: ignore
|
|
@@ -17,7 +17,7 @@ __all__ = [
|
|
|
17
17
|
"GenericInferenceEvaluationTaskConfigurationInferenceConfigurationLaunchInferenceConfiguration",
|
|
18
18
|
"ApplicationVariantV1EvaluationTask",
|
|
19
19
|
"ApplicationVariantV1EvaluationTaskConfiguration",
|
|
20
|
-
"
|
|
20
|
+
"ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray",
|
|
21
21
|
"ApplicationVariantV1EvaluationTaskConfigurationOverrides",
|
|
22
22
|
"ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverrides",
|
|
23
23
|
"ApplicationVariantV1EvaluationTaskConfigurationOverridesAgenticApplicationOverridesInitialState",
|
|
@@ -33,6 +33,8 @@ __all__ = [
|
|
|
33
33
|
"MetricEvaluationTaskConfigurationRougeScorerLConfigWithItemLocator",
|
|
34
34
|
"AutoEvaluationQuestionTask",
|
|
35
35
|
"AutoEvaluationQuestionTaskConfiguration",
|
|
36
|
+
"AutoEvaluationGuidedDecodingEvaluationTask",
|
|
37
|
+
"AutoEvaluationGuidedDecodingEvaluationTaskConfiguration",
|
|
36
38
|
"ContributorEvaluationQuestionTask",
|
|
37
39
|
"ContributorEvaluationQuestionTaskConfiguration",
|
|
38
40
|
]
|
|
@@ -138,7 +140,7 @@ class GenericInferenceEvaluationTask(TypedDict, total=False):
|
|
|
138
140
|
task_type: Literal["inference"]
|
|
139
141
|
|
|
140
142
|
|
|
141
|
-
class
|
|
143
|
+
class ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray(TypedDict, total=False):
|
|
142
144
|
request: Required[str]
|
|
143
145
|
"""Request inputs"""
|
|
144
146
|
|
|
@@ -201,7 +203,9 @@ class ApplicationVariantV1EvaluationTaskConfiguration(TypedDict, total=False):
|
|
|
201
203
|
|
|
202
204
|
inputs: Required[Union[Dict[str, object], ItemLocator]]
|
|
203
205
|
|
|
204
|
-
history: Union[
|
|
206
|
+
history: Union[
|
|
207
|
+
Iterable[ApplicationVariantV1EvaluationTaskConfigurationHistoryApplicationRequestResponsePairArray], ItemLocator
|
|
208
|
+
]
|
|
205
209
|
|
|
206
210
|
operation_metadata: Union[Dict[str, object], ItemLocator]
|
|
207
211
|
|
|
@@ -316,6 +320,33 @@ class AutoEvaluationQuestionTask(TypedDict, total=False):
|
|
|
316
320
|
task_type: Literal["auto_evaluation.question"]
|
|
317
321
|
|
|
318
322
|
|
|
323
|
+
class AutoEvaluationGuidedDecodingEvaluationTaskConfiguration(TypedDict, total=False):
|
|
324
|
+
choices: Required[List[str]]
|
|
325
|
+
"""Choices array cannot be empty"""
|
|
326
|
+
|
|
327
|
+
model: Required[str]
|
|
328
|
+
"""model specified as `model_vendor/model_name`"""
|
|
329
|
+
|
|
330
|
+
prompt: Required[str]
|
|
331
|
+
|
|
332
|
+
inference_args: Dict[str, object]
|
|
333
|
+
"""Additional arguments to pass to the inference request"""
|
|
334
|
+
|
|
335
|
+
system_prompt: str
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
class AutoEvaluationGuidedDecodingEvaluationTask(TypedDict, total=False):
|
|
339
|
+
configuration: Required[AutoEvaluationGuidedDecodingEvaluationTaskConfiguration]
|
|
340
|
+
|
|
341
|
+
alias: str
|
|
342
|
+
"""Alias to title the results column.
|
|
343
|
+
|
|
344
|
+
Defaults to the `auto_evaluation_guided_decoding`
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
task_type: Literal["auto_evaluation.guided_decoding"]
|
|
348
|
+
|
|
349
|
+
|
|
319
350
|
class ContributorEvaluationQuestionTaskConfiguration(TypedDict, total=False):
|
|
320
351
|
layout: Required["ContainerParam"]
|
|
321
352
|
|
|
@@ -343,6 +374,7 @@ EvaluationTaskParam: TypeAlias = Union[
|
|
|
343
374
|
ApplicationVariantV1EvaluationTask,
|
|
344
375
|
MetricEvaluationTask,
|
|
345
376
|
AutoEvaluationQuestionTask,
|
|
377
|
+
AutoEvaluationGuidedDecodingEvaluationTask,
|
|
346
378
|
ContributorEvaluationQuestionTask,
|
|
347
379
|
]
|
|
348
380
|
|
|
@@ -81,9 +81,9 @@ class VendorConfigurationLaunchVendorConfigurationModelInfra(BaseModel):
|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
class VendorConfigurationLaunchVendorConfiguration(BaseModel):
|
|
84
|
-
|
|
84
|
+
image: VendorConfigurationLaunchVendorConfigurationModelImage = FieldInfo(alias="model_image")
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
infra: VendorConfigurationLaunchVendorConfigurationModelInfra = FieldInfo(alias="model_infra")
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
class VendorConfigurationLlmEngineVendorConfiguration(BaseModel):
|
|
@@ -150,9 +150,9 @@ class InferenceModel(BaseModel):
|
|
|
150
150
|
|
|
151
151
|
created_by_user_id: str
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
type: Literal["generic", "completion", "chat_completion"] = FieldInfo(alias="model_type")
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
vendor: Literal[
|
|
156
156
|
"openai",
|
|
157
157
|
"cohere",
|
|
158
158
|
"vertex_ai",
|
|
@@ -170,7 +170,7 @@ class InferenceModel(BaseModel):
|
|
|
170
170
|
|
|
171
171
|
status: Literal["failed", "ready", "deploying"]
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
metadata: Optional[Dict[str, object]] = FieldInfo(alias="model_metadata", default=None)
|
|
174
174
|
|
|
175
175
|
object: Optional[Literal["model"]] = None
|
|
176
176
|
|
scale_gp_beta/types/span.py
CHANGED
|
@@ -4,18 +4,18 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union, Iterable
|
|
6
6
|
from datetime import datetime
|
|
7
|
-
from typing_extensions import Literal, Required, Annotated,
|
|
7
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
from .._utils import PropertyInfo
|
|
10
10
|
|
|
11
|
-
__all__ = ["SpanBatchParams", "Item"
|
|
11
|
+
__all__ = ["SpanBatchParams", "Item"]
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class SpanBatchParams(TypedDict, total=False):
|
|
15
15
|
items: Required[Iterable[Item]]
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class Item(TypedDict, total=False):
|
|
19
19
|
name: Required[str]
|
|
20
20
|
|
|
21
21
|
start_timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
@@ -26,66 +26,17 @@ class ItemBaseSpanCreateRequest(TypedDict, total=False):
|
|
|
26
26
|
id: str
|
|
27
27
|
"""The id of the span"""
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
input: Dict[str, object]
|
|
32
|
-
|
|
33
|
-
metadata: Dict[str, object]
|
|
34
|
-
|
|
35
|
-
output: Dict[str, object]
|
|
36
|
-
|
|
37
|
-
parent_id: str
|
|
38
|
-
"""Reference to a parent span_id"""
|
|
39
|
-
|
|
40
|
-
status: Literal["SUCCESS", "ERROR"]
|
|
41
|
-
|
|
42
|
-
type: Literal[
|
|
43
|
-
"TEXT_INPUT",
|
|
44
|
-
"TEXT_OUTPUT",
|
|
45
|
-
"COMPLETION_INPUT",
|
|
46
|
-
"COMPLETION",
|
|
47
|
-
"KB_RETRIEVAL",
|
|
48
|
-
"KB_INPUT",
|
|
49
|
-
"RERANKING",
|
|
50
|
-
"EXTERNAL_ENDPOINT",
|
|
51
|
-
"PROMPT_ENGINEERING",
|
|
52
|
-
"DOCUMENT_INPUT",
|
|
53
|
-
"MAP_REDUCE",
|
|
54
|
-
"DOCUMENT_SEARCH",
|
|
55
|
-
"DOCUMENT_PROMPT",
|
|
56
|
-
"CUSTOM",
|
|
57
|
-
"INPUT_GUARDRAIL",
|
|
58
|
-
"OUTPUT_GUARDRAIL",
|
|
59
|
-
"CODE_EXECUTION",
|
|
60
|
-
"DATA_MANIPULATION",
|
|
61
|
-
"EVALUATION",
|
|
62
|
-
"FILE_RETRIEVAL",
|
|
63
|
-
"KB_ADD_CHUNK",
|
|
64
|
-
"KB_MANAGEMENT",
|
|
65
|
-
"TRACER",
|
|
66
|
-
"AGENT_TRACER",
|
|
67
|
-
"AGENT_WORKFLOW",
|
|
68
|
-
"STANDALONE",
|
|
69
|
-
]
|
|
70
|
-
|
|
29
|
+
application_interaction_id: str
|
|
30
|
+
"""The optional application interaction ID this span belongs to"""
|
|
71
31
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
application_variant_id: Required[str]
|
|
76
|
-
|
|
77
|
-
name: Required[str]
|
|
78
|
-
|
|
79
|
-
start_timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
80
|
-
|
|
81
|
-
trace_id: Required[str]
|
|
82
|
-
"""id for grouping traces together, uuid is recommended"""
|
|
83
|
-
|
|
84
|
-
id: str
|
|
85
|
-
"""The id of the span"""
|
|
32
|
+
application_variant_id: str
|
|
33
|
+
"""The optional application variant ID this span belongs to"""
|
|
86
34
|
|
|
87
35
|
end_timestamp: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
88
36
|
|
|
37
|
+
group_id: str
|
|
38
|
+
"""Reference to a group_id"""
|
|
39
|
+
|
|
89
40
|
input: Dict[str, object]
|
|
90
41
|
|
|
91
42
|
metadata: Dict[str, object]
|
|
@@ -125,6 +76,3 @@ class ItemLegacyApplicationSpanCreateRequest(TypedDict, total=False):
|
|
|
125
76
|
"AGENT_WORKFLOW",
|
|
126
77
|
"STANDALONE",
|
|
127
78
|
]
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Item: TypeAlias = Union[ItemBaseSpanCreateRequest, ItemLegacyApplicationSpanCreateRequest]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from .span import Span
|
|
7
|
+
from .._models import BaseModel
|
|
8
|
+
|
|
9
|
+
__all__ = ["SpanBatchResponse"]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SpanBatchResponse(BaseModel):
|
|
13
|
+
items: List[Span]
|
|
14
|
+
|
|
15
|
+
object: Optional[Literal["list"]] = None
|
|
@@ -4,14 +4,14 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import Dict, Union
|
|
6
6
|
from datetime import datetime
|
|
7
|
-
from typing_extensions import Literal, Required, Annotated,
|
|
7
|
+
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
8
8
|
|
|
9
9
|
from .._utils import PropertyInfo
|
|
10
10
|
|
|
11
|
-
__all__ = ["SpanCreateParams"
|
|
11
|
+
__all__ = ["SpanCreateParams"]
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class SpanCreateParams(TypedDict, total=False):
|
|
15
15
|
name: Required[str]
|
|
16
16
|
|
|
17
17
|
start_timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
@@ -22,66 +22,17 @@ class BaseSpanCreateRequest(TypedDict, total=False):
|
|
|
22
22
|
id: str
|
|
23
23
|
"""The id of the span"""
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
input: Dict[str, object]
|
|
28
|
-
|
|
29
|
-
metadata: Dict[str, object]
|
|
30
|
-
|
|
31
|
-
output: Dict[str, object]
|
|
32
|
-
|
|
33
|
-
parent_id: str
|
|
34
|
-
"""Reference to a parent span_id"""
|
|
35
|
-
|
|
36
|
-
status: Literal["SUCCESS", "ERROR"]
|
|
37
|
-
|
|
38
|
-
type: Literal[
|
|
39
|
-
"TEXT_INPUT",
|
|
40
|
-
"TEXT_OUTPUT",
|
|
41
|
-
"COMPLETION_INPUT",
|
|
42
|
-
"COMPLETION",
|
|
43
|
-
"KB_RETRIEVAL",
|
|
44
|
-
"KB_INPUT",
|
|
45
|
-
"RERANKING",
|
|
46
|
-
"EXTERNAL_ENDPOINT",
|
|
47
|
-
"PROMPT_ENGINEERING",
|
|
48
|
-
"DOCUMENT_INPUT",
|
|
49
|
-
"MAP_REDUCE",
|
|
50
|
-
"DOCUMENT_SEARCH",
|
|
51
|
-
"DOCUMENT_PROMPT",
|
|
52
|
-
"CUSTOM",
|
|
53
|
-
"INPUT_GUARDRAIL",
|
|
54
|
-
"OUTPUT_GUARDRAIL",
|
|
55
|
-
"CODE_EXECUTION",
|
|
56
|
-
"DATA_MANIPULATION",
|
|
57
|
-
"EVALUATION",
|
|
58
|
-
"FILE_RETRIEVAL",
|
|
59
|
-
"KB_ADD_CHUNK",
|
|
60
|
-
"KB_MANAGEMENT",
|
|
61
|
-
"TRACER",
|
|
62
|
-
"AGENT_TRACER",
|
|
63
|
-
"AGENT_WORKFLOW",
|
|
64
|
-
"STANDALONE",
|
|
65
|
-
]
|
|
66
|
-
|
|
25
|
+
application_interaction_id: str
|
|
26
|
+
"""The optional application interaction ID this span belongs to"""
|
|
67
27
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
application_variant_id: Required[str]
|
|
72
|
-
|
|
73
|
-
name: Required[str]
|
|
74
|
-
|
|
75
|
-
start_timestamp: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
|
|
76
|
-
|
|
77
|
-
trace_id: Required[str]
|
|
78
|
-
"""id for grouping traces together, uuid is recommended"""
|
|
79
|
-
|
|
80
|
-
id: str
|
|
81
|
-
"""The id of the span"""
|
|
28
|
+
application_variant_id: str
|
|
29
|
+
"""The optional application variant ID this span belongs to"""
|
|
82
30
|
|
|
83
31
|
end_timestamp: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
|
|
84
32
|
|
|
33
|
+
group_id: str
|
|
34
|
+
"""Reference to a group_id"""
|
|
35
|
+
|
|
85
36
|
input: Dict[str, object]
|
|
86
37
|
|
|
87
38
|
metadata: Dict[str, object]
|
|
@@ -121,6 +72,3 @@ class LegacyApplicationSpanCreateRequest(TypedDict, total=False):
|
|
|
121
72
|
"AGENT_WORKFLOW",
|
|
122
73
|
"STANDALONE",
|
|
123
74
|
]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
SpanCreateParams: TypeAlias = Union[BaseSpanCreateRequest, LegacyApplicationSpanCreateRequest]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: scale-gp-beta
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a16
|
|
4
4
|
Summary: The official Python library for the Scale GP API
|
|
5
5
|
Project-URL: Homepage, https://github.com/scaleapi/sgp-python-beta
|
|
6
6
|
Project-URL: Repository, https://github.com/scaleapi/sgp-python-beta
|
|
@@ -242,10 +242,7 @@ client = SGPClient(
|
|
|
242
242
|
|
|
243
243
|
inference = client.inference.create(
|
|
244
244
|
model="model",
|
|
245
|
-
inference_configuration={
|
|
246
|
-
"num_retries": 0,
|
|
247
|
-
"timeout_seconds": 0,
|
|
248
|
-
},
|
|
245
|
+
inference_configuration={},
|
|
249
246
|
)
|
|
250
247
|
print(inference.inference_configuration)
|
|
251
248
|
```
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
scale_gp_beta/__init__.py,sha256=x8toPf2r1c14qt9Fvh5cjeX1tytmAWa3lMc4tg9SYKY,2646
|
|
2
|
-
scale_gp_beta/_base_client.py,sha256=
|
|
2
|
+
scale_gp_beta/_base_client.py,sha256=kt2Ghc1tCF5ImtzfGM1y3vvGxsE-KJIqrDcnRfsMaGo,65099
|
|
3
3
|
scale_gp_beta/_client.py,sha256=3pNXJs9TKLjfYoTjFIIoSdd4mwwX1cc-VUveMBmkl_8,24491
|
|
4
4
|
scale_gp_beta/_compat.py,sha256=VWemUKbj6DDkQ-O4baSpHVLJafotzeXmCQGJugfVTIw,6580
|
|
5
5
|
scale_gp_beta/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
scale_gp_beta/_exceptions.py,sha256=95GM5CLFtP-QMjjmzsr5ajjZOyEZvyaETfGmqNPR8YM,3226
|
|
7
7
|
scale_gp_beta/_files.py,sha256=VHiUi-XDLm5MK8EbVoB2TdgX3jbYshIfxYLeKv5jaYI,3620
|
|
8
|
-
scale_gp_beta/_models.py,sha256=
|
|
8
|
+
scale_gp_beta/_models.py,sha256=G1vczEodX0vUySeVKbF-mbzlaObNL1oVAYH4c65agRk,29131
|
|
9
9
|
scale_gp_beta/_qs.py,sha256=AOkSz4rHtK4YI3ZU_kzea-zpwBUgEY8WniGmTPyEimc,4846
|
|
10
10
|
scale_gp_beta/_resource.py,sha256=siZly_U6D0AOVLAzaOsqUdEFFzVMbWRj-ml30nvRp7E,1118
|
|
11
11
|
scale_gp_beta/_response.py,sha256=GemuybPk0uemovTlGHyHkj-ScYTTDJA0jqH5FQqIPwQ,28852
|
|
12
12
|
scale_gp_beta/_streaming.py,sha256=fcCSGXslmi2SmmkM05g2SACXHk2Mj7k1X5uMBu6U5s8,10112
|
|
13
|
-
scale_gp_beta/_types.py,sha256=
|
|
14
|
-
scale_gp_beta/_version.py,sha256=
|
|
15
|
-
scale_gp_beta/pagination.py,sha256=
|
|
13
|
+
scale_gp_beta/_types.py,sha256=0wSs40TefKMPBj2wQKenEeZ0lzedoHClNJeqrpAgkII,6204
|
|
14
|
+
scale_gp_beta/_version.py,sha256=8MP9LBFokYx5T6qcYHCYoX7nL3ZeJz1c9ZW5XbV4agM,174
|
|
15
|
+
scale_gp_beta/pagination.py,sha256=t-U86PYxl20VRsz8VXOMJJDe7HxkX7ISFMvRNbBNy9s,4054
|
|
16
16
|
scale_gp_beta/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
scale_gp_beta/_utils/__init__.py,sha256=PNZ_QJuzZEgyYXqkO1HVhGkj5IU9bglVUcw7H-Knjzw,2062
|
|
18
18
|
scale_gp_beta/_utils/_logs.py,sha256=e6Q2f2qmGe638ty50AXbwcPVlwCdTtXDzybw3eSWwGU,792
|
|
@@ -27,20 +27,20 @@ scale_gp_beta/_utils/_utils.py,sha256=ts4CiiuNpFiGB6YMdkQRh2SZvYvsl7mAF-JWHCcLDf
|
|
|
27
27
|
scale_gp_beta/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
28
28
|
scale_gp_beta/resources/__init__.py,sha256=Fyo05_2_pc5orfyTSIpxa3btmBTd45VasgibwSqbbKo,4942
|
|
29
29
|
scale_gp_beta/resources/completions.py,sha256=4esj9lGTJAxt6wFvON126DvEGkMIChRZ6uZBOf56Aac,31868
|
|
30
|
-
scale_gp_beta/resources/dataset_items.py,sha256=
|
|
30
|
+
scale_gp_beta/resources/dataset_items.py,sha256=2d7O5zmqVEafJTxVwgbRz9yq-4T81dPPfFuPDRAaWqU,22510
|
|
31
31
|
scale_gp_beta/resources/datasets.py,sha256=CVvokGR-PHgghKPP1Yivrdg6seSIwuaSGCJOHt7Wv_o,21783
|
|
32
32
|
scale_gp_beta/resources/evaluation_items.py,sha256=Nvz3zKypvYUJWDDDvraaEwzr--Vbj27GAN670Ro5Mqo,11631
|
|
33
33
|
scale_gp_beta/resources/evaluations.py,sha256=nFWudDB9o8Dc33ypzLfp4B7nJKYDRElxJxjiD-hxpA8,31442
|
|
34
34
|
scale_gp_beta/resources/inference.py,sha256=w1JD8S5P_SxhOtj1vDyg-23uP72zVVVU6lKU_YbqX4U,7563
|
|
35
35
|
scale_gp_beta/resources/models.py,sha256=pur_cBP8PHxN1PAiaEVld6OGxTWnwY-DJZQmkyo_lWQ,32645
|
|
36
|
-
scale_gp_beta/resources/spans.py,sha256=
|
|
36
|
+
scale_gp_beta/resources/spans.py,sha256=iFNdSFHB8QypQu-3AloVqiC_MY8WXuPCQSNiInf0nB0,20813
|
|
37
37
|
scale_gp_beta/resources/chat/__init__.py,sha256=BVAfz9TM3DT5W9f_mt0P9YRxL_MsUxKCWAH6u1iogmA,1041
|
|
38
38
|
scale_gp_beta/resources/chat/chat.py,sha256=4OG_TrwVqYvV-7Ha8Nbc6iuXQuys9wKXgkxYmE6p6jk,3672
|
|
39
39
|
scale_gp_beta/resources/chat/completions.py,sha256=JhPNBdjsm5LL4wLLtwLR22cJ5OUEh-JLgJH50aZ2Ln4,51622
|
|
40
40
|
scale_gp_beta/resources/files/__init__.py,sha256=VgAtqUimN5Kf_-lmEaNBnu_ApGegKsJQ1zNf-42MXFA,1002
|
|
41
41
|
scale_gp_beta/resources/files/content.py,sha256=oJxb-28ZOUBgzE_MiAaJOcKFmtlB-N5APdhfZBNJna8,5762
|
|
42
42
|
scale_gp_beta/resources/files/files.py,sha256=yGmHAI8mtO_NjqC5XVk3n2y2ZklzL_qGtnD8OuhDkcQ,20731
|
|
43
|
-
scale_gp_beta/types/__init__.py,sha256=
|
|
43
|
+
scale_gp_beta/types/__init__.py,sha256=AsUn-S-U_7R48I5jhu5rx3aM9oCoJAB4iSr_y1oxnqE,3992
|
|
44
44
|
scale_gp_beta/types/completion.py,sha256=5eewo25sdqL4vutqvE8wmugE0Cw6YLzZ0_AD6yjP9NM,3259
|
|
45
45
|
scale_gp_beta/types/completion_create_params.py,sha256=LE9vna29Kbh7E8qUq7EhQbcu7YuCF_h663maKtzOnhk,3063
|
|
46
46
|
scale_gp_beta/types/component.py,sha256=0dLrvTEHpF628wZ-CIniOpsOzKfnLlaZy4OPIFDzoF0,403
|
|
@@ -52,6 +52,7 @@ scale_gp_beta/types/dataset_create_params.py,sha256=e8AftX5klhylAU-pseKOqaL6Fkdj
|
|
|
52
52
|
scale_gp_beta/types/dataset_delete_response.py,sha256=Lc4K761LM__hosWI3gYjYnEl5JXL-cg4DU3lXKhtQoo,345
|
|
53
53
|
scale_gp_beta/types/dataset_item.py,sha256=PZ6OHxNuvCOsAsLoN9kAqb7KugBe3powNSkDaDTM96k,545
|
|
54
54
|
scale_gp_beta/types/dataset_item_batch_create_params.py,sha256=ORwWuIFKilxhuVhzcF32HD68E0-n5dnRlbyxUk4H3Ko,478
|
|
55
|
+
scale_gp_beta/types/dataset_item_batch_create_response.py,sha256=tUVLQ7igWxp4Dn0pvi1K6YEf7m8XnsrlyHbBkVq9i6k,402
|
|
55
56
|
scale_gp_beta/types/dataset_item_delete_response.py,sha256=EffQRHJgGvew_n6XYVdojlC5Ec1oHg91xncrKWkyjGA,358
|
|
56
57
|
scale_gp_beta/types/dataset_item_list_params.py,sha256=CEB161IozqL-n7YC54g76nFqK0sp7l-A0QB9ET0L86M,661
|
|
57
58
|
scale_gp_beta/types/dataset_item_retrieve_params.py,sha256=f0kJg0btCGITamo949F7trvR0no7lOuVfoKTpFLJ5Gw,356
|
|
@@ -67,8 +68,8 @@ scale_gp_beta/types/evaluation_item_list_params.py,sha256=7sQVVKB87uO45lYuMUhGR6
|
|
|
67
68
|
scale_gp_beta/types/evaluation_item_retrieve_params.py,sha256=UYEKIAQ4dy92ZOSV1tWDZcvXG7_0BSpOND5Ehzs7QM4,296
|
|
68
69
|
scale_gp_beta/types/evaluation_list_params.py,sha256=DMQKsY6Xl5rA7gNngosF85EXuaguaF6U7Dyna3dbErA,489
|
|
69
70
|
scale_gp_beta/types/evaluation_retrieve_params.py,sha256=_YuT-E2VO-f_SvHaIe24KBbhTNoK8T-3tVB6Ov6cqfg,356
|
|
70
|
-
scale_gp_beta/types/evaluation_task.py,sha256=
|
|
71
|
-
scale_gp_beta/types/evaluation_task_param.py,sha256=
|
|
71
|
+
scale_gp_beta/types/evaluation_task.py,sha256=RvG1KBXTcRLHPoqjSFEJXjo9DVIypmIOnEsJLsuxoAw,16351
|
|
72
|
+
scale_gp_beta/types/evaluation_task_param.py,sha256=izBsyX4MhxTZssfGwtqTaLBq1RzTWwyOGcriCVV63Hk,11525
|
|
72
73
|
scale_gp_beta/types/evaluation_update_params.py,sha256=lNbIG4lH5mCW51BJTzQN-RcXVa9JqPhJNFWyJcdAOUc,384
|
|
73
74
|
scale_gp_beta/types/file.py,sha256=Xkha0eSr1q6hkwjE9e2XNgk8kuHNoTEe1LXNhz6o-1k,528
|
|
74
75
|
scale_gp_beta/types/file_create_params.py,sha256=KpXv6JCbd8BlgceTmBTewxOky2JTJaTW3mcGiVVU7wE,317
|
|
@@ -78,7 +79,7 @@ scale_gp_beta/types/file_list_params.py,sha256=rFIimu3tLcEWfJItI4a6FDb8LJFX38JSz
|
|
|
78
79
|
scale_gp_beta/types/file_update_params.py,sha256=cZAz43aIXmc0jOz-uKWDsZIJx24NN4t9kQ2XDORvQ-Q,297
|
|
79
80
|
scale_gp_beta/types/inference_create_params.py,sha256=lpdMjG-ufUDpH8bGPbt2klG0I9Q3o374WrqHBjEpPwE,665
|
|
80
81
|
scale_gp_beta/types/inference_create_response.py,sha256=JgoDjN5B8zRUpOXXasD97vFKVN7A6QHKz_PN64pKB6s,390
|
|
81
|
-
scale_gp_beta/types/inference_model.py,sha256=
|
|
82
|
+
scale_gp_beta/types/inference_model.py,sha256=Tn8OTGdcksTUj_rUU9Li_yRVNJxR6qeSBFdmqaRpasw,4351
|
|
82
83
|
scale_gp_beta/types/inference_model_list.py,sha256=I5qlOvpe-kX2HUp-C0h47Na0w6tRfZiC5wGCJ_KMxUk,688
|
|
83
84
|
scale_gp_beta/types/inference_response.py,sha256=PIX9ihGJ6IP6D6i8gk3o_mbSLy9fvRwZdGyICQKh-q8,337
|
|
84
85
|
scale_gp_beta/types/inference_response_chunk.py,sha256=UIw0gVwnqtQKPTH3QAW9UYVlD0lBz7av-EzcMqF7xgg,353
|
|
@@ -88,10 +89,10 @@ scale_gp_beta/types/model_create_params.py,sha256=K04FNqloYYTwffMHnNLRnrPNOKPgG7
|
|
|
88
89
|
scale_gp_beta/types/model_delete_response.py,sha256=fSpTChRLHPOoc9SJbkS4wcLxVOc3kKBOya8wkGow5pY,339
|
|
89
90
|
scale_gp_beta/types/model_list_params.py,sha256=T4SXYdaqIwmFCeLw_5ZyEoICykSbRrJkXKJ7QWUZEvg,612
|
|
90
91
|
scale_gp_beta/types/model_update_params.py,sha256=RFXvs-EIDHmNO-fnPB8H6B9DlK6bYVsiwFDMPPFHGII,3701
|
|
91
|
-
scale_gp_beta/types/span.py,sha256=
|
|
92
|
-
scale_gp_beta/types/span_batch_params.py,sha256=
|
|
93
|
-
scale_gp_beta/types/
|
|
94
|
-
scale_gp_beta/types/
|
|
92
|
+
scale_gp_beta/types/span.py,sha256=xnvJSu6cNw7pPnRTrJd4nAFlzYr4ITfW5IDKSorZm7o,1944
|
|
93
|
+
scale_gp_beta/types/span_batch_params.py,sha256=Tb58rOX5bfqz17vRiSSM_dh8j58Omw3msF88uCIDNHw,1917
|
|
94
|
+
scale_gp_beta/types/span_batch_response.py,sha256=gNRJL9XVm5ELuIOWTCUbwwetxeD0s-M6JZi11USvBpU,354
|
|
95
|
+
scale_gp_beta/types/span_create_params.py,sha256=0M7Vm0PH8io2yQe36MRbgGhZnrSm3hF0wZ_kwRo4vzs,1827
|
|
95
96
|
scale_gp_beta/types/span_update_params.py,sha256=UWSKLWtcqMkLYHcY9LsVPSTjmGO-9c7H5zvYmODrCoM,564
|
|
96
97
|
scale_gp_beta/types/chat/__init__.py,sha256=YmEJo3C_C7aRkImUaKB5BG97oOGkV0q3sHimL8cMa4g,688
|
|
97
98
|
scale_gp_beta/types/chat/chat_completion.py,sha256=oYOrsTBdGwV9e_mF4F06XmdyZI4pyw06IQ-0mFn0etk,8250
|
|
@@ -100,9 +101,9 @@ scale_gp_beta/types/chat/completion_create_params.py,sha256=Y7vJNvNM4Sov77l55aS5
|
|
|
100
101
|
scale_gp_beta/types/chat/completion_create_response.py,sha256=0OhfoJW8azVRrZdXRRMuiJ7kEEeMDnKScxrr3sayzDo,374
|
|
101
102
|
scale_gp_beta/types/chat/completion_models_params.py,sha256=ETxafJIUx4tTvkiR-ZCrgF3p8ZEY1lbHktfJQrgJ_5c,611
|
|
102
103
|
scale_gp_beta/types/chat/completion_models_response.py,sha256=Ctgj6o-QWPSdjBKzG9J4Id0-DjXu4UGGw1NR6-840Ec,403
|
|
103
|
-
scale_gp_beta/types/chat/model_definition.py,sha256=
|
|
104
|
+
scale_gp_beta/types/chat/model_definition.py,sha256=NNgopTm900GD0Zs2YHkcvoW67uKaWUKVyPbhKBHvKdQ,817
|
|
104
105
|
scale_gp_beta/types/files/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
105
|
-
scale_gp_beta-0.1.
|
|
106
|
-
scale_gp_beta-0.1.
|
|
107
|
-
scale_gp_beta-0.1.
|
|
108
|
-
scale_gp_beta-0.1.
|
|
106
|
+
scale_gp_beta-0.1.0a16.dist-info/METADATA,sha256=5x4nRJXkKSNePi7vTPJ3bELwGP-1EnhwYYlgsbAy68g,16881
|
|
107
|
+
scale_gp_beta-0.1.0a16.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
108
|
+
scale_gp_beta-0.1.0a16.dist-info/licenses/LICENSE,sha256=x49Bj8r_ZpqfzThbmfHyZ_bE88XvHdIMI_ANyLHFFRE,11338
|
|
109
|
+
scale_gp_beta-0.1.0a16.dist-info/RECORD,,
|
|
@@ -1,27 +0,0 @@
|
|
|
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__ = ["SpanListParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class SpanListParams(TypedDict, total=False):
|
|
11
|
-
ending_before: str
|
|
12
|
-
|
|
13
|
-
from_ts: int
|
|
14
|
-
"""The starting (oldest) timestamp window in seconds."""
|
|
15
|
-
|
|
16
|
-
limit: int
|
|
17
|
-
|
|
18
|
-
parents_only: bool
|
|
19
|
-
|
|
20
|
-
sort_order: Literal["asc", "desc"]
|
|
21
|
-
|
|
22
|
-
starting_after: str
|
|
23
|
-
|
|
24
|
-
to_ts: int
|
|
25
|
-
"""The ending (most recent) timestamp in seconds."""
|
|
26
|
-
|
|
27
|
-
trace_id: str
|
|
File without changes
|
|
File without changes
|