Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. Is the agent doing what is supposed to do? With iFixAi you can have this answer in less than 120 seconds.
Python agent-evaluationaiai-alignmentai-evaluationai-governanceai-safetyclidiagnostic-tooleu-ai-acthallucination-detectioniso-42001llm-evaluationllm-securitynist-ai-rmfowasp-llmprompt-injectionpythonresponsible-airisk-assessmentrisk-management
import pytest
from pydantic import ValidationError
from ifixai.core.types import RubricDimension
@pytest.mark.parametrize(
"weight", [-0.5, 1.5, float("nan"), float("inf"), float("-inf")]
)
def test_invalid_dimension_weight_is_rejected(weight):
with pytest.raises(ValidationError):
RubricDimension(name="safety", description="Safety", weight=weight)
@pytest.mark.parametrize("weight", [0.0, 0.25, 1.0])
def test_valid_dimension_weight_is_retained(weight):
assert (
RubricDimension(name="safety", description="Safety", weight=weight).weight
== weight
)