Examples
- Examples
- Getting Started
- Agents
- Teams
- Workflows
- Applications
- FastAPI
- WhatsApp
- Slack
- Playground
- AG-UI
- Streamlit Apps
- Evals
Agent Concepts
- Reasoning
- Multimodal
- RAG
- User Control Flows
- Knowledge
- Memory
- Async
- Hybrid Search
- Storage
- Tools
- Vector Databases
- Context
- Embedders
- Agent State
- Observability
- Miscellaneous
Models
- Anthropic
- AWS Bedrock
- AWS Bedrock Claude
- Azure AI Foundry
- Azure OpenAI
- Cerebras
- Cerebras OpenAI
- Cohere
- DeepInfra
- DeepSeek
- Fireworks
- Gemini
- Groq
- Hugging Face
- IBM
- LM Studio
- LiteLLM
- LiteLLM OpenAI
- Meta
- Mistral
- NVIDIA
- Ollama
- OpenAI
- Perplexity
- Together
- XAI
- Vercel
AG-UI
Agent with Tools
Expose your Agno Agent with tools as a AG-UI compatible app
Code
cookbook/apps/agui/agent_with_tool.py
from agno.agent.agent import Agent
from agno.app.agui.app import AGUIApp
from agno.models.openai import OpenAIChat
from agno.tools.yfinance import YFinanceTools
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
tools=[
YFinanceTools(
stock_price=True, analyst_recommendations=True, stock_fundamentals=True
)
],
description="You are an investment analyst that researches stock prices, analyst recommendations, and stock fundamentals.",
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.
Was this page helpful?
On this page
Assistant
Responses are generated using AI and may contain mistakes.