Member Information

Demonstrates enabling the `get_member_information_tool` capability on a Team.

member_information.py
"""
Member Information
=================

Demonstrates enabling the `get_member_information_tool` capability on a Team.
"""

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

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
technical_agent = Agent(
    name="Technical Analyst",
    role="Technical investigations",
    model=OpenAIResponses(id="gpt-5-mini"),
    instructions=[
        "Handle technical implementation questions.",
        "Keep responses grounded and testable.",
    ],
)

billing_agent = Agent(
    name="Billing Specialist",
    role="Billing and invoicing",
    model=OpenAIResponses(id="gpt-5-mini"),
    instructions=[
        "Handle billing disputes and payment-related questions.",
        "Return clear next steps for account resolution.",
    ],
)


# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
support_team = Team(
    name="Support Coordination Team",
    model=OpenAIResponses(id="gpt-5-mini"),
    members=[technical_agent, billing_agent],
    get_member_information_tool=True,
    instructions=[
        "Use team members as the source of truth for routing questions.",
        "Choose the most relevant member for each request.",
    ],
    show_members_responses=True,
)


# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    support_team.print_response(
        "I have a payment chargeback and also a bug in the mobile app. Which member is relevant for this?",
        stream=True,
    )

Member information

The flag exposes get_member_information, which returns the configured member descriptions for the leader to inspect. It does not contact a billing system or diagnose the mobile app. The leader chooses whether to request that information and which member to delegate to.

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 member_information.py, then run:

python member_information.py

Full source: cookbook/03_teams/03_tools/member_information.py