-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
In this recipe, we will grab information from the notes stored in the filesystem defined in the previous recipe and use it to prepare a project proposal.
To create a stronger and more coherent document, we will rely on two subagents to draft and review the proposal, passing the content between them alternately until the reviewer subagent is satisfied. Their work will be coordinated by the main agent, which we call orchestrator, which manages the full workflow and ensures that all steps are completed in the right order.
Subagents are specialized agents with individual tasks, contexts, and goals, allowing them to focus more effectively on their specific part of the work. This division of labor avoids the challenge of forcing a single agent to handle a large, complex task with one prompt trying to fit everything. The orchestrator oversees these subagents, ensuring smooth collaboration and combining their outputs into a cohesive result.
Once the subagents...