# Create instances of AgentRearrange for each flow pattern
blackstone_acquisition_analysis=AgentRearrange(
name="Blackstone-Acquisition-Analysis",
# Example 1: Automatic sequential flow
acquisition_analysis=AgentRearrange(
name="Acquisition-Analysis",
description="A system for analyzing potential acquisitions",
agents=agents,
flow=flows[0],
agents=agents
)
acquisition_analysis.set_flow_from_task("Analyze this acquisition step by step, starting with industry analysis and ending with financial recommendations")
blackstone_investment_strategy=AgentRearrange(
name="Blackstone-Investment-Strategy",
description="A system for evaluating investment opportunities",
agents=agents,
flow=flows[1],
# Example 2: Automatic parallel flow
market_research=AgentRearrange(
name="Market-Research",
description="A system for parallel market research",
agents=agents
)
blackstone_market_analysis=AgentRearrange(
name="Blackstone-Market-Analysis",
description="A system for analyzing market trends and opportunities",
agents=agents,
flow=flows[2],
market_research.set_flow_from_task("Analyze multiple market segments simultaneously to identify opportunities")