I’ve tested this quite a lot, and currently testing it with v2, but i’m quite sure that the parallelism is only on the level of the delegation, not on the level of agents runs themselves.
You can run the following snippet and check the events, you won’t find any concurrent RunStarted events. Only when you uncomment delegate_task_to_all_members you will see the RunStarted concurrent events.
Is there anyways to actually delegate tasks to members and have them run concurrently in a real sense?
Thanks!
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.team.team import Team
from agno.tools.reasoning import ReasoningTools
from agno.tools.googlesearch import GoogleSearchTools
web_agent = Agent(
name="Web Search Agent",
role="Handle web search requests and general research",
model=OpenAIChat(id="gpt-4.1"),
tools=[GoogleSearchTools()],
instructions="Always include sources",
stream=True,
stream_intermediate_steps=True,
)
news_agent = Agent(
name="News Agent",
role="Handle news requests and current events analysis",
model=OpenAIChat(id="gpt-4.1"),
tools=[GoogleSearchTools()],
instructions=[
"Use tables to display news information and findings.",
"Clearly state the source and publication date.",
"Focus on delivering current and relevant news insights.",
],
stream=True,
stream_intermediate_steps=True,
)
reasoning_research_team = Team(
name="Reasoning Research Team",
model=OpenAIChat(id="gpt-4.1"),
members=[web_agent, news_agent],
tools=[ReasoningTools(add_instructions=True)],
instructions=[
"Collaborate to provide comprehensive research and news insights",
"Consider both current events and trending topics",
"Use tables and charts to display data clearly and professionally",
"Present findings in a structured, easy-to-follow format",
"Only output the final consolidated analysis, not individual agent responses",
],
markdown=True,
show_members_responses=True,
stream_member_events=True,
# delegate_task_to_all_members=True
)
gen = reasoning_research_team.arun("""Research and compare recent developments in renewable energy:
1. Get latest news about renewable energy innovations
2. Analyze recent developments in the renewable sector
3. Compare different renewable energy technologies
4. Recommend future trends to watch""",
stream=True,
stream_intermediate_steps=True,
)
async for event in gen:
print(event.event, event.run_id, event)