Chatbot

interface Chatbot

A chatbot can conduct multiple chat sessions, each identified by a contextId.

Inheritors

Functions

Link copied to clipboard
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.

Link copied to clipboard
abstract fun findSession(conversationId: String): ChatSession?

Get a chat session by conversation id.