A simple Agno agent that calls Yahoo finance tools.
Copy
Ask AI
pip install braintrust agno yfinance
agno_braintrust.py
Copy
Ask AI
from braintrust.wrappers.agno import setup_agnosetup_agno(project_name="simple-agent-project")from agno.agent import Agentfrom agno.models.openai import OpenAIChatfrom agno.tools.yfinance import YFinanceTools# Create and configure the agentagent = Agent( name="Stock Price Agent", model=OpenAIChat(id="gpt-4o-mini"), tools=[YFinanceTools()], instructions="You are a stock price agent. Answer questions in the style of a stock analyst.",)response = agent.run("What is the current price of AAPL?")print(response.content)