InMemoryConversation

data class InMemoryConversation constructor(val messages: List<Message> = emptyList(), val id: String = MobyNameGenerator.generateName(), persistent: Boolean = false) : Conversation

Constructors

Link copied to clipboard
constructor(messages: List<Message> = emptyList(), id: String = MobyNameGenerator.generateName(), persistent: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val id: String
Link copied to clipboard
open override val messages: List<Message>

Functions

Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard

Non-null if the conversation has messages and the last message is from the user.

Link copied to clipboard
open fun persistent(): Boolean
Link copied to clipboard
open fun promptContributor(conversationFormatter: ConversationFormatter = WindowingConversationFormatter()): <Error class: unknown class>
Link copied to clipboard
open override fun withMessage(message: Message): Conversation