Errors & recovery · 2026-08-10

A streamed generation fails mid-way.

When is it safe to silently fall back to another provider?

  1. AAny time during the stream
  2. BOnly before the first chunk has been sent
  3. CNever fall back
  4. DOnly after the stream finished

Answer: B

Only before the first chunk has been sent

Why

Once partial output has streamed to the user, a silent fallback would replay/garble it. Fall back only before the first chunk.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path