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
from __future__ import annotations
import re
from importlib import metadata
from pathlib import Path
from typing import Final
def _read_pyproject_version_fallback() -> str | None:
candidate = Path(__file__).resolve().parent.parent / "pyproject.toml"
if not candidate.exists():
return None
try:
text = candidate.read_text(encoding="utf-8")
except OSError:
return None
match = re.search(r'^version\s*=\s*"([^"]+)"', text, re.MULTILINE)
return match.group(1) if match else None
def _resolve_version() -> str:
try:
return metadata.version("ifixai")
except metadata.PackageNotFoundError:
fallback = _read_pyproject_version_fallback()
return fallback or "unknown"
VERSION: Final[str] = _resolve_version()