Browse the study library +
← All practice questions

A loop stops as soon as any tool returns an empty string. Why is that wrong?

Show answer and explanation

Answer: B

Termination is decided by stop_reason (continue on tool_use, stop on end_turn). The content of a tool result — including an empty one — is data, not a stop signal.

رُکنے کا فیصلہ `stop_reason` کرتا ہے (`tool_use` پر چلتے رہیں، `end_turn` پر رُکیں)۔ ٹول کے نتیجے میں جو کچھ آئے — چاہے خالی ہو — وہ صرف معلومات ہے، رُکنے کا اشارہ نہیں۔

One practice question a week

Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.

We only use your email for these updates. See our privacy policy.