dyff-schema 0.38.7__py3-none-any.whl → 0.38.9__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.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- dyff/schema/_version.py +2 -2
- dyff/schema/v0/r1/platform.py +45 -5
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/METADATA +1 -1
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/RECORD +8 -8
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/WHEEL +0 -0
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.38.7.dist-info → dyff_schema-0.38.9.dist-info}/top_level.txt +0 -0
dyff/schema/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = version = "0.38.
|
|
2
|
-
__version_tuple__ = version_tuple = (0, 38,
|
|
1
|
+
__version__ = version = "0.38.9"
|
|
2
|
+
__version_tuple__ = version_tuple = (0, 38, 9)
|
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -2787,14 +2787,29 @@ class ChallengeSubmission(DyffEntity, ChallengeSubmissionBase):
|
|
|
2787
2787
|
class PipelineEvaluationRequest(EvaluationRequestBase):
|
|
2788
2788
|
kind: Literal["PipelineEvaluationRequest"] = "PipelineEvaluationRequest"
|
|
2789
2789
|
|
|
2790
|
+
def dependencies(self) -> list[str]:
|
|
2791
|
+
# This is a dirty hack that works because the types are structurally
|
|
2792
|
+
# equivalent as far as .dependencies() cares
|
|
2793
|
+
return Evaluation.dependencies(self) # type: ignore[arg-type]
|
|
2794
|
+
|
|
2790
2795
|
|
|
2791
2796
|
class PipelineMeasurementRequest(AnalysisRequestBase):
|
|
2792
2797
|
kind: Literal["PipelineMeasurementRequest"] = "PipelineMeasurementRequest"
|
|
2793
2798
|
|
|
2799
|
+
def dependencies(self) -> list[str]:
|
|
2800
|
+
# This is a dirty hack that works because the types are structurally
|
|
2801
|
+
# equivalent as far as .dependencies() cares
|
|
2802
|
+
return Measurement.dependencies(self) # type: ignore[arg-type]
|
|
2803
|
+
|
|
2794
2804
|
|
|
2795
2805
|
class PipelineSafetyCaseRequest(AnalysisRequestBase):
|
|
2796
2806
|
kind: Literal["PipelineSafetyCaseRequest"] = "PipelineSafetyCaseRequest"
|
|
2797
2807
|
|
|
2808
|
+
def dependencies(self) -> list[str]:
|
|
2809
|
+
# This is a dirty hack that works because the types are structurally
|
|
2810
|
+
# equivalent as far as .dependencies() cares
|
|
2811
|
+
return SafetyCase.dependencies(self) # type: ignore[arg-type]
|
|
2812
|
+
|
|
2798
2813
|
|
|
2799
2814
|
PipelineNodeRequest = Union[
|
|
2800
2815
|
PipelineEvaluationRequest,
|
|
@@ -2836,16 +2851,25 @@ class PipelineNode(DyffSchemaBaseModel):
|
|
|
2836
2851
|
|
|
2837
2852
|
class PipelineParameter(DyffSchemaBaseModel):
|
|
2838
2853
|
"""Declares a parameter that can be passed to the pipeline to customize its
|
|
2839
|
-
behavior.
|
|
2854
|
+
behavior.
|
|
2855
|
+
|
|
2856
|
+
By default, the argument will be substituted for the placeholder value
|
|
2857
|
+
``$(keyword)``, where ``keyword`` is the ``.keyword`` property of the
|
|
2858
|
+
parameter. In this case, the value of the argument must be a string.
|
|
2840
2859
|
|
|
2841
|
-
|
|
2842
|
-
|
|
2860
|
+
If ``.destination`` is specified, the argument will instead overwrite
|
|
2861
|
+
the value at the specified JSON path.
|
|
2862
|
+
"""
|
|
2863
|
+
|
|
2864
|
+
keyword: str = pydantic.Field(description="The keyword of the parameter.")
|
|
2865
|
+
destination: Optional[str] = pydantic.Field(
|
|
2866
|
+
default=None,
|
|
2843
2867
|
description="The field in a pipeline node to substitute with the"
|
|
2844
|
-
" parameter value. Should be a string like 'node_name.field1.field2'."
|
|
2868
|
+
" parameter value. Should be a string like 'node_name.field1.field2'.",
|
|
2845
2869
|
)
|
|
2846
2870
|
description: Optional[str] = pydantic.Field(
|
|
2847
2871
|
default=None,
|
|
2848
|
-
description="A description of the
|
|
2872
|
+
description="A description of the parameter.",
|
|
2849
2873
|
max_length=summary_maxlen(),
|
|
2850
2874
|
)
|
|
2851
2875
|
|
|
@@ -2856,6 +2880,10 @@ class PipelineBase(DyffSchemaBaseModel):
|
|
|
2856
2880
|
description="The nodes in the pipeline graph.",
|
|
2857
2881
|
min_length=1,
|
|
2858
2882
|
)
|
|
2883
|
+
parameters: dict[str, PipelineParameter] = pydantic.Field(
|
|
2884
|
+
default_factory=dict,
|
|
2885
|
+
description="Input parameters used to customize the pipeline.",
|
|
2886
|
+
)
|
|
2859
2887
|
|
|
2860
2888
|
@pydantic.field_validator("nodes", mode="after")
|
|
2861
2889
|
def validate_node_names_match(cls, nodes: dict[str, PipelineNode]):
|
|
@@ -2864,6 +2892,15 @@ class PipelineBase(DyffSchemaBaseModel):
|
|
|
2864
2892
|
raise ValueError(f"nodes[{k}]: dict key must match value.name")
|
|
2865
2893
|
return nodes
|
|
2866
2894
|
|
|
2895
|
+
@pydantic.field_validator("parameters", mode="after")
|
|
2896
|
+
def validate_parameter_keywords_match(
|
|
2897
|
+
cls, parameters: dict[str, PipelineParameter]
|
|
2898
|
+
):
|
|
2899
|
+
for k, v in parameters.items():
|
|
2900
|
+
if k != v.keyword:
|
|
2901
|
+
raise ValueError(f"parameters[{k}]: dict key must match value.keyword")
|
|
2902
|
+
return parameters
|
|
2903
|
+
|
|
2867
2904
|
|
|
2868
2905
|
class Pipeline(DyffEntity, PipelineBase):
|
|
2869
2906
|
"""A set of Dyff workflows that can be executed as a group.
|
|
@@ -3166,6 +3203,7 @@ _DyffEntityTypeRevisable = Union[
|
|
|
3166
3203
|
Audit,
|
|
3167
3204
|
AuditProcedure,
|
|
3168
3205
|
Challenge,
|
|
3206
|
+
ChallengeSubmission,
|
|
3169
3207
|
DataSource,
|
|
3170
3208
|
Dataset,
|
|
3171
3209
|
Evaluation,
|
|
@@ -3261,6 +3299,7 @@ _ENTITY_CLASS: dict[Entities, type[DyffEntityType]] = {
|
|
|
3261
3299
|
Entities.Report: Report,
|
|
3262
3300
|
Entities.Revision: Revision,
|
|
3263
3301
|
Entities.SafetyCase: SafetyCase,
|
|
3302
|
+
Entities.Submission: ChallengeSubmission,
|
|
3264
3303
|
Entities.Team: Team,
|
|
3265
3304
|
Entities.UseCase: UseCase,
|
|
3266
3305
|
}
|
|
@@ -3276,6 +3315,7 @@ DyffEntityT = TypeVar(
|
|
|
3276
3315
|
Audit,
|
|
3277
3316
|
AuditProcedure,
|
|
3278
3317
|
Challenge,
|
|
3318
|
+
ChallengeSubmission,
|
|
3279
3319
|
DataSource,
|
|
3280
3320
|
Dataset,
|
|
3281
3321
|
Evaluation,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
|
|
2
|
-
dyff/schema/_version.py,sha256=
|
|
2
|
+
dyff/schema/_version.py,sha256=jP_GNrq_tFLhV5z7uMhGy_OtdKaIY_JHxqyFqQGklVA,80
|
|
3
3
|
dyff/schema/adapters.py,sha256=YMTHv_2VlLGFp-Kqwa6H51hjffHmk8gXjZilHysIF5Q,123
|
|
4
4
|
dyff/schema/annotations.py,sha256=nE6Jk1PLqlShj8uqjE_EzZC9zYnTDW5AVtQcjysiK8M,10018
|
|
5
5
|
dyff/schema/base.py,sha256=jvaNtsSZyFfsdUZTcY_U-yfLY5_GyrMxSXhON2R9XR0,119
|
|
@@ -29,7 +29,7 @@ dyff/schema/v0/r1/adapters.py,sha256=hpwCSW8lkMkUKCLe0zaMUDu-VS_caSxJvPsECEi_XRA
|
|
|
29
29
|
dyff/schema/v0/r1/base.py,sha256=1VJXVLKldOq3aH2HdVgxXXk4DJTZEIiaTa4GzMKzziU,20228
|
|
30
30
|
dyff/schema/v0/r1/commands.py,sha256=jqbEvDRLpcVGWXqlbniuSKg3UIjlrpKt6_0hiwUpPfQ,20153
|
|
31
31
|
dyff/schema/v0/r1/oci.py,sha256=YjHDVBJ2IIxqijll70OK6pM-qT6pq8tvU7D3YB9vGM0,6700
|
|
32
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
32
|
+
dyff/schema/v0/r1/platform.py,sha256=wpCq2sRBxzVt6cetAUl66BW5fMMEFtrUNKDYyxFqZFU,113848
|
|
33
33
|
dyff/schema/v0/r1/requests.py,sha256=k9T-xI2DDCjvCCmEg_kZ0M6yl_ZG6uh8rocWCLZLKFA,18590
|
|
34
34
|
dyff/schema/v0/r1/responses.py,sha256=nxy7FPtfw2B_bljz5UGGuSE79HTkDQxKH56AJVmd4Qo,1287
|
|
35
35
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
@@ -43,9 +43,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=MYG5seGODDryRSCy-g0Unh5dD0HCytmZ3FeElC-
|
|
|
43
43
|
dyff/schema/v0/r1/dataset/vision.py,sha256=tJFF4dkhHX0UXTj1sPW-G22xTSI40gbYO465FuvmvAU,443
|
|
44
44
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
45
45
|
dyff/schema/v0/r1/io/vllm.py,sha256=vWyLg-susbg0JDfv6VExBpgFdU2GHP2a14ChOdbckvs,5321
|
|
46
|
-
dyff_schema-0.38.
|
|
47
|
-
dyff_schema-0.38.
|
|
48
|
-
dyff_schema-0.38.
|
|
49
|
-
dyff_schema-0.38.
|
|
50
|
-
dyff_schema-0.38.
|
|
51
|
-
dyff_schema-0.38.
|
|
46
|
+
dyff_schema-0.38.9.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
47
|
+
dyff_schema-0.38.9.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
48
|
+
dyff_schema-0.38.9.dist-info/METADATA,sha256=w8UkdcgYuYkeN7g30eL42IUDzedbe-AyZ59FLqlL_NM,3734
|
|
49
|
+
dyff_schema-0.38.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
dyff_schema-0.38.9.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
51
|
+
dyff_schema-0.38.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|