Recipes / Produce a machine-readable daily brief

Produce a machine-readable daily brief

/stories in recent mode. The parameters matter less than the reasoning behind them, so that is most of what is below.

The request

GET /stories
  ?mode=recent
  &language=<iso>
  &from=<24h ago>
  &limit=25

# hand the collapsed set to the model in one call

Why these parameters

A daily brief for a model is the digest recipe with the human formatting removed. Collapse first so the model sees twenty-five events rather than four hundred articles, and pass the outlet counts through — they are the only importance signal available without asking the model to invent one.

What comes back

Twenty-five distinct events with outlet counts, small enough to fit alongside a system prompt and whatever else the model needs.

How this goes wrong

Letting the model pick what matters from an unranked list. Sort by outlet count before handing it over; the model will otherwise weight by position and order becomes an accidental editorial decision.

Related recipes