createSession

open override fun createSession(user: User?, outputChannel: OutputChannel, 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.

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