Aggregator

Agents contribute specialized outputs that are collected and synthesized by an aggregator agent into a single, well-formatted result.

Overview

Reach for this pattern when multiple agents (or tools) produce complementary information and you want a unified summary. Executive briefings, dashboards, and cross-team status reports are common fits.

Demo Scenario: Daily Briefing Synthesizer

This runnable example assembles a morning briefing by combining three specialists:

  • Time & calendar agent โ€“ pulls the current time and today's events

  • Weather agent โ€“ reports the local forecast

  • Aggregator agent โ€“ stitches everything together into a friendly briefing

Each specialist uses a mock tool that returns static values so the demo works out of the box; swap the tools for real integrations to connect to live data.

Diagram

Aggregator pattern diagram showing multiple specialists feeding a synthesizer agent.

Implementation Steps

  1. Import tools and create specialist agents

  2. Run specialists, pass their outputs to the aggregator, and print the result

  3. Clean up demo agents

How to Run

From the repository root glaip-sdk/python/glaip-sdk:

Ensure your .env contains:

Output

Notes

  • Replace the mock tool scripts under examples/multi-agent-system-patterns/aggregator/tools/ with real integrations to connect to live systems.

  • Add more specialists (finance, news, incidents) and expand the prompt to build richer reports.

  • Combine this pattern with a router or scheduler for automated briefings.

Last updated