OAA Triggers
OAA agents can dynamically register interest in any data change, communication event, or real-world occurrence accessible by any agent.
oaa_AddTrigger(Type, Cond, Action, Params)
comm: on_send, on_receive message
time: “in ten minutes”, “every day at 5pm”
data: on_change, on_remove, on_add
task: “when mail arrives about...”
The actions of triggers may be any ICL expression solvable by the community of agents
Notes:
Further notes on Triggers:
- Triggers are stored using the OAA data management predicates, so agents are free to examine, search, add, or modify triggers on any other agent or agents.
- Creating a trigger requires that the user or agent specify at least its type, a conditional statement to test, and an action or other ICL expression to perform when the trigger fires. Optional parameters include: recurrence values (how many times should the trigger fire before being removed), additional test conditions to try before the trigger fires, etc