of

Returns a request that evaluates the given spec against the given input.

Return

the request

Parameters

input

the text the model reasons over, which may be empty

spec

the questions to answer


fun of(input: String, vararg questions: Question<*>): DecisionRequest

Returns a request built from the given questions, in the given order.

Return

the request

Parameters

input

the text the model reasons over, which may be empty

questions

the questions to answer, which must have unique names

Throws

if there are no questions or two share a name