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

# Basic Coordination

> Demonstrates a simple two-member team working together on one task.

```python basic_coordination.py theme={null}
"""
Basic Coordination
=============================

Demonstrates a simple two-member team working together on one task.
"""

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

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
planner = Agent(
    name="Planner",
    role="You plan tasks and split work into clear, ordered steps.",
    model=OpenAIResponses(id="gpt-5-mini"),
)

writer = Agent(
    name="Writer",
    role="You draft concise, readable summaries from the team discussion.",
    model=OpenAIResponses(id="gpt-5-mini"),
)

# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
team = Team(
    model=OpenAIResponses(id="gpt-5-mini"),
    name="Planning Team",
    members=[planner, writer],
    instructions=[
        "Coordinate with the two members to answer the user question.",
        "First plan the response, then generate a clear final summary.",
    ],
    markdown=True,
    show_members_responses=True,
)


# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    team.print_response(
        "Create a three-step outline for launching a small coding side project.",
        stream=True,
    )
```

## Run the Example

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

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno openai
    ```
  </Step>

  <Step title="Export your OpenAI API key">
    <CodeGroup>
      ```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"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `basic_coordination.py`, then run:

    ```bash theme={null}
    python basic_coordination.py
    ```
  </Step>
</Steps>

Full source: [cookbook/03\_teams/01\_quickstart/01\_basic\_coordination.py](https://github.com/agno-agi/agno/blob/main/cookbook/03_teams/01_quickstart/01_basic_coordination.py)
