Question 1
The web-search agent has gathered several relevant sources for a research topic. The document-analysis agent now needs to examine those sources. How does information typically flow between these two specialized subagents?
- AOption A:
The coordinator receives the web-search agent’s output and includes the relevant sources and findings in the prompt used to invoke the document-analysis agent.
- BOption B:
The web-search agent directly invokes the document-analysis agent and passes the discovered sources as parameters.
- COption C:
The agents communicate through an event-driven message queue, with the document-analysis agent subscribing to web-search completion events.
- DOption D:
Show answer and explanation
Correct answer: A
Option A matches the standard coordinator-managed subagent model. The coordinator invokes the web-search agent, receives its final result, selects the useful URLs or source records, and then supplies them explicitly when invoking the document-analysis agent. This keeps task ownership, provenance, and execution order visible to the coordinator.
The Claude Agent SDK subagent documentation states that a subagent begins with a fresh context window and does not inherit the parent’s conversation history or previous tool results. The information passed through the Agent tool’s prompt is the primary parent-to-subagent context channel. Consequently, the analysis prompt must include the source URLs, documents, retrieval notes, and any questions the analyzer must answer.
Option B requires nested delegation that is neither stated nor necessary and reduces centralized observability. Options C and D describe valid custom architectures only if the application has deliberately implemented a queue or shared memory system; neither is automatic Agent SDK behavior. Coordinator-mediated handoff is therefore the expected approach. For reliability, the handoff should use structured source records rather than an informal prose statement, ensuring that the analyzer receives identifiers, provenance, relevant excerpts, and analysis objectives.