dyff-schema 0.38.3__py3-none-any.whl → 0.38.5__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 CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = version = "0.38.3"
2
- __version_tuple__ = version_tuple = (0, 38, 3)
1
+ __version__ = version = "0.38.5"
2
+ __version_tuple__ = version_tuple = (0, 38, 5)
@@ -2774,7 +2774,7 @@ class PipelineSafetyCaseRequest(AnalysisRequestBase):
2774
2774
  kind: Literal["PipelineSafetyCaseRequest"] = "PipelineSafetyCaseRequest"
2775
2775
 
2776
2776
 
2777
- PipelineNodeRequest: TypeAlias = Union[
2777
+ PipelineNodeRequest = Union[
2778
2778
  PipelineEvaluationRequest,
2779
2779
  PipelineMeasurementRequest,
2780
2780
  PipelineSafetyCaseRequest,
@@ -2793,8 +2793,7 @@ class PipelineNode(DyffSchemaBaseModel):
2793
2793
  description="The name of the node. Must be unique in the context of the pipeline."
2794
2794
  )
2795
2795
 
2796
- request: PipelineNodeRequest = pydantic.Field( # type: ignore[valid-type]
2797
- discriminator="kind",
2796
+ request: PipelineNodeRequest = pydantic.Field(
2798
2797
  description="The request template that will be executed when this node"
2799
2798
  ' executes. You can use the syntax "$(node_name)" in request fields'
2800
2799
  " that reference another entity to indicate that the request depends"
@@ -2803,6 +2802,15 @@ class PipelineNode(DyffSchemaBaseModel):
2803
2802
  " dependency graph structure from these placeholders.",
2804
2803
  )
2805
2804
 
2805
+ # The .kind field is dropped when we serialize nodes as part of a
2806
+ # PipelineCreateRequest because of the default exclude_unset=True
2807
+ # behavior for requests, so we add it back.
2808
+ @pydantic.field_serializer("request")
2809
+ def _serialize_request(self, request: PipelineNodeRequest, _info):
2810
+ data = request.model_dump(mode=_info.mode)
2811
+ data["kind"] = request.kind
2812
+ return data
2813
+
2806
2814
 
2807
2815
  class PipelineParameter(DyffSchemaBaseModel):
2808
2816
  """Declares a parameter that can be passed to the pipeline to customize its
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dyff-schema
3
- Version: 0.38.3
3
+ Version: 0.38.5
4
4
  Summary: Data models for the Dyff AI auditing platform.
5
5
  Author-email: Digital Safety Research Institute <contact@dsri.org>
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
2
- dyff/schema/_version.py,sha256=-CCWFr62vN0w7SrCBH-IeTHMoX8ScRHffpLPQafa5pY,80
2
+ dyff/schema/_version.py,sha256=dF25OI_Y4HFdLqtKnsCR-dWZ4t-wHRU8ZvxHTBt0VjE,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=bQO3gQ6G-7Cl_FHHNLW1ozAG-ShYPOTIf-NfB6uvnps,110880
32
+ dyff/schema/v0/r1/platform.py,sha256=U5t-Giixi52_aWpDzZVrXfLSAmar1i2BoFA0mSstWtg,111220
33
33
  dyff/schema/v0/r1/requests.py,sha256=JMpdx9WBlUpePshacG85XMmlGPBkkaK5453VaK3kH9s,18321
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.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
- dyff_schema-0.38.3.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
48
- dyff_schema-0.38.3.dist-info/METADATA,sha256=LRDYIEaUA4AMUGCTGCLb1ABwrCh6rT28AU8ywiYU60o,3734
49
- dyff_schema-0.38.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- dyff_schema-0.38.3.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
51
- dyff_schema-0.38.3.dist-info/RECORD,,
46
+ dyff_schema-0.38.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
+ dyff_schema-0.38.5.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
48
+ dyff_schema-0.38.5.dist-info/METADATA,sha256=PUJIvQg6-yRPp-gTsD-U8cIYAUDC_DzhMwphUdthxg0,3734
49
+ dyff_schema-0.38.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ dyff_schema-0.38.5.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
51
+ dyff_schema-0.38.5.dist-info/RECORD,,