Claude認定 対策ノート

講座 › 分野1 エージェントとワークフロー

1.1 エージェントアーキテクチャ

配点 4.5%Agent Architecture

まず一番単純な作りを選び、必要なときだけ複雑にする。決まった手順ならワークフロー、柔軟な判断が要るならエージェント。

未読

ワークフローとエージェントの違い

図解:ワークフローとエージェントの違い

ワークフローは、LLMとツールの呼び出し順を、あらかじめコードで決めておく作りです。エージェントは、LLM自身が次に何をするか、どのツールを使うかを動的に決めます。手順が決まった作業は、予測しやすく結果がぶれにくいワークフローが向きます。手順を事前に決められない作業は、エージェントが向きます。

出典:Building effective agents
Workflows are systems where LLMs and tools are orchestrated through predefined code paths.
https://www.anthropic.com/research/building-effective-agents(取得 2026-11-17)
出典:Building effective agents
workflows offer predictability and consistency for well-defined tasks, whereas agents are the better option when flexibility and model-driven decision-making are needed at scale
https://www.anthropic.com/research/building-effective-agents(取得 2026-11-17)

いちばん単純な解から始める

図解:いちばん単純な解から始める

Anthropicは、LLMを使うアプリでは最も単純な解を探し、必要になったときだけ複雑にすることを勧めています。エージェント的な仕組みは、遅延とコストを払う代わりに作業の質を上げるものです。検索と例示で1回の呼び出しを良くするだけで足りる場合も多く、エージェントを作らないことも選択肢です。

出典:Building effective agents
we recommend finding the simplest solution possible, and only increasing complexity when needed
https://www.anthropic.com/research/building-effective-agents(取得 2026-11-17)
出典:Building effective agents
Agentic systems often trade latency and cost for better task performance
https://www.anthropic.com/research/building-effective-agents(取得 2026-11-17)

マネージャー(オーケストレーター)とサブエージェント

図解:マネージャー(オーケストレーター)とサブエージェント

複雑な作業では、中心のエージェントが作業を分解し、配下のエージェントに任せ、結果をまとめる階層の作りを使います。Anthropicの調査機能では、リードエージェントが方針を立て、専門のサブエージェントを並列に動かしています。任せるときは、目的・出力の形式・使う道具・作業の範囲を具体的に伝えないと、作業が重複したり抜けたりします。

出典:Building effective agents
In the orchestrator-workers workflow, a central LLM dynamically breaks down tasks, delegates them to worker LLMs, and synthesizes their results.
https://www.anthropic.com/research/building-effective-agents(取得 2026-11-17)
出典:How we built our multi-agent research system
a lead agent coordinates the process while delegating to specialized subagents that operate in parallel
https://www.anthropic.com/research/multi-agent-research-system(取得 2026-11-17)
出典:How we built our multi-agent research system
Each subagent needs an objective, an output format, guidance on the tools and sources to use, and clear task boundaries.
https://www.anthropic.com/research/multi-agent-research-system(取得 2026-11-17)

サブエージェントが作業を良くする理由

図解:サブエージェントが作業を良くする理由

サブエージェントは、それぞれ自分のコンテキストウィンドウで動きます。途中のツール呼び出しや結果はサブエージェントの中にとどまり、親には最後の報告だけが返ります。そのため親のコンテキストが汚れず、別々の観点を並列に調べられます。幅広く調べる質問ほど効果が大きくなります。

出典:Subagents in the SDK
intermediate tool calls and results stay inside the subagent; only its final message returns to the parent
https://code.claude.com/docs/en/agent-sdk/subagents.md(取得 2026-11-17)
出典:How we built our multi-agent research system
multi-agent research systems excel especially for breadth-first queries that involve pursuing multiple independent directions simultaneously
https://www.anthropic.com/research/multi-agent-research-system(取得 2026-11-17)
試験のポイント