Skip to main content
Use Agno’s built-in prompt injection guardrail to block jailbreak and injection attempts before they reach your Agent. It matches the input against a list of known injection patterns and raises an error that names the trigger.
1

Create a Python file

prompt_injection.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Run Agent