演習 › 全問
問題 Q2-03
35 / 120分野2・ツールの説明と境界の設計
まだ解いていません。
1つの analyze_document ツールが、データの抽出、要約、主張の裏付けの確認を、引数の「mode」で切り替えて行っている。mode の選択ミスが多い。設計の改善として最も適切なものはどれか。
正解は A
- A正解です。万能のツールは、目的別のツールに分け、入出力の約束を決めると、選択が明確になります。
- B説明を伸ばしても、1つのツールの中に、性質の違う3つの処理が混在する構造が残ります。
- C毎回全部を実行すると、無駄が増え、結果の読み取りも複雑になります。
- D処理そのものはツールが担う必要があります。プロンプトに書き移しても、実行手段がなくなります。
考え方:汎用のツールは、目的別のツールに分け、入出力の約束を決める。
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Splitting generic tools into purpose-specific tools with defined input/output contractshttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)
出典:Writing effective tools for agents
We recommend building a few thoughtful tools targeting specific high-impact workflows, which match your evaluation tasks and scaling up from there.https://www.anthropic.com/research/writing-tools-for-agents(取得 2026-11-20)