Skip to content

Commit 5617e57

Browse files
author
yashksaini-coder
committed
Refactor agent definitions to remove unused parameters and update stock analyzer model version
1 parent ebaae86 commit 5617e57

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

controllers/agents.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
"You are a very professional web search AI agent",
2929
"your job is to search the web for information based on the user given input",
3030
"provide exact information to the user available on the web",
31-
],
32-
structured_outputs=False,
33-
markdown=True,
31+
]
3432
)
33+
3534
financial_agent = Agent(
3635
name="financial_agent",
3736
role="get financial information",
@@ -52,9 +51,7 @@
5251
"your job is to provide financial information to users",
5352
"you can provide stock price, analyst recommendations, and stock fundamentals",
5453
"you can also provide information about companies, industries, and financial terms",
55-
],
56-
structured_outputs=False,
57-
markdown=True,
54+
]
5855
)
5956

6057
multi_ai = Agent(

controllers/stockAgent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""{
2525
"symbol": "TICKER",
2626
"company_name": "Full Company Name",
27-
"current_price": 123.45,
27+
"current_price": price or NA,
2828
"market_cap": 1234567890,
2929
"financial_ratios": {
3030
"pe_ratio": 15.6,
@@ -55,7 +55,7 @@
5555

5656
# Initialize the agent with YFinance tools
5757
stock_analyzer_agent = Agent(
58-
model=Gemini(id="gemini-1.5-flash-8b", api_key=GEMINI_API_KEY),
58+
model=Gemini(id="gemini-2.0-flash", api_key=GEMINI_API_KEY),
5959
markdown=True,
6060
tools=[YFinanceTools(
6161
stock_price=True,

0 commit comments

Comments
 (0)