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.
- {trustmodel-3.6.0 → trustmodel-3.7.0}/PKG-INFO +1 -1
- {trustmodel-3.6.0 → trustmodel-3.7.0}/pyproject.toml +1 -1
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/evaluation.py +30 -1
- {trustmodel-3.6.0 → trustmodel-3.7.0}/.gitignore +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/LICENSE +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/README.md +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/cli.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/client.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/compat.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/_runtime_transport.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/agentcert.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/agentic.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/batch_jobs.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/config.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/credits.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/evaluations.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/frameworks.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/galileo.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/guardrails.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/mcp_scanner.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/endpoints/models.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/exceptions.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/agentcert.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/agentic.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/batch_job.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/credits.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/frameworks.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/galileo.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/guardrails.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/mcp_scanner.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/models.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/models/oauth.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/auth.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/oauth/scopes.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/_constants.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/_instrumentors.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/telemetry/auto_init.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/__init__.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/validation.py +0 -0
- {trustmodel-3.6.0 → trustmodel-3.7.0}/src/trustmodel/utils/version.py +0 -0
|
@@ -58,8 +58,37 @@ class EvaluationScore(BaseModel):
|
|
|
58
58
|
"""Individual evaluation score for a category."""
|
|
59
59
|
|
|
60
60
|
category: str
|
|
61
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|