In Memory Conversation Factory
Factory for creating InMemoryConversation instances.
Messages are stored in memory only and not persisted. Suitable for testing and ephemeral sessions.
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.