問題 6
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 coordinator agent has AgentDefinitions configured for all four specialized subagents, each with appropriate descriptions, prompts, and tool restrictions. During testing, you notice the coordinator correctly reasons about when to delegate – it generates messages like “I’ll ask the web search agent to find sources on this topic” – but no subagent execution ever occurs. The coordinator then proceeds as if the delegation happened and continues with incomplete information. Logs show no errors.
What is the most likely cause?
The coordinator agent has AgentDefinitions configured for all four specialized subagents, each with appropriate descriptions, prompts, and tool restrictions. During testing, you notice the coordinator correctly reasons about when to delegate – it generates messages like “I’ll ask the web search agent to find sources on this topic” – but no subagent execution ever occurs. The coordinator then proceeds as if the delegation happened and continues with incomplete information. Logs show no errors.
What is the most likely cause?
正解と解説を表示
正解
C
解説
In the Claude Agent SDK, spawning subagents is done via the Task tool; if the coordinator’s allowedTools/tool policy does not include Task, the model may still “talk about” delegating but cannot actually invoke the tool, so no subagent runs and no errors may surface beyond missing tool calls. AgentDefinitions alone don’t enable execution without the Task tool being permitted. Low max_tokens would more likely truncate outputs, and context forwarding is not the blocker for the tool invocation itself.