ConversationFactory

Factory for creating and loading Conversation instances.

Implementations provide different storage strategies (in-memory, persistent, etc.). Use ConversationFactoryProvider to obtain factories by type.

Inheritors

Properties

Link copied to clipboard

The storage type this factory provides.

Functions

Link copied to clipboard
abstract fun create(id: String): Conversation

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
open fun load(id: String): Conversation?

Load an existing conversation from storage.