Iterative Research Agent with Planning and Sub-Agent Delegation
Multi-step research workflow that plans, executes, and refines queries using an iterative agent loop with optional sub-agent delegation.
This workflow implements an iterative research agent designed to handle complex, open-ended queries through structured planning and execution phases. User input is provided via a form, which serves as the entry point for the workflow.
A planner component analyzes the initial query and breaks it down into actionable steps. These steps are passed into an iteration loop, where a primary agent executes the research task using external tools and information sources as needed. The iteration boundary allows the workflow to revisit planning decisions and refine the approach based on intermediate results.
After each iteration, a dedicated writer component consolidates the gathered information into a coherent intermediate output. A control step then evaluates whether additional sub-agents or further iterations are required. If so, execution is routed back to the planner to expand or adjust the research strategy. Otherwise, the workflow proceeds to generate a final report.
The design separates planning, execution, synthesis, and control flow into distinct components, making the workflow suitable for deeper research tasks that benefit from iterative refinement rather than single-pass responses.
