ApiBrain().GetResponse

Invokes the core SILVIA algorithms to get a response to the input.

Description

This method invokes AI run-time to produce a response. This response can be returned as a text string for output, but this function can also potentially invoke scripts, and can change the state of the AI depending on the input, the current state of the variable data, the current knowledge base, and behavioral data. The exceptions are any registered events and post-Exuder scripts. These must be invoked explicitly via the ApiBrain().ExecutePostEvents method.

Example Usage (Java/C#)


string result = _core.ApiBrain().GetResponse(“how are you today”, “logs/mylogfile.txt”);

Parameters

string

input

The string representing the input to be processed.

string

logFilePath

An optional file to store logging information. With pre-existing files, logging is additive.

Returns

The string representing the output produced by SILVIA.

See Also

  • ApiBrain().ExecutePostEvents