Skip to content
System One

Speculative fan-out

Speculative fan-out is one of TypeSafe's documented patterns: "Send many questions in a single request, including speculative ones, and let your code decide what's relevant." Because questions are evaluated in parallel, extra questions usually have little effect on response time, so you ask ahead instead of making a second round trip.

Full guide: How to build with System One decision models

The docs state the mechanism directly: “All questions are evaluated in parallel, so adding more questions usually has little effect on response time.”

That flips the usual cost model. With a chat model you ask for the minimum, because every extra field is more tokens to generate and more time to wait. Here the marginal question is close to free in latency terms, so you ask everything any downstream branch might plausibly need, then throw away what the branch you took did not use.

Concrete shape. One call on an inbound support ticket can ask a Choice for which team should handle it, a Score for how frustrated the customer appears, a Noul for whether the message conveys urgency, and whatever a later branch might want. If the team comes back as billing, your code reads the billing answers and ignores the rest. Nothing needs a second request.

Pricing is the other half. Jev charges $0.042 per million input tokens and nothing for output, so speculative questions are billed as input and the answers themselves add nothing. Rate limits are set per organization, and your current limits are in TypeSafe’s developer console.

See the parallel questions fan-out recipe and support inbox triage.

Related terms