-
-
Notifications
You must be signed in to change notification settings - Fork 977
Expand file tree
/
Copy pathagent_loader_demo.py
More file actions
35 lines (28 loc) · 1.06 KB
/
Copy pathagent_loader_demo.py
File metadata and controls
35 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from swarms.utils import load_agent_from_markdown
agent = load_agent_from_markdown("finance_advisor.md")
agent.run(task="What were the best performing etfs in 2023")
# ---
# 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