InMemoryConversation

data class InMemoryConversation constructor(_messages: MutableList<Message> = mutableListOf(), val id: String = MobyNameGenerator.generateName(), persistent: Boolean = false) : Conversation

Constructors

Link copied to clipboard
constructor(_messages: MutableList<Message> = mutableListOf(), 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 override fun addMessage(message: Message): Conversation

Modify the state of this conversation This method is mutable, and returns itself only for convenience

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>