trustmodel 3.3.1__tar.gz → 3.3.2__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.3.1 → trustmodel-3.3.2}/PKG-INFO +1 -1
- {trustmodel-3.3.1 → trustmodel-3.3.2}/pyproject.toml +1 -1
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/agentic.py +13 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/.gitignore +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/LICENSE +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/README.md +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/cli.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/client.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/compat.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/_runtime_transport.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/agentcert.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/batch_jobs.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/config.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/credits.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/evaluations.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/frameworks.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/galileo.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/guardrails.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/mcp_scanner.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/models.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/exceptions.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/agentcert.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/agentic.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/batch_job.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/credits.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/evaluation.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/frameworks.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/galileo.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/guardrails.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/mcp_scanner.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/models.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/oauth.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/auth.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/scopes.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/_constants.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/_instrumentors.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/auto_init.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/__init__.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/validation.py +0 -0
- {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/version.py +0 -0
|
@@ -115,6 +115,7 @@ class AgenticEndpoint:
|
|
|
115
115
|
goal_achieved: Optional[bool] = None,
|
|
116
116
|
frameworks: Optional[List[str]] = None,
|
|
117
117
|
control_ids: Optional[List[str]] = None,
|
|
118
|
+
governed_agent: Optional[str] = None,
|
|
118
119
|
) -> AgenticEvaluation:
|
|
119
120
|
"""
|
|
120
121
|
Evaluate an agent execution trace.
|
|
@@ -136,6 +137,13 @@ class AgenticEndpoint:
|
|
|
136
137
|
control_ids: Optional list of control IDs to scope the compliance
|
|
137
138
|
evaluation. Defaults server-side to all controls of the
|
|
138
139
|
selected frameworks.
|
|
140
|
+
governed_agent: Optional GovernedAgent slug OR UUID to bind this
|
|
141
|
+
run to (TRUS-1640). When supplied, the resulting
|
|
142
|
+
``ReportEvaluationRun`` is stamped with the FK so the agent's
|
|
143
|
+
badge / TrustScore history picks up this run. Must belong to
|
|
144
|
+
the caller's organization or the server returns HTTP 400
|
|
145
|
+
``governed_agent_not_found``. When omitted, the run lands
|
|
146
|
+
standalone (pre-TRUS-1640 behavior).
|
|
139
147
|
|
|
140
148
|
Returns:
|
|
141
149
|
Evaluation creation response with run ID and status.
|
|
@@ -227,6 +235,11 @@ class AgenticEndpoint:
|
|
|
227
235
|
eval_data["frameworks"] = frameworks
|
|
228
236
|
if control_ids:
|
|
229
237
|
eval_data["control_ids"] = control_ids
|
|
238
|
+
# TRUS-1640 — SDK peer of aurora-gateway PR #512. The BE resolves the
|
|
239
|
+
# supplied slug/UUID to a GovernedAgent and stamps the FK on create;
|
|
240
|
+
# omit when None so pre-1640 behavior (standalone runs) is preserved.
|
|
241
|
+
if governed_agent:
|
|
242
|
+
eval_data["governed_agent"] = governed_agent
|
|
230
243
|
|
|
231
244
|
response = self._client.post("/sdk/v1/agentic/evaluate/", data=eval_data)
|
|
232
245
|
|
|
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
|