Skip to main content
Evaluate agent output against content safety categories and deny responses that exceed the moderation threshold. This policy covers the four primary harm categories with a balanced threshold suitable for most user-facing applications.

Policy JSON

What It Does

  • Scans agent output for content matching hate speech, violence, sexual content, and self-harm categories
  • Scores each category from 0.0 to 1.0 and compares against the threshold
  • Denies the response if any category exceeds 0.7, preventing harmful content from reaching the user
  • Works on the output path — the LLM generates a response, TealGuard evaluates it before delivery

Example

Agent output (before moderation):
Decision object:
Response to user:

Install

Customize

For internal tools where content risk is lower, raise the threshold to 0.85. For children’s applications or highly regulated environments, lower it to 0.5.