aid-runtime-python 0.1.180__py3-none-any.whl → 0.1.181__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.
aid_runtime/__init__.py CHANGED
@@ -357,7 +357,7 @@ from aid_runtime.types import (
357
357
  )
358
358
 
359
359
  #: Kept in sync with ``pyproject.toml`` by a test, so the two cannot drift.
360
- __version__ = "0.1.180"
360
+ __version__ = "0.1.181"
361
361
 
362
362
  __all__ = [
363
363
  "AGENT_LABEL",
@@ -106,7 +106,12 @@ class Metric(Protocol):
106
106
 
107
107
  async def score(
108
108
  self, case: EvalCase, prediction: str, *, context: RunContext | None = None
109
- ) -> MetricResult: ...
109
+ ) -> MetricResult:
110
+ """Score one prediction, which is the only thing a metric has to implement.
111
+
112
+ ``context`` carries what a model-backed metric needs and a string metric
113
+ ignores, so a metric that cannot run raises rather than returning a number.
114
+ """
110
115
 
111
116
 
112
117
  def normalize(text: str) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aid-runtime-python
3
- Version: 0.1.180
3
+ Version: 0.1.181
4
4
  Summary: The AID Framework Python runtime: model gateway with pinning and cost budgets, prompt registry, tool executor, OTel GenAI tracing, plain-async pipeline, and an eval harness that gates on statistical regression against a stored baseline.
5
5
  Author: The AID Framework authors
6
6
  License-Expression: Apache-2.0
@@ -1,4 +1,4 @@
1
- aid_runtime/__init__.py,sha256=0lkqAFWBek6zPor4wbFJNTlhKyVirZQE4yUNJ0aYtc0,15277
1
+ aid_runtime/__init__.py,sha256=QMOxW5rl80g3bazZm26AcEEW5iKzjkf-BLY8WCmi1Ws,15277
2
2
  aid_runtime/cache.py,sha256=jhw_EBd9dfWEUzYeibOvIkVBqqiLUjqF5WKEPz9GkhE,6836
3
3
  aid_runtime/concurrency.py,sha256=z0tFQHw35ttFLKfazGBjCMPOLQOnUotE_OPpvR1piH4,2829
4
4
  aid_runtime/control.py,sha256=y6wPn0fqYJv0nVSsjzpzfiaq1Y7zBoMxCpdrEuqkfvg,17529
@@ -34,7 +34,7 @@ aid_runtime/evals/__init__.py,sha256=5_qUGwiKR2l4p-F8RZ9QnxzFOxtNj7DWoEsA8uNyHIs
34
34
  aid_runtime/evals/agent_runner.py,sha256=sffFGqZDBLmKkce6t82IaWJLHNq-q7HuSmIM61uEkoU,13513
35
35
  aid_runtime/evals/dataset.py,sha256=ZmTP-jWx9f2udYPyzvTtOuUse5Mp-uj5WNBPy-7aHKM,5946
36
36
  aid_runtime/evals/gate.py,sha256=uYUOw57MaGqSOsMvbB0C6MrjW4IbUJ57izyD6FSxkxw,17676
37
- aid_runtime/evals/metrics.py,sha256=LUY_6PuNYmNWVORYq60uLzmfiqmRUPi1QRua0rniFdE,28517
37
+ aid_runtime/evals/metrics.py,sha256=rLOUUs_8WWuhw0lWJzkYjkr_wp2xIuJ8f5GWcNWrY90,28775
38
38
  aid_runtime/evals/predicate.py,sha256=JaeN1LJFpliI4JHYdFPtXfjH5_Aad-2-U3ZC6_hManE,8726
39
39
  aid_runtime/evals/runner.py,sha256=rI5AScHDPnwN5Ohw0I7zR2Df9pGSTE8Un6-lESCSV3g,12827
40
40
  aid_runtime/evals/trajectory.py,sha256=X7ssDigfFuMkjM6mR6LGSbb03A8iNf4oRbVqeSsU7Ww,4444
@@ -63,7 +63,7 @@ aid_runtime/retrieval/rerank.py,sha256=L4ICBi9YHDzhnKVtImKh5Wzre1HDzS8at-AKDkXBJ
63
63
  aid_runtime/retrieval/retriever.py,sha256=0Cx-_6Qcf2TRolFy4ktMseyyyr-WLphMYYHane0t9lA,24412
64
64
  aid_runtime/retrieval/stores.py,sha256=mG261rUHZIzB7niiTj_DuUzcNMOd4QYENk5ArgI1iBo,6840
65
65
  aid_runtime/retrieval/types.py,sha256=hJ5IRSD-PTfrc1xhuK6CBdX0Yr-S6L_JeSMPity8ecM,20447
66
- aid_runtime_python-0.1.180.dist-info/METADATA,sha256=etBdK95NHJHtYSkH1rNHgQ1roISR01MZiUXj-VzIPAk,17163
67
- aid_runtime_python-0.1.180.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
68
- aid_runtime_python-0.1.180.dist-info/top_level.txt,sha256=QvODgNVRDDMmLcTnoIQ4jYnhqf-N4b9sHWEmaUUxp44,12
69
- aid_runtime_python-0.1.180.dist-info/RECORD,,
66
+ aid_runtime_python-0.1.181.dist-info/METADATA,sha256=FIMdNksMJNPEjivCwc-AW9_8EvLvbTwVJ2rc6EReX9U,17163
67
+ aid_runtime_python-0.1.181.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
68
+ aid_runtime_python-0.1.181.dist-info/top_level.txt,sha256=QvODgNVRDDMmLcTnoIQ4jYnhqf-N4b9sHWEmaUUxp44,12
69
+ aid_runtime_python-0.1.181.dist-info/RECORD,,