trustmodel 3.6.0__tar.gz → 3.7.0__tar.gz

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 (45) hide show
  1. {trustmodel-3.6.0 → trustmodel-3.7.0}/PKG-INFO +1 -1
  2. {trustmodel-3.6.0 → trustmodel-3.7.0}/pyproject.toml +1 -1
  3. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/evaluation.py +30 -1
  4. {trustmodel-3.6.0 → trustmodel-3.7.0}/.gitignore +0 -0
  5. {trustmodel-3.6.0 → trustmodel-3.7.0}/LICENSE +0 -0
  6. {trustmodel-3.6.0 → trustmodel-3.7.0}/README.md +0 -0
  7. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/__init__.py +0 -0
  8. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/cli.py +0 -0
  9. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/client.py +0 -0
  10. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/compat.py +0 -0
  11. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/__init__.py +0 -0
  12. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/_runtime_transport.py +0 -0
  13. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/agentcert.py +0 -0
  14. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/agentic.py +0 -0
  15. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/batch_jobs.py +0 -0
  16. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/config.py +0 -0
  17. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/credits.py +0 -0
  18. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/evaluations.py +0 -0
  19. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/frameworks.py +0 -0
  20. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/galileo.py +0 -0
  21. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/guardrails.py +0 -0
  22. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/mcp_scanner.py +0 -0
  23. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/models.py +0 -0
  24. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/exceptions.py +0 -0
  25. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/__init__.py +0 -0
  26. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/agentcert.py +0 -0
  27. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/agentic.py +0 -0
  28. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/batch_job.py +0 -0
  29. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/credits.py +0 -0
  30. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/frameworks.py +0 -0
  31. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/galileo.py +0 -0
  32. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/guardrails.py +0 -0
  33. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/mcp_scanner.py +0 -0
  34. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/models.py +0 -0
  35. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/oauth.py +0 -0
  36. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/__init__.py +0 -0
  37. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/auth.py +0 -0
  38. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/scopes.py +0 -0
  39. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/__init__.py +0 -0
  40. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/_constants.py +0 -0
  41. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/_instrumentors.py +0 -0
  42. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/auto_init.py +0 -0
  43. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/__init__.py +0 -0
  44. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/validation.py +0 -0
  45. {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustmodel
3
- Version: 3.6.0
3
+ Version: 3.7.0
4
4
  Summary: Official Python SDK for TrustModel AI evaluation platform
5
5
  Project-URL: Homepage, https://trustmodel.ai
6
6
  Author-email: TrustModel <info@predixtions.com>
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "trustmodel"
7
- version = "3.6.0"
7
+ version = "3.7.0"
8
8
  authors = [
9
9
  {name = "TrustModel", email = "info@predixtions.com"},
10
10
  ]
@@ -58,8 +58,37 @@ class EvaluationScore(BaseModel):
58
58
  """Individual evaluation score for a category."""
59
59
 
60
60
  category: str
61
- score: float = Field(..., ge=0.0, le=100.0, description="Score between 0 and 100")
61
+ # TRUS-1967 / TRUS-1977: `score` is Optional because a dimension may be
62
+ # *not assessed* — no source for it existed on this run — which is
63
+ # categorically different from a measured 0.0. Branch on
64
+ # `assessment_status`, never on falsiness of `score`: 0.0 is a real,
65
+ # measured, failing score and must not be confused with "no data".
66
+ #
67
+ # This was `float = Field(..., ge=0.0, le=100.0)` in every release up to
68
+ # and including 3.6.0, which raised ValidationError on a null.
69
+ score: Optional[float] = Field(
70
+ default=None,
71
+ ge=0.0,
72
+ le=100.0,
73
+ description=(
74
+ "Score between 0 and 100, or None when the dimension was not "
75
+ "assessed (see assessment_status). None is NOT equivalent to 0."
76
+ ),
77
+ )
62
78
  max_score: float = Field(default=1.0, description="Maximum possible score")
79
+ assessment_status: str = Field(
80
+ default="scored",
81
+ description=(
82
+ "'scored' when this dimension was measured (including a measured "
83
+ "0.0); 'not_assessed' when no source for it existed on this run, in "
84
+ "which case score is None. Defaults to 'scored' so responses from "
85
+ "gateways predating TRUS-1967 parse unchanged."
86
+ ),
87
+ )
88
+ not_assessed_reason: Optional[str] = Field(
89
+ default=None,
90
+ description="Why the dimension was not assessed; None when scored.",
91
+ )
63
92
  details: Optional[Dict[str, Any]] = Field(default=None, description="Additional score details")
64
93
 
65
94
 
File without changes
File without changes
File without changes