[alicebot-archcomm] System patterns

Ernest Lergon alicebot-archcomm@list.alicebot.org
Mon, 28 Jul 2003 17:26:30 +0200


Jonathan Roewen wrote:
> Dr. Rich Wallace wrote:
>>A somewhat related question is, should an AIML program support a CONNECT
>>type signal that always activates an initialization category with the
>>CONNECT pattern, each time a new client connects, just so that such things
>>as predicate initializations always take place?
> 
> Yes, I believe the CONNECT pattern should become part of the specification,
> though where you'd define it is another matter.

There are three "system patterns" in use, which must be defined in the
startup section of the AIML files:

<aiml>
   <startup>
     <setup>
       <config name="connect-string"       value="CONNECT"/>
       <config name="infinite-loop-count"  value="128"/>
       <config name="infinite-loop-string" value="INFINITE LOOP"/>
       <config name="timeout-ms"           value="5000"/>
       <config name="timeout-string"       value="RESPONSE TIMEOUT"/>
     </setup>
     <bots>...</bots>
   </startup>
</aiml>

The template at <pat>CONNECT</pat> is used, if the user has no id - aka
first time connection - or if there is no user input. See
alice/extra.aiml shipped with ProgramV for an example.

The initialization of the user predicates is always done at a call to
the input handler with an existing user id and does not need to be
handled by a category. I think, this applies to all interpreters.

The interpreter must raise a fatal error at load time, if one of the
above patterns are missing.

A value of "0" for infinite-loop-count and timeout-ms mean, that those
cats will never be fired.

Maybe the botmaster should choose more "technical" patterns to avoid
interfering with normal patterns - aka "FN8 CONNECT 8NF", "INF99LOOP" or
  "666TIMEOUT666".

See also:
http://list.alicebot.org/pipermail/alicebot-general/2002-December/007302.html

Ernest

-- 
               ProgramV - Alice on Perl - available at
                http://www.virtualitas.net/perl/aiml/

       VIRTUALITAS - Manufacturer of fine OOPPS - since 1996
*********************************************************************
* VIRTUALITAS Inc.               *       http://www.virtualitas.net *
* Ernest Lergon                  *    mailto:Ernest@virtualitas.net *
*********************************************************************
       PGP-Fingerprint 6E6F DC17 A886 342D  D63F 7880 12F5 6BA9
         PGP-Key http://www.virtualitas.net/Ernest_Lergon.asc

---------------------------------------------------------------------
SPAM ALERT                       http://www.virtualitas.net/spam.html
---------------------------------------------------------------------