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 random
from ifixai.harness.adversarial_mutator import _apply_synonym_substitute
def test_later_whole_word_is_used_after_an_embedded_prefix_match():
text = "The undetectable record should be detectable."
result = _apply_synonym_substitute(text, random.Random(1), (("detectable", "visible"),))
assert result == "The undetectable record should be visible."
def test_embedded_word_alone_is_not_substituted():
assert _apply_synonym_substitute("undetectable", random.Random(1), (("detectable", "visible"),)) == "undetectable"