> ## 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.

# Input Formats

> Demonstrates different input formats accepted by team run methods.

```python input_formats.py theme={null}
"""
Input Formats
=============================

Demonstrates different input formats accepted by team run methods.
"""

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.team import Team

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
researcher = Agent(
    name="Researcher",
    model=OpenAIResponses(id="gpt-5.2"),
    role="Research topics",
)

# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
team = Team(
    name="Research Team",
    members=[researcher],
    model=OpenAIResponses(id="gpt-5.2"),
)

# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    # Dict input
    team.print_response(
        {"role": "user", "content": "Explain AI"},
        stream=True,
    )

    # List input
    team.print_response(
        ["What is machine learning?", "Keep it brief."],
        stream=True,
    )

    # Messages list input
    team.print_response(
        [{"role": "user", "content": "What is deep learning?"}],
        stream=True,
    )
```

## Run the Example

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

**1. Install dependencies**

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

**2. Export your OpenAI API key**

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

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

**3. Run the example**

Save the code above as `input_formats.py`, then run:

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

Full source: [cookbook/03\_teams/04\_structured\_input\_output/input\_formats.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/03_teams/04_structured_input_output/input_formats.py)


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