A team of AI agents working together to research topics.
A basic team with two specialized agents:
HackerNews Researcher - Gets trending stories from HackerNews
Finance Agent - Gets stock prices and financial data
The team leader coordinates by delegating to the appropriate agent based on the user’s request.
1
Create a Python file
basic_team.py
Copy
Ask AI
from agno.agent import Agentfrom agno.models.openai import OpenAIResponsesfrom agno.team.team import Teamfrom agno.tools.hackernews import HackerNewsToolsfrom agno.tools.yfinance import YFinanceToolshn_researcher = Agent( name="HackerNews Researcher", model=OpenAIResponses(id="gpt-5.2"), role="Gets trending stories from HackerNews.", tools=[HackerNewsTools()],)finance_agent = Agent( name="Finance Agent", model=OpenAIResponses(id="gpt-5.2"), role="Gets stock prices and financial data.", tools=[YFinanceTools()],)team = Team( name="Research Team", model=OpenAIResponses(id="gpt-5.2"), members=[hn_researcher, finance_agent], instructions=[ "Delegate to the HackerNews Researcher for tech news and trends.", "Delegate to the Finance Agent for stock prices and financial data.", "Synthesize the results into a clear summary.", ], markdown=True, show_members_responses=True,)team.print_response( input="What are the top AI stories on HackerNews and how is NVDA doing?", stream=True)