Package 

Interface StoryHandler


  • 
    public interface StoryHandler
    
                        

    Receive a sentence or action, and send the answer.

    Story handlers should usually not directly extend this class, but instead extend StoryHandlerBase.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit handle(BotBus bus) Receive a message from the bus.
      Double support(BotBus bus) What is the probability of bot support for the current request?
      • Methods inherited from class ai.tock.bot.definition.StoryHandler

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handle

         abstract Unit handle(BotBus bus)

        Receive a message from the bus.

        Parameters:
        bus - the bus used to get the message and send the answer
      • support

         Double support(BotBus bus)

        What is the probability of bot support for the current request?