createSession

abstract fun createSession(user: User?, systemMessage: String? = null): 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.