演習 › 全問
問題 Q2-15
37 / 120分野2・推論エフォートとコンテキストのライフサイクル
まだ解いていません。
コードの調査を行うエージェントが、数百回のツール呼び出しを行う。古いファイルの検索結果は、もう不要だが、文脈に残り続けて、上限に近づく。直近の作業の流れは保ちたい。最も適切な手段はどれか。
正解は D
- A毎回要約し直すと、費用が増え、不要な古い結果の整理の目的に対して過剰です。
- B直近の作業の流れまで文脈から消えて、作業が続けられなくなります。
- C努力量は、考える深さの調整で、文脈の量の問題に効きません。
- D正解です。古いツールの結果が不要になった、ツールを多く使うエージェントに向くのが、ルールによる削除です。
考え方:不要になった古いツール結果は、文脈の編集で消す。
出典:Context editing
**Tool result clearing:** Best for agentic workflows with heavy tool use where old tool results are no longer neededhttps://platform.claude.com/docs/en/build-with-claude/context-editing.…(取得 2026-11-23)
出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Allocating reasoning effort and selecting a context lifecycle strategy (context editing, memory tool, compaction) that sustains task performance across the stated session length for a long-running agent workload with stated latency and accuracy requirements.https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)