フリー問題

Claude Certified Developer – Foundations のフリー問題 3 / 20 問目

問題文

A developer is writing a custom agent loop against the Messages API. After each response, the loop must decide whether to continue. Which condition correctly indicates that the loop should execute tools and send another request?

選択肢

  1. The response has a stop_reason of max_tokens, which means the loop should resend the same request unchanged.
  2. The response has a stop_reason of tool_use, meaning Claude requested one or more tools and is waiting for their results before continuing.
  3. The response contains any text block, since text always precedes a tool call.
  4. The response has a stop_reason of end_turn, meaning Claude has more to say but ran out of turn.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。