ApiData().GetAbsorberReject

Returns the state of the Absorber’s use as a rejection filter.

Description

This method returns the “reject” state of an existing Absorber within an existing Behavior. 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 reject = _core.ApiData().GetAbsorberReject(147, 1);

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.

### Returns The boolean value, true or false, representing the state of the “reject” constraint for the given Absorber

Returns

The boolean value, true or false, representing the state of the “reject” constraint for the given Absorber.

ApiData()