演習 › 全問
問題 Q4-15
79 / 120分野4・ログとトレースからの根本原因の切り分け
まだ解いていません。
エージェントの記録を読むと、ツールの呼び出しで、日付の引数が、毎回、決まった誤った形式になり、エラーが返っている。エラーの文面は、「失敗しました」だけである。最も適切な是正はどれか。
正解は B
- A原因は、ツールの返し方にあり、モデルの能力ではありません。
- B正解です。エラーの返し方は、正しく整形された入力の例を示すと、エージェントが自分で直せます。
- C必要な機能が使えなくなり、問題の解決になりません。
- D情報が減り、さらに直せなくなります。
考え方:ツールのエラーは、正しい入力の例を示す文面にする。
出典:Writing effective tools for agents
Tool truncation and error responses can steer agents towards more token-efficient tool-use behaviors (using filters or pagination) or give examples of correctly formatted tool inputs.https://www.anthropic.com/research/writing-tools-for-agents(取得 2026-11-23)
出典:Demystifying evals for AI agents
A transcript (also called a trace or trajectory ) is the complete record of a trial, including outputs, tool calls, reasoning, intermediate results, and any other interactions.https://www.anthropic.com/research/demystifying-evals-for-ai-agents(取得 2026-11-23)