|
| 1 | +--- |
| 2 | +title: "Part 7: How collaborative teams of agents unlock new intelligence" |
| 3 | +date: 2025-07-21T10:34:35.011Z |
| 4 | +author: Dinesh R Singh |
| 5 | +authorimage: /img/dinesh-192-192.jpg |
| 6 | +disable: false |
| 7 | +tags: |
| 8 | + - Agentic AI |
| 9 | + - Generative AI |
| 10 | + - "Agents Mode " |
| 11 | + - Agents Communications |
| 12 | +--- |
| 13 | +<style> |
| 14 | +li { |
| 15 | + font-size: 27px; |
| 16 | + line-height: 33px; |
| 17 | + max-width: none; |
| 18 | +} |
| 19 | +</style> |
| 20 | + |
| 21 | +The rapid shift from **Generative AI to Agentic AI** marks more than a technical milestone—it represents a philosophical change in how machines reason, collaborate, and solve problems. Instead of relying on a single, all-purpose model, **Agentic AI** introduces a dynamic ecosystem of specialized agents that work together like human teams, each offering a distinct capability or perspective. |
| 22 | + |
| 23 | +One of the most transformative configurations in this space is **Collaborate Mode**, where multiple agents contribute—either asynchronously or in parallel—to achieve a unified outcome. This mode enables more nuanced problem-solving, especially in complex workflows where different types of reasoning, tools, or perspectives must come together seamlessly. |
| 24 | + |
| 25 | +[Inspired by my Medium post,](https://dineshr1493.medium.com/all-you-need-to-know-about-the-evolution-of-generative-ai-to-agentic-ai-part-7-agentic-ai-a-13ee0b43bc42) this blog breaks down the architecture, purpose, and code implementation of this mode using the AGNO framework, making the power of distributed machine collaboration more approachable and actionable. |
| 26 | + |
| 27 | +<center><img src="/img/screenshot-2025-07-21-at-4.06.15 pm.png" width="600" height="550" alt="LLM Mode" title="LLM Mode"></center> |
| 28 | + |
| 29 | +## What is Collaborate Mode? |
| 30 | + |
| 31 | +Collaborate Mode is an agent orchestration strategy where multiple intelligent agents receive the same task, operate independently, and deliver unique insights that are then synthesized by a coordinator. This design mirrors how effective human teams operate—through parallel expertise, independent judgment, and collaborative synthesis. |
| 32 | + |
| 33 | +### Ideal use cases: |
| 34 | + |
| 35 | +* Brainstorming across different domains |
| 36 | +* Aggregating cross-platform knowledge |
| 37 | +* Speeding up research through parallelism |
| 38 | +* Building consensus across diverse information sources |
| 39 | + |
| 40 | +## How it works visually |
| 41 | + |
| 42 | +Imagine each agent as a researcher assigned to a unique platform: |
| 43 | + |
| 44 | +* Reddit Agent gathers opinions from communities |
| 45 | +* HackerNews Agent scans developer insights |
| 46 | +* Twitter Agent captures trending conversations |
| 47 | +* Academic Agent retrieves scholarly context |
| 48 | + |
| 49 | +Each one returns findings from its ecosystem, which the coordinator blends into a single, meaningful response. |
| 50 | + |
| 51 | +## AGNO framework code implementation |
| 52 | + |
| 53 | +### 1. Import modules & tools |
| 54 | + |
| 55 | +```python |
| 56 | +from textwrap import dedent |
| 57 | +from agno.agent import Agent |
| 58 | +from agno.models.openai import OpenAIChat |
| 59 | +from agno.team.team import Team |
| 60 | +from agno.tools.arxiv import ArxivTools |
| 61 | +from agno.tools.duckduckgo import DuckDuckGoTools |
| 62 | +from agno.tools.googlesearch import GoogleSearchTools |
| 63 | +from agno.tools.hackernews import HackerNewsTools |
| 64 | +``` |
| 65 | + |
| 66 | +### 2. Define specialized agents |
| 67 | + |
| 68 | +Each agent is built for platform-specific intelligence gathering. |
| 69 | + |
| 70 | +### Reddit Agent |
| 71 | + |
| 72 | +```python |
| 73 | +reddit_researcher = Agent( |
| 74 | +name="Reddit Researcher", |
| 75 | +role="Research a topic on Reddit", |
| 76 | +model=OpenAIChat(id="gpt-4o"), |
| 77 | +tools=\[DuckDuckGoTools()], |
| 78 | +add_name_to_instructions=True, |
| 79 | +instructions=dedent("""You are a Reddit researcher..."""), |
| 80 | +) |
| 81 | +``` |
| 82 | + |
| 83 | +### HackerNews Agent |
| 84 | + |
| 85 | +```python |
| 86 | +hackernews_researcher = Agent( |
| 87 | +name="HackerNews Researcher", |
| 88 | +model=OpenAIChat("gpt-4o"), |
| 89 | +role="Research a topic on HackerNews.", |
| 90 | +tools=\[HackerNewsTools()], |
| 91 | +add_name_to_instructions=True, |
| 92 | +instructions=dedent("""You are a HackerNews researcher..."""), |
| 93 | +) |
| 94 | +``` |
| 95 | + |
| 96 | +### Academic Agent |
| 97 | + |
| 98 | +```python |
| 99 | +academic_paper_researcher = Agent( |
| 100 | +name="Academic Paper Researcher", |
| 101 | +model=OpenAIChat("gpt-4o"), |
| 102 | +role="Research academic papers...", |
| 103 | +tools=\[GoogleSearchTools(), ArxivTools()], |
| 104 | +add_name_to_instructions=True, |
| 105 | +instructions=dedent("""You are an academic researcher..."""), |
| 106 | +) |
| 107 | +``` |
| 108 | + |
| 109 | +## Twitter - X Agent |
| 110 | + |
| 111 | +```python |
| 112 | +twitter_researcher = Agent( |
| 113 | +name="Twitter Researcher", |
| 114 | +model=OpenAIChat("gpt-4o"), |
| 115 | +role="Research Twitter/X topics", |
| 116 | +tools=[DuckDuckGoTools()], |
| 117 | +add_name_to_instructions=True, |
| 118 | +instructions=dedent("""You are a Twitter researcher..."""), |
| 119 | + |
| 120 | +) |
| 121 | +``` |
| 122 | + |
| 123 | +### 3. Define the team |
| 124 | + |
| 125 | +```python |
| 126 | +agent_team = Team( |
| 127 | +name="Discussion Team", |
| 128 | +mode="collaborate", |
| 129 | +model=OpenAIChat("gpt-4o"), |
| 130 | +members=[ |
| 131 | + reddit_researcher, |
| 132 | + hackernews_researcher, |
| 133 | + academic_paper_researcher, |
| 134 | + twitter_researcher, |
| 135 | + |
| 136 | +], |
| 137 | + |
| 138 | +instructions=[ |
| 139 | + "You are a discussion master.", |
| 140 | + "You must conclude the discussion once consensus is reached.", |
| 141 | +], |
| 142 | + |
| 143 | +success_criteria="The team has reached a consensus.", |
| 144 | +update_team_context=True, |
| 145 | +send_team_context_to_members=True, |
| 146 | +show_tool_calls=True, |
| 147 | +markdown=True, |
| 148 | +show_members_responses=True, |
| 149 | +) |
| 150 | +``` |
| 151 | + |
| 152 | +### 4. Running the discussion |
| 153 | + |
| 154 | +```python |
| 155 | +if __name__ == "__main__": |
| 156 | + |
| 157 | +asyncio.run( |
| 158 | + agent_team.print_response( |
| 159 | + message="Start the discussion on the topic: 'What is the best way to learn to code?'", |
| 160 | + stream=True, |
| 161 | + stream_intermediate_steps=True, |
| 162 | + ) |
| 163 | +) |
| 164 | +``` |
| 165 | + |
| 166 | +### Example output |
| 167 | + |
| 168 | +```python |
| 169 | +* Reddit: Focus on project-building and freeCodeCamp |
| 170 | +* HackerNews: Start with Python and open-source |
| 171 | +* Academia: Reinforce with spaced repetition and mentorship |
| 172 | +* Twitter/X: Emphasize consistency and public learning |
| 173 | +* Team Consensus: Use beginner-friendly languages, build real-world projects, and immerse yourself in learning communities. |
| 174 | +``` |
| 175 | + |
| 176 | +<center><img src="/img/screenshot-2025-07-21-at-4.06.02 pm.png" width="600" height="550" alt="Agent Parameters" title="Agent Parameters"></center> |
| 177 | + |
| 178 | +## Pro tip: Run agents in parallel |
| 179 | + |
| 180 | +```python |
| 181 | +asyncio.run( |
| 182 | + |
| 183 | +agent_team.print_response( |
| 184 | + message="Start the discussion on the topic: 'How should we improve remote team collaboration?'", |
| 185 | + stream=True, |
| 186 | + stream_intermediate_steps=True, |
| 187 | +)) |
| 188 | +``` |
| 189 | + |
| 190 | +Using asyncio ensures agents work simultaneously, which dramatically boosts speed and output quality—especially in research-heavy or time-sensitive use cases. |
| 191 | + |
| 192 | +## Final thoughts |
| 193 | + |
| 194 | +Collaborate Mode is more than a clever orchestration pattern—it’s the embodiment of distributed intelligence. By mimicking the structure of human brainstorming, it allows AI to perform with greater breadth, depth, and creativity. With frameworks like AGNO making implementation seamless, the age of intelligent, agent-led collaboration is no longer speculative—it’s operational. |
| 195 | + |
| 196 | +> *As we continue evolving from single-shot prompts to structured autonomy, Collaborate Mode stands out as a key innovation for scalable, multi-perspective problem-solving in AI systems.* |
0 commit comments