You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
528 B
22 lines
528 B
from swarms.utils import load_agents_from_markdown
|
|
|
|
agents = load_agents_from_markdown(
|
|
[
|
|
"market_researcher.md",
|
|
"financial_analyst.md",
|
|
"risk_analyst.md",
|
|
]
|
|
)
|
|
|
|
# Example 3: Use agents in a workflow
|
|
from swarms.structs.sequential_workflow import SequentialWorkflow
|
|
|
|
workflow = SequentialWorkflow(agents=agents, max_loops=1)
|
|
|
|
task = """
|
|
Analyze the AI healthcare market for a $50M investment opportunity.
|
|
Focus on market size, competition, financials, and risks.
|
|
"""
|
|
|
|
result = workflow.run(task)
|