Scenario
You are building a multi-agent research system using the Claude Agent SDK. A coordinator agent delegates to specialized subagents: one searches the web, one analyzes documents, one synthesizes findings, and one generates reports. The system researches topics and produces comprehensive, cited reports.
The synthesis agent receives summarized findings from the web search and document analysis agents, then passes a consolidated summary to the report generator. During testing, you discover the generated reports make factual claims without proper citations – the report generator cannot attribute statements to their original sources because that metadata was lost during the summarization steps. What’s the most effective approach to ensure proper source attribution in the final reports?
community agrees
Not explained yet
No rule written for this one. Work it out from the chapters — the answer above is the dump's key, and the chapters outrank it.
1 community comments — not Anthropic's
- picked B This is the architecturally correct answer because it: - Preserves metadata at the source — Each agent outputs: json { "summary": "...", "sources": [ {"url": "...", "doc_name": "...", "page_num": 42} ] } - Maintains information integrity — Metadata never gets stripped; it travels alongside the content through each stage - Enables proper attribution downstream — The report generator receives both claims and their provenance - Follows RAG best practices — This is how retrieval-augmented systems maintain citations (content + source chunks)