Skip to main content
Use Agno’s built-in OpenAI moderation guardrail to block content that violates OpenAI’s content policy before it reaches your Agent. It moderates both text and image input, and you can configure which categories to check.
1

Create a Python file

openai_moderation.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Agent