from agno.agent.agent import Agentfrom agno.app.agui.app import AGUIAppfrom agno.models.openai import OpenAIChatfrom agno.tools.duckduckgo import DuckDuckGoToolsagent = Agent( model=OpenAIChat(id="gpt-4o"), tools=[ DuckDuckGoTools( search=True, news=True ) ], description="You are a research analyst that investigates topics, trends, and provides comprehensive information.", instructions="Format your response using markdown and use tables to display data where possible.",)agui_app = AGUIApp( agent=agent, name="Investment Analyst", app_id="investment_analyst", description="An investment analyst that researches stock prices, analyst recommendations, and stock fundamentals.",)app = agui_app.get_app()if __name__ == "__main__": agui_app.serve(app="agent_with_tool:app", port=8000, reload=True)
You can see instructions on how to setup an AG-UI compatible front-end to use this with in the AG-UI App page.