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"]) # "high"
print(result["flags"]) # ["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"]) # ["email", "phone"]
print(result["redacted"]) # "Contact John at [EMAIL] or call [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["compliant"]) # False
print(result["violations"]) # ["no_consent", "third_party_sharing"]
print(result["severity"]) # "critical"