[alicebot-developer] ProgramJ
Helio Perroni Filho
alicebot-developer@list.alicebot.org
Fri, 11 Feb 2005 08:02:27 -0300 (ART)
--- Steve Prior <sprior@geekster.com> wrote:
> If I'm not mistaken you'll also need to add a
> context object to the mix:
>
> AliceBot instance = new AliceBot(someSourceOfData);
> AliceBotContext context = new AliceBotContext();
> // one of these for each
> // connection to alicebot from a client
> String response = instance.respond(request,
> context);
Yes, if you want a single engine instance to handle
multiple sessions. I was thinking of a simpler
(although probably not as scalable) solution, to have
an instance for each session.
I never guessed you could want to store the context of
a conversation... I always thought access to the user
requests and bot responses would be enough for
everyone. Something to keep in mind for the next
releases. ^_^
--
Ja mata ne.
Helio Perroni Filho
_______________________________________________________
Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e grátis