import osfrom agno.agent import Agentfrom agno.models.openai import OpenAIChatfrom agno.tools.duckduckgo import DuckDuckGoToolsfrom 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-5-mini"), tools=[DuckDuckGoTools()], instructions="You are an internet search agent. Find and provide accurate information on any topic.", debug_mode=True,)# Use the agentagent.print_response("What are the latest developments in artificial intelligence?")