Builder
Collects scripted outcomes for a StubDecisionService. Get one from StubDecisionService.builder. A later outcome for the same key replaces the earlier one.
Functions
Scripts the outcome of assess with a PropositionRequest for a proposition text.
Returns a stub holding the outcomes scripted so far.
Sets the capabilities the stub reports. The default is every question kind.
Scripts the outcome of a choice question in ask, and of classify for a request whose question has this name.
Scripts the outcome of classify for a set of category ids, in any order.
Makes the stub answer each question on its own: a choice through classify, the other kinds through their per-question hooks. By default the stub answers a whole request in one question-set call.
Scripts the outcome of a proposition question in ask and in question assess calls.
Scripts the outcome of a rating question in ask and rate.