aid-runtime-python 0.1.92__py3-none-any.whl → 0.1.94__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 +1 -1
- aid_runtime/agents/guardrails.py +11 -0
- {aid_runtime_python-0.1.92.dist-info → aid_runtime_python-0.1.94.dist-info}/METADATA +1 -1
- {aid_runtime_python-0.1.92.dist-info → aid_runtime_python-0.1.94.dist-info}/RECORD +6 -6
- {aid_runtime_python-0.1.92.dist-info → aid_runtime_python-0.1.94.dist-info}/WHEEL +0 -0
- {aid_runtime_python-0.1.92.dist-info → aid_runtime_python-0.1.94.dist-info}/top_level.txt +0 -0
aid_runtime/__init__.py
CHANGED
aid_runtime/agents/guardrails.py
CHANGED
|
@@ -461,6 +461,17 @@ class GuardrailEngine:
|
|
|
461
461
|
"input",
|
|
462
462
|
f"decision {name!r} answered {label!r}, which this guardrail does not map",
|
|
463
463
|
)
|
|
464
|
+
if guardrail.min_confidence > 0 and answer.confidence is None:
|
|
465
|
+
# A `noul` answer carries only its probability, and the wire contract forbids
|
|
466
|
+
# a confidence on it. A floor that cannot be read must not pass: silently
|
|
467
|
+
# treating the missing value as "no opinion, therefore allow" is exactly the
|
|
468
|
+
# failure this check exists to stop.
|
|
469
|
+
raise GuardrailBlockedError(
|
|
470
|
+
guardrail.id,
|
|
471
|
+
"input",
|
|
472
|
+
f"decision {name!r} answered without a confidence, and this guardrail "
|
|
473
|
+
f"requires at least {guardrail.min_confidence:.2f}",
|
|
474
|
+
)
|
|
464
475
|
if answer.confidence is not None and answer.confidence < guardrail.min_confidence:
|
|
465
476
|
raise GuardrailBlockedError(
|
|
466
477
|
guardrail.id,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aid-runtime-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.94
|
|
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=
|
|
1
|
+
aid_runtime/__init__.py,sha256=yKDTnLa6KKTglExDmIsBr5J45MgwnNSTKW6lsq7KnQ4,12397
|
|
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=u4U97QFdYSSjOPY3D6f1-GZhkGhygEdR-apdgw_jJok,13797
|
|
@@ -19,7 +19,7 @@ aid_runtime/agents/__init__.py,sha256=Qkcjm0YokmObQWRB3G_xFd_LI4sku_GajDbE_7TzyF
|
|
|
19
19
|
aid_runtime/agents/chat_model.py,sha256=fZdCmSpoECuBVGZE1s8NmT2erT33RhDuLh3yJM6kAJE,14808
|
|
20
20
|
aid_runtime/agents/deep_agents.py,sha256=ZM6ZSc92arCvtsYGsIGdF-NryqN_tvXtRqbdlHaGpeE,26948
|
|
21
21
|
aid_runtime/agents/engine.py,sha256=RQUV49u7MLDmirnFv8YsRGdIutzUGsGaLA6Y2JT5wj0,4129
|
|
22
|
-
aid_runtime/agents/guardrails.py,sha256=
|
|
22
|
+
aid_runtime/agents/guardrails.py,sha256=2ANNAXiKQKOija2ychgDBu-DfmQv0P3Byl4LRoI52cE,27276
|
|
23
23
|
aid_runtime/agents/ir.py,sha256=GzIbaMFsq64M0eC8tB2xB6pKrXtJdT4Z1LtuM4wKEEE,25145
|
|
24
24
|
aid_runtime/agents/loop.py,sha256=T-QnC9BQ9K3RyZfHdAuzWiwMXBpQjDLGdHrLgf2fnFM,52608
|
|
25
25
|
aid_runtime/agents/memory.py,sha256=6_D6k2bzAiR2euNvzr6HB28wsUUq-R-WTQc12gkB8ao,9156
|
|
@@ -51,7 +51,7 @@ aid_runtime/retrieval/rerank.py,sha256=L4ICBi9YHDzhnKVtImKh5Wzre1HDzS8at-AKDkXBJ
|
|
|
51
51
|
aid_runtime/retrieval/retriever.py,sha256=hVLP0xOLKioYsa-aS1akyJl5p-WbpVjm8OfCw26m4CE,13941
|
|
52
52
|
aid_runtime/retrieval/stores.py,sha256=VEi68AaMHcQjdAbWOHflp3jCl1_1db71rIzZjTouLlo,5857
|
|
53
53
|
aid_runtime/retrieval/types.py,sha256=8vKP21rmE9LglnB5gtv0dLBIkXzaPqdG3-GS98K0gpc,13498
|
|
54
|
-
aid_runtime_python-0.1.
|
|
55
|
-
aid_runtime_python-0.1.
|
|
56
|
-
aid_runtime_python-0.1.
|
|
57
|
-
aid_runtime_python-0.1.
|
|
54
|
+
aid_runtime_python-0.1.94.dist-info/METADATA,sha256=kJl8So-6HKnI_2nR5qXnRlsfbJJzCPNP_CrJbRQA0Fg,17005
|
|
55
|
+
aid_runtime_python-0.1.94.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
56
|
+
aid_runtime_python-0.1.94.dist-info/top_level.txt,sha256=QvODgNVRDDMmLcTnoIQ4jYnhqf-N4b9sHWEmaUUxp44,12
|
|
57
|
+
aid_runtime_python-0.1.94.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|