Prompt Content
Integrate Guardrails AI to enforce strict output policies on the generated headlines. Define a Pydantic model for your headline output that includes fields like `headline: str`, `length_check: bool`, `contains_forbidden_words: bool`. Use Guardrails AI to validate that headlines: (a) do not exceed 100 characters, (b) do not contain a predefined list of 'clickbait' words (e.g., 'shocking', 'unbelievable'). Demonstrate how Guardrails AI catches and corrects or flags violations before the headline is finalized.
Try this prompt
Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.
Related Prompts
Explore similar prompts from our community
Usage Tips
Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)
Customize placeholder values with your specific requirements and context
For best results, provide clear examples and test different variations