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
Implementation Steps
Import tools and create specialist agents
Run specialists, pass their outputs to the aggregator, and print the result
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.
Related Documentation
Agents guide โ Configure agent instructions and manage lifecycles.
Tools guide โ Upload Python tools and reference their IDs.
Automation & scripting โ Schedule or orchestrate the aggregator run in CI.
Security & privacy โ Apply PII masking or output-sharing policies when aggregating data.
Last updated