Python
Scan prompts, RAG content, and agent tool traffic from Python.
tawaguard-sdk is the official Python client for Tawa Guard — sync
(TawaGuard) and async (AsyncTawaGuard) clients, plus OpenAI Agents SDK
guardrails.
Current version:0.3.1(released 16 October 2026)
from tawaguard import TawaGuard
client = TawaGuard("YOUR_API_KEY")
result = client.analyze(user_input)
if result.action != "allow":
... # don't forward this prompt to your modelQuickstart
Scan your first prompt in a couple of minutes.
Guides
Authentication, identifiers, policy rules, and error handling.
Integrations
OpenAI Agents SDK guardrails, including tool calls and tool results.
Cookbook
Complete recipes for RAG, agents, and FastAPI.
SDK Reference
Every scan method and client option, fully typed.