ApiData().AddAbsorber
Creates a new Absorber with the given user input pattern.
Description
This function creates a new Absorber in the identified Behavior, modifying the current SILVIA Brain to do so. The returned integer Absorber ID value may be used to further modify the newly created Absorber.
Example Usage (C#)
int absorberId = _core.ApiData().AddAbsorber(147, “what is your name”);
Parameters
int |
id |
The numeric integer id of the Behavior to modify by adding an Absorber. |
string |
pattern |
The string value representing the new Absorber input pattern. |
Returns
The integer number value representing the indexed ID for the new Absorber, separate from the Behavior ID. The value is -1 if the operation failed.