ApiData().SetAbsorberReject
Enables or disables the Absorber’s use as a rejection filter.
Description
This method sets the “reject” state of an existing Absorber within an existing Behavior, modifying the current SILVIA Brain to do so. Normally, when matching Absorbers to user input, SILVIA uses these Absorbers as filters to find the closest Conceptual matches to user input, within a certain threshold (see ApiBrain().SetAbsorberThreshold). However, when the “reject” state is enabled for a particular Absorber, if the Conceptual input given by the user most closely matches that Absorber within a Behavior, then that entire Behavior is rejected from consideration. This is a useful constraint when you want to accept certain input as valid, but reject similar input as invalid, such as the difference between, “i like ice cream”, and “i don’t like ice cream”. By making one of these a rejection filter, you can easily further constrain what is acceptable input for a particular Behavior to get invoked.
Example Usage (C#)
bool success = _core.ApiData().SetAbsorberReject(147, 1, true);
Parameters
int |
id |
The integer numeric value or variable representing the unique ID of the Behavior containing the Exuder. |
int |
absorberId |
The integer numeric value or variable representing the indexed ID of the Absorber, separate from the Behavior ID. |
bool |
reject |
The boolean value, true or false, to enable or disable the “reject” constraint for the given Absorber. |
Returns
The boolean success or failure of the operation