aid-runtime-python 0.1.93__tar.gz → 0.1.94__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.
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/PKG-INFO +1 -1
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/pyproject.toml +1 -1
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/__init__.py +1 -1
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/guardrails.py +11 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/PKG-INFO +1 -1
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_guardrails.py +13 -1
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/README.md +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/setup.cfg +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/__init__.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/chat_model.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/deep_agents.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/engine.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/ir.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/loop.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/memory.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/policy.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/state.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/cache.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/concurrency.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/control.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/cost.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/decisions.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/errors.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/__init__.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/dataset.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/gate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/metrics.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/predicate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/evals/runner.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/gateway.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/local_trace.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/pipeline.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/prompts.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/__init__.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/anthropic.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/base.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/bedrock.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/fake.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/http.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/vertex.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/py.typed +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/__init__.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/chunking.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/citations.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/connectors.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/embedding.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/gate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/hybrid.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/metrics.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/pgvector.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/rerank.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/retriever.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/stores.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/types.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/steps.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/structured.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/tools.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/tracing.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/types.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/SOURCES.txt +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/dependency_links.txt +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/requires.txt +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/top_level.txt +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_agents_budget.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_agents_deep_agents.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_agents_hitl.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_agents_loop.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_agents_memory.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_anthropic_provider.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_bedrock_provider.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_cache.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_concurrency.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_control.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_cost.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_dataset.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_decisions.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_evals.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_evals_assert_gate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_evals_decision.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_evals_gate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_evals_predicate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_gateway.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_http_provider.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_local_trace.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_package.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_pipeline.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_prompts.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_chunking.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_citations.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_connectors.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_embedding.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_gate.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_hybrid.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_metrics.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_rerank.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_stores.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_retrieval_types.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_steps.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_streaming.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_structured.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_tool_permissions.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_tools.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_tracing.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_types.py +0 -0
- {aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/tests/test_vertex_provider.py +0 -0
|
@@ -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
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "aid-runtime-python"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.94"
|
|
8
8
|
description = "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."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/guardrails.py
RENAMED
|
@@ -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,
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/PKG-INFO
RENAMED
|
@@ -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
|
|
@@ -908,7 +908,7 @@ class FakeDecisionClient:
|
|
|
908
908
|
self,
|
|
909
909
|
label: str = "product",
|
|
910
910
|
*,
|
|
911
|
-
confidence: float = 0.9,
|
|
911
|
+
confidence: float | None = 0.9,
|
|
912
912
|
error: Exception | None = None,
|
|
913
913
|
) -> None:
|
|
914
914
|
self.label = label
|
|
@@ -1012,6 +1012,18 @@ async def test_a_low_confidence_answer_is_a_blocked_check() -> None:
|
|
|
1012
1012
|
)
|
|
1013
1013
|
|
|
1014
1014
|
|
|
1015
|
+
async def test_a_missing_confidence_cannot_satisfy_a_declared_floor() -> None:
|
|
1016
|
+
# A `noul` answer carries only its probability, and the wire contract forbids a
|
|
1017
|
+
# confidence on it. The floor must not be defaulted to "pass": a check whose value
|
|
1018
|
+
# cannot be read has not been passed.
|
|
1019
|
+
client = FakeDecisionClient(label="product", confidence=None)
|
|
1020
|
+
|
|
1021
|
+
with pytest.raises(GuardrailBlockedError, match="without a confidence"):
|
|
1022
|
+
await decision_engine(client).check_input_async(
|
|
1023
|
+
(decision_guardrail(min_confidence=0.6),), CLEAN
|
|
1024
|
+
)
|
|
1025
|
+
|
|
1026
|
+
|
|
1015
1027
|
async def test_an_answer_outside_the_declared_labels_is_a_blocked_check() -> None:
|
|
1016
1028
|
client = FakeDecisionClient(label="maybe")
|
|
1017
1029
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/chat_model.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/agents/deep_agents.py
RENAMED
|
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
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/__init__.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/anthropic.py
RENAMED
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/providers/bedrock.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/__init__.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/chunking.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/citations.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/connectors.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/embedding.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/metrics.py
RENAMED
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/pgvector.py
RENAMED
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime/retrieval/retriever.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{aid_runtime_python-0.1.93 → aid_runtime_python-0.1.94}/src/aid_runtime_python.egg-info/requires.txt
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|