Log on: Remember me
Powered by Elgg

Timo Baumann :: Blog Archives

February 2008

February 11, 2008

Continuing from the last post, assume you want your OAA-agent to react on certain data changes. You setup a trigger with something like this:

oaaAddTrigger(data, otherSpeechEnd(_), oaaSolve(startTalking(), [reply(none)], [on(add), recurrence(whenever)])

Right? No! Well, yes but that's not enough. You have to make sure, that the data (otherSpeechEnd(X)) is already known to the facilitator.

So, in order for the trigger to work, you need two lines:

oaaAddData(otherSpeechEnd(_), []) 
aaAddTrigger(data, otherSpeechEnd(_), oaaSolve(startTalking(), [reply(none)], [on(add), recurrence(whenever)])

Very nasty behaviour, because the bug only occurs when you've restarted the facilitator and the data type is still unknown.

Keywords: howto, oaa

Posted by Timo Baumann | 0 comment(s)