Skip to content

Instantly share code, notes, and snippets.

@Sumanth077
Created September 26, 2025 20:58
Show Gist options
  • Save Sumanth077/c5cfad1154e7fcea6b91cabde177dcd8 to your computer and use it in GitHub Desktop.
Save Sumanth077/c5cfad1154e7fcea6b91cabde177dcd8 to your computer and use it in GitHub Desktop.
Team of agents
from agno.team import Team
from agno.tools.yfinance import YFinanceTools
# Web research agent
web_agent = Agent(
name="Web Research Agent",
role="Fetch news and current information",
model=OpenAILike(
id="openai/chat-completion/models/gpt-oss-120b",
api_key=os.environ["CLARIFAI_PAT"],
base_url="https://api.clarifai.com/v2/ext/openai/v1",
),
tools=[DuckDuckGoTools()],
markdown=True,
)
# Finance agent
finance_agent = Agent(
name="Financial Analysis Agent",
role="Analyze stock and market data",
model=OpenAILike(
id="openai/chat-completion/models/gpt-oss-120b",
api_key=os.environ["CLARIFAI_PAT"],
base_url="https://api.clarifai.com/v2/ext/openai/v1",
),
tools=[YFinanceTools()],
markdown=True,
)
# Coordinator
agent_team = Team(
members=[web_agent, finance_agent],
model=OpenAILike(
id="openai/chat-completion/models/gpt-oss-120b",
api_key=os.environ["CLARIFAI_PAT"],
base_url="https://api.clarifai.com/v2/ext/openai/v1",
),
markdown=True,
)
agent_team.print_response(
"What’s the current outlook for AI semiconductor companies like NVIDIA, AMD, and Intel?",
stream=True,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment