research_team.py
"""
Research Team
=============
Demonstrates research team.
"""
from agno.agent.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIResponses
from agno.os import AgentOS
from agno.os.interfaces.agui import AGUI
from agno.team import Team
from agno.tools.websearch import WebSearchTools
# ---------------------------------------------------------------------------
# Create Example
# ---------------------------------------------------------------------------
db = SqliteDb(db_file="/tmp/agui_research_team.db")
researcher = Agent(
name="researcher",
role="Research Assistant",
model=OpenAIResponses(id="gpt-5.4"),
db=db,
instructions="You are a research assistant. Find information and provide detailed analysis.",
tools=[WebSearchTools()],
markdown=True,
)
writer = Agent(
name="writer",
role="Content Writer",
model=OpenAIResponses(id="gpt-5.4"),
db=db,
instructions="You are a content writer. Create well-structured content based on research.",
tools=[WebSearchTools()],
markdown=True,
)
research_team = Team(
members=[researcher, writer],
name="research_team",
instructions="""
You are a research team that helps users with research and content creation.
First, use the researcher to gather information, then use the writer to create content.
""",
show_members_responses=True,
get_member_information_tool=True,
add_member_tools_to_context=True,
add_history_to_context=True,
)
# Setup our AgentOS app
agent_os = AgentOS(
teams=[research_team],
interfaces=[AGUI(team=research_team)],
)
app = agent_os.get_app()
# ---------------------------------------------------------------------------
# Run Example
# ---------------------------------------------------------------------------
if __name__ == "__main__":
"""Run your AgentOS.
You can see the configuration and available apps at:
http://localhost:9001/config
Use Port 9001 for Dojo compatibility.
"""
agent_os.serve(app="research_team:app", reload=True, port=9001)
Run the Example
1
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activate
uv venv --python 3.12
.venv\Scripts\activate
2
Install dependencies
uv pip install -U "agno[agui,os]" ddgs openai
3
Export your OpenAI API key
export OPENAI_API_KEY="your_openai_api_key_here"
$Env:OPENAI_API_KEY="your_openai_api_key_here"
4
Run the example
Save the code above as
research_team.py, then run:python research_team.py