Models · 2026-08-24

A nightly job processes 10,000 documents with no human watching.

You built it on the streaming API to feel modern.

  1. AUse batch, non-streaming calls - throughput and cost matter here, not live typing
  2. BKeep streaming; it’s always the best choice
  3. CKeep streaming but write each chunk to disk as it arrives, so a crash halfway through loses as little work as possible
  4. DRun it during the day so someone can watch the stream

Answer: A

Use batch, non-streaming calls - throughput and cost matter here, not live typing

Why

Streaming exists for interactive UX - showing tokens as they arrive. For unattended bulk work, batch processing is simpler, cheaper, and higher-throughput.

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