Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Guardrail in code
Run
def no_empty(output): text = getattr(output, "raw", "") or "" if text.strip(): return (True, output) return (False, "Empty answer") class Out: raw = "ok" print(no_empty(Out()))
Press Run. The result appears here.
Esc
Search in
All
Docs
University