dyff-schema 0.15.0__py3-none-any.whl → 0.16.1__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.

@@ -1804,7 +1804,7 @@ class ScoreMetadataRefs(AnalysisScope):
1804
1804
  method: str = pydantic.Field(description="The Method that generates the score.")
1805
1805
 
1806
1806
 
1807
- class ScoreMetadata(AnalysisScope):
1807
+ class ScoreMetadata(DyffSchemaBaseModel):
1808
1808
  """Metadata about a Score entity."""
1809
1809
 
1810
1810
  refs: ScoreMetadataRefs = pydantic.Field(
@@ -1816,6 +1816,10 @@ class ScoreData(ScoreSpec):
1816
1816
  """ScoreData is an "instance" of a ScoreSpec containing the concrete measured value
1817
1817
  for the score."""
1818
1818
 
1819
+ metadata: ScoreMetadata = pydantic.Field(
1820
+ description="Metadata about the score; used for indexing.",
1821
+ )
1822
+
1819
1823
  analysis: str = pydantic.Field(
1820
1824
  description="The Analysis that generated the current score instance."
1821
1825
  )
@@ -1834,7 +1838,7 @@ class ScoreData(ScoreSpec):
1834
1838
  return self._format_quantity(self.format, self.quantity, unit=self.unit)
1835
1839
 
1836
1840
 
1837
- class Score(ScoreSpec):
1841
+ class Score(ScoreData):
1838
1842
  """A Score is a numeric quantity describing an aspect of system performance.
1839
1843
 
1840
1844
  Conceptually, a Score is an "instance" of a ScoreSpec.
@@ -1844,10 +1848,6 @@ class Score(ScoreSpec):
1844
1848
 
1845
1849
  id: str = pydantic.Field(description="Unique identifier of the entity")
1846
1850
 
1847
- metadata: ScoreMetadata = pydantic.Field(
1848
- description="Metadata about the score; used for indexing.",
1849
- )
1850
-
1851
1851
 
1852
1852
  # ---------------------------------------------------------------------------
1853
1853
  # Status enumerations
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dyff-schema
3
- Version: 0.15.0
3
+ Version: 0.16.1
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
@@ -23,7 +23,7 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
23
23
  dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
24
24
  dyff/schema/v0/r1/adapters.py,sha256=2t2oxsnGfSEDKKDIEYw4qqLXMH7qlFIwPVuLyUmbsHs,23552
25
25
  dyff/schema/v0/r1/base.py,sha256=i7eOKXDGS8_J9k2aVObUTpSOnA8CAgRW7Quj1fSbyRg,19403
26
- dyff/schema/v0/r1/platform.py,sha256=Vg-JplBIQSBIgPWNwuFj_HFwJS8o7TSNyC-SvZc3BoU,72503
26
+ dyff/schema/v0/r1/platform.py,sha256=GozVE9Z8Axc8q6hTMl-pNgx1VqyQTmmZ5FpkBhWiBNw,72509
27
27
  dyff/schema/v0/r1/requests.py,sha256=MMMtSfT9JpE2X7PLQGIuI4v7mMlJ-8DiZ65jc2hE0zc,10976
28
28
  dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
29
29
  dyff/schema/v0/r1/version.py,sha256=isKAGuGxsdru8vDaYmI4YiZdJOu_wNxXK7u6QzD6FE4,392
@@ -35,9 +35,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=nLIn91Zlt0tNdXUklSgjJ-kEDxoPX32ISLkiv2D
35
35
  dyff/schema/v0/r1/dataset/vision.py,sha256=aIe0fbfM_g3DsrDTdg2K803YKLjZBpurM_VJcJFuZLc,369
36
36
  dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
37
37
  dyff/schema/v0/r1/io/vllm.py,sha256=CUE9y8KthtUI7sD49S875rDmPvKotSXVIRaBS79aBZs,5320
38
- dyff_schema-0.15.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
39
- dyff_schema-0.15.0.dist-info/METADATA,sha256=QS7nIjfIS4L0D8v0Q6FBB9gyeP_0aIh-F1W1Dxy0_F0,3482
40
- dyff_schema-0.15.0.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
41
- dyff_schema-0.15.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
42
- dyff_schema-0.15.0.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
43
- dyff_schema-0.15.0.dist-info/RECORD,,
38
+ dyff_schema-0.16.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
39
+ dyff_schema-0.16.1.dist-info/METADATA,sha256=lkw05lD3LmoKsoh54qgxeDkcztewPcC26Zs0rLXhrkM,3482
40
+ dyff_schema-0.16.1.dist-info/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
41
+ dyff_schema-0.16.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
42
+ dyff_schema-0.16.1.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
43
+ dyff_schema-0.16.1.dist-info/RECORD,,