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.
Files changed (45) hide show
  1. {trustmodel-3.3.1 → trustmodel-3.3.2}/PKG-INFO +1 -1
  2. {trustmodel-3.3.1 → trustmodel-3.3.2}/pyproject.toml +1 -1
  3. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/agentic.py +13 -0
  4. {trustmodel-3.3.1 → trustmodel-3.3.2}/.gitignore +0 -0
  5. {trustmodel-3.3.1 → trustmodel-3.3.2}/LICENSE +0 -0
  6. {trustmodel-3.3.1 → trustmodel-3.3.2}/README.md +0 -0
  7. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/__init__.py +0 -0
  8. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/cli.py +0 -0
  9. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/client.py +0 -0
  10. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/compat.py +0 -0
  11. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/__init__.py +0 -0
  12. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/_runtime_transport.py +0 -0
  13. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/agentcert.py +0 -0
  14. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/batch_jobs.py +0 -0
  15. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/config.py +0 -0
  16. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/credits.py +0 -0
  17. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/evaluations.py +0 -0
  18. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/frameworks.py +0 -0
  19. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/galileo.py +0 -0
  20. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/guardrails.py +0 -0
  21. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/mcp_scanner.py +0 -0
  22. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/endpoints/models.py +0 -0
  23. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/exceptions.py +0 -0
  24. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/__init__.py +0 -0
  25. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/agentcert.py +0 -0
  26. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/agentic.py +0 -0
  27. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/batch_job.py +0 -0
  28. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/credits.py +0 -0
  29. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/evaluation.py +0 -0
  30. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/frameworks.py +0 -0
  31. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/galileo.py +0 -0
  32. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/guardrails.py +0 -0
  33. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/mcp_scanner.py +0 -0
  34. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/models.py +0 -0
  35. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/models/oauth.py +0 -0
  36. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/__init__.py +0 -0
  37. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/auth.py +0 -0
  38. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/oauth/scopes.py +0 -0
  39. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/__init__.py +0 -0
  40. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/_constants.py +0 -0
  41. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/_instrumentors.py +0 -0
  42. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/telemetry/auto_init.py +0 -0
  43. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/__init__.py +0 -0
  44. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/validation.py +0 -0
  45. {trustmodel-3.3.1 → trustmodel-3.3.2}/src/trustmodel/utils/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trustmodel
3
- Version: 3.3.1
3
+ Version: 3.3.2
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.3.1"
7
+ version = "3.3.2"
8
8
  authors = [
9
9
  {name = "TrustModel", email = "info@predixtions.com"},
10
10
  ]
@@ -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