import langwatchfrom agno.agent import Agentfrom agno.models.openai import OpenAIChatfrom agno.tools.duckduckgo import DuckDuckGoToolsfrom openinference.instrumentation.agno import AgnoInstrumentor# Initialize LangWatch and instrument Agnolangwatch.setup(instrumentors=[AgnoInstrumentor()])# Create and configure your Agno 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,)agent.print_response("What are the latest developments in artificial intelligence?")
Open the Terminal and create a python virtual environment.
python3 -m venv .venvsource .venv/bin/activate
2
Set your API key
- Sign up for an account at https://app.langwatch.ai/.- Set your LangWatch API key as an environment variables:```bashexport LANGWATCH_API_KEY=<your-key>