Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot search price with YFinanceTools and Gemini #171

Open
tli9181991 opened this issue Jan 18, 2025 · 0 comments
Open

cannot search price with YFinanceTools and Gemini #171

tli9181991 opened this issue Jan 18, 2025 · 0 comments

Comments

@tli9181991
Copy link

from phi.agent import Agent
from phi.model.google import Gemini
from phi.tools.yfinance import YFinanceTools

agent = Agent(
    model=Gemini(id="gemini-1.5-flash", api_key=GOOGLE_API_KEY),
    tools=[YFinanceTools(stock_price=True)],
    show_tool_calls=True,
    markdown=True,
)

agent.print_response("What is the stock price of NVDA and TSLA", stream=True)

I just write your example for price search with gemini-1.5-flash. The response is

"The available tools lack the implementation to fetch stock prices. Therefore, I cannot answer your question."

after I switched to use stock_fundamentals=True with same question asking, the get_current_stock_price is run properly. Is there any problem when implementing with gemini? They program can still be usd by leaving stock_price to be default.

phidata version 2.7.8
python version 3.11
platform colab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant