In Memory Conversation Factory
class InMemoryConversationFactory(eventPublisher: <Error class: unknown class>? = null) : ConversationFactory
Factory for creating in-memory Conversation instances.
Messages are stored in memory only and not persisted; suitable for testing and ephemeral sessions. When an eventPublisher is supplied, created conversations are wrapped in an EventPublishingConversation so message events are fired.
Parameters
event Publisher
optional event publisher for firing message events
Constructors
Functions
Link copied to clipboard
Create a new conversation with the given ID.
Link copied to clipboard
open fun createForParticipants(id: String, user: User, agent: User? = null, title: String? = null): Conversation
Create a conversation for a 1-1 chat between a user and an agent.
Link copied to clipboard
Load an existing conversation from storage.