Implement Policy Enforcement Logic
implementationChallengeNovember 2, 2025
Prompt Content
Implement the `PolicyChecker` node. This node should receive article content and a set of dynamic policy rules (including a blacklist of domains). Use Gemini 2.5 Pro to interpret the policy and the content. If a policy violation (e.g., blacklisted source) is detected, update the graph state to trigger the 'Alternative Source' node; otherwise, proceed to the 'Summarizer' node. Ensure the Deep Think mode is engaged for nuanced policy interpretation.
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