Skip to main content
This example shows how to create workflows that can terminate gracefully when quality conditions aren’t met, preventing downstream processing of invalid or unsafe data. When to use: When you need safety mechanisms, quality gates, or validation checkpoints that should prevent downstream processing if conditions aren’t met. Ideal for data validation pipelines, security checks, quality assurance workflows, or any process where continuing with invalid inputs could cause problems.
early_stop_workflow_with_agents.py