Broadcast Mode

Delegate the same task to every team member with TeamMode.broadcast.

broadcast_mode.py
"""
Broadcast Mode
=============================

Demonstrates delegating the same task to all members using TeamMode.broadcast.
"""

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

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
product_manager = Agent(
    name="Product Manager",
    model=OpenAIResponses(id="gpt-5.2"),
    role="Assess user and business impact",
)

engineer = Agent(
    name="Engineer",
    model=OpenAIResponses(id="gpt-5.2"),
    role="Assess technical feasibility and risks",
)

designer = Agent(
    name="Designer",
    model=OpenAIResponses(id="gpt-5.2"),
    role="Assess UX implications and usability",
)

# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
broadcast_team = Team(
    name="Broadcast Review Team",
    members=[product_manager, engineer, designer],
    model=OpenAIResponses(id="gpt-5.2"),
    mode=TeamMode.broadcast,
    instructions=[
        "Each member must independently evaluate the same request.",
        "Provide concise recommendations from your specialist perspective.",
        "Highlight tradeoffs and open risks clearly.",
    ],
    markdown=True,
    show_members_responses=True,
)

# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    broadcast_team.print_response(
        "Should we ship a beta autopilot feature next month? Provide your recommendation and risks.",
        stream=True,
    )

In broadcast mode, one delegate_task_to_members tool call sends the same task to every member. The leader decides when to call it and may answer directly. Sync member execution is sequential; the async path can run members concurrently.

Run the Example

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate

Install dependencies

uv pip install -U agno openai

Export your OpenAI API key

export OPENAI_API_KEY="your_openai_api_key_here"

Run the example

Save the code above as broadcast_mode.py, then run:

python broadcast_mode.py

Full source: cookbook/03_teams/01_quickstart/broadcast_mode.py