createSession

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

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.