import osfrom agno.agent import Agentfrom agno.models.openai import OpenAIChatfrom agno.tools.yfinance import YFinanceToolsfrom phoenix.otel import register# Set the local collector endpoint for Arize Phoenixos.environ["PHOENIX_COLLECTOR_ENDPOINT"] = "http://localhost:6006"# Configure the Phoenix tracertracer_provider = register( project_name="agno-stock-price-agent", # Default is 'default' auto_instrument=True, # Automatically use the installed OpenInference instrumentation)# 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.", debug_mode=True,)# Use the agentagent.print_response("What is the current price of Tesla?")