Interface Chatbot

  • All Implemented Interfaces:

    
    public interface Chatbot
    
                        

    A chatbot can conduct multiple chat sessions, each identified by a contextId.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ChatSession createSession(User user, OutputChannel outputChannel, String systemMessage) Create a new chat session.
      abstract ChatSession findSession(String conversationId) Get a chat session by conversation id.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createSession

         abstract ChatSession createSession(User user, OutputChannel outputChannel, String systemMessage)

        Create a new chat session. If user is provided, the session will be associated with that user. Optionally, a system message can be provided to set the context for the session.

        Parameters:
        user - the user to associate the session with, or null for anonymous
        outputChannel - the output channel to send messages to
        systemMessage - optional system message to set the context for the session