Skip to content

Infer and configure operations

Infer

When using an inference operation, an input request is passed to the Luego engine. The engine will either compute a response or determine the list of missing elements that are needed to be able to compute a response.

Request => Either[Response, List[MissingElement]]

This type of operation is useful to derive new facts from existing/input facts.

Configure

When using a configuration operation, the input passed to the engine is made of two parts: a context object and a configuration object. The engine will then compute a modified configured and ta list of missing elements that are needed to further progress in the configuration process.

(Context, Configuration) => (Configuration, List[MissingElement])

This type of operation is useful to maintain a configuration object that is consistent with user inputs that can change over time. This can be applied to dynamic questionnaires and configuration problems.