createSession

override fun createSession(user: User?, systemMessage: String?): ChatSession

Creates a new chat session and automatically registers it with the chatbot. Subclasses must implement doCreateSession to provide their specific session implementation.

Return

A new ChatSession instance

Parameters

systemMessage

Optional system message to initialize the session with