> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Basic Team

> A team leader delegates to HackerNews and finance agents and synthesizes the results.

A basic team with two specialized agents:

1. **HackerNews Researcher** - Gets trending stories from HackerNews
2. **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**

```python basic_team.py theme={null}
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.team import Team
from agno.tools.hackernews import HackerNewsTools
from agno.tools.yfinance import YFinanceTools

hn_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
)
```

<Snippet file="create-venv-step.mdx" />

**2. Install dependencies**

```bash theme={null}
uv pip install -U agno openai yfinance
```

**3. Export your OpenAI API key**

```bash Mac/Linux theme={null}
export OPENAI_API_KEY="your_openai_api_key_here"
```

```powershell Windows theme={null}
$Env:OPENAI_API_KEY="your_openai_api_key_here"
```

**4. Run Team**

```bash theme={null}
python basic_team.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.