Services/Reasoning

Builds the command necessary to run the reasoner.

Original author: Cristian Vasquez

Source: https://github.com/cristianvasquez/HES-Agent/blob/master/readme.md

Source:

Methods

(inner) eyePromise(inference) → {Promise}

Source:
See:
  • invokeEye

Wrapper for "invokeEye" that builds the necessary command for you.

Parameters:
Name Type Description
inference Inference

Object containing data to be used by the reasoner

Returns:
  • Promise resolving to the output of the reasoner
Type
Promise

(inner) getEyeCommand(inference) → {String}

Source:

Build up a command for eye, from an expanded inference description

Parameters:
Name Type Description
inference Inference

Object containing data to be used by the reasoner

Returns:
  • command string to be passed to Reasoning.invokeEye
Type
String

(inner) invokeEye(command, fullOutput) → {Promise}

Source:

Executes the reasoner program using both the command string and the options set inside the server config

Parameters:
Name Type Default Description
command String

Command to be run

fullOutput Boolean true

Display full output or not, defaults to true

Returns:
  • Promise resolving to an object containing the stdout and stderr streams of the reasoner
Type
Promise