Control workflow execution with flexible termination logic.
run_until
parameter to control the execution of a ControlFlow workflow. We’ll create a simple research workflow that stops under various conditions, showcasing the flexibility of this feature. In this case, we’ll allow research to continue until either two topics are researched or 15 LLM calls are made.
AnyComplete
and MaxLLMCalls
conditions to control when the workflow should stop.
run_until
parameter, we can create more dynamic workflows that adapt to different scenarios. In this case, we’re balancing between getting enough research done and limiting resource usage.
ResearchPoint
objects.
|
operator to combine multiple termination conditions. ControlFlow also supports &
for more complex logic.