Package com.embabel.chat
Interface Chatbot
-
- All Implemented Interfaces:
public interface ChatbotA chatbot can conduct multiple chat sessions, each identified by a contextId.
-
-
Method Summary
Modifier and Type Method Description abstract ChatSessioncreateSession(User user, OutputChannel outputChannel, String systemMessage)Create a new chat session. abstract ChatSessionfindSession(String conversationId)Get a chat session by conversation id. -
-
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 anonymousoutputChannel- the output channel to send messages tosystemMessage- optional system message to set the context for the session
-
findSession
abstract ChatSession findSession(String conversationId)
Get a chat session by conversation id.
-
-
-
-