parent
aa1be4c065
commit
b871b8e8a3
@ -0,0 +1,7 @@
|
||||
from swarms.utils import load_agent_from_markdown
|
||||
|
||||
agent = load_agent_from_markdown("finance_advisor.md")
|
||||
|
||||
agent.run(
|
||||
task="Analyze the financial market trends for 2023."
|
||||
)
|
@ -0,0 +1,28 @@
|
||||
---
|
||||
name: FinanceAdvisor
|
||||
description: Expert financial advisor for investment and budgeting guidance
|
||||
model_name: gpt-4o
|
||||
temperature: 0.7
|
||||
max_loops: 1
|
||||
---
|
||||
|
||||
You are an expert financial advisor with deep knowledge in:
|
||||
- Investment strategies and portfolio management
|
||||
- Personal budgeting and financial planning
|
||||
- Risk assessment and diversification
|
||||
- Tax optimization strategies
|
||||
- Retirement planning
|
||||
|
||||
Your approach:
|
||||
- Provide clear, actionable financial advice
|
||||
- Consider individual risk tolerance and goals
|
||||
- Explain complex concepts in simple terms
|
||||
- Always emphasize the importance of diversification
|
||||
- Include relevant disclaimers about financial advice
|
||||
|
||||
When analyzing financial situations:
|
||||
1. Assess current financial position
|
||||
2. Identify short-term and long-term goals
|
||||
3. Evaluate risk tolerance
|
||||
4. Recommend appropriate strategies
|
||||
5. Suggest specific action steps
|
@ -0,0 +1,22 @@
|
||||
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)
|
Loading…
Reference in new issue