From LangChain safety monitoring to CrewAI compliance — here's how developers use run.pay to give their agents superpowers.
Copy-paste any example below and it works immediately with your agent ID.
import runpay
runpay.configure(agent_id="agt_your_id") # getrunpay.com/playground
result = runpay.call("halludetect", {
"response": "According to Harvard, 73.2% of AI models hallucinate daily."
})
print(result["hallucination_score"]) # 87
print(result["risk_level"]) # "HIGH"
print(result["signals"]) # ["suspicious_precision", "no_source"]
print(result["_meta"]["cost"]) # 0.01
result = runpay.call("piiscan", {
"text": "Contact John at john.doe@example.com or call +1-555-0123"
})
print(result["pii_found"]) # true
print(result["findings"]) # ["email", "phone"]
print(result["risk_level"]) # "MEDIUM"
result = runpay.call("gdprcheck", {
"text": "We collect emails and sell data to third-party advertisers without consent."
})
print(result["gdpr_compliant"]) # False
print(result["risk_level"]) # "HIGH_RISK"
print(result["issues"]) # [{"severity": "HIGH", "article": "Art. 6", "message": "..."}, ...]