Skip to main content

Module mock

Module mock 

Source
Expand description

Offline answers, so the shapes can be learned without an API key.

Deterministic: the same state and question always produce the same numbers. Plausible, not predictive โ€” nothing here reasons about anything.

Functionsยง

answer
Simulate an answer to one question. None for question shapes the simulator cannot fake.
answer_json
One answer as it arrives on the wire โ€” what :last shows offline, and what the cost estimate measures to say what an answer of this shape costs.
body
The body the mock answers would have arrived in โ€” so :last teaches the same shape offline.
models
What :models shows offline.