InMemoryDb
with teams for multi-agent coordination.
from agno.agent import Agent
from agno.db.in_memory import InMemoryDb
from agno.models.openai import OpenAIChat
from agno.team import Team
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.hackernews import HackerNewsTools
# Create team members
hn_researcher = Agent(
name="HackerNews Researcher",
model=OpenAIChat("gpt-5-mini"),
tools=[HackerNewsTools()],
)
web_searcher = Agent(
name="Web Searcher",
model=OpenAIChat("gpt-5-mini"),
tools=[DuckDuckGoTools()],
)
# Setup team with in-memory database
db = InMemoryDb()
team = Team(
name="Research Team",
members=[hn_researcher, web_searcher],
db=db,
)
team.print_response("Find top AI news")