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 ifixai.evaluation.analytic_judge import _judge_timeout_from_env
from ifixai.evaluation.atomic_claims import _atomic_judge_timeout_from_env
@pytest.mark.parametrize(
"parser", [_judge_timeout_from_env, _atomic_judge_timeout_from_env]
)
@pytest.mark.parametrize("value", ["nan", "inf", "-inf", "0", "-1"])
def test_invalid_timeout_falls_back(parser, value, monkeypatch):
monkeypatch.setenv("IFIXAI_JUDGE_TIMEOUT", value)
assert parser(60.0) == 60.0
@pytest.mark.parametrize(
"parser", [_judge_timeout_from_env, _atomic_judge_timeout_from_env]
)
def test_positive_timeout_is_preserved(parser, monkeypatch):
monkeypatch.setenv("IFIXAI_JUDGE_TIMEOUT", "300.5")
assert parser() == 300.5