Package-level declarations

Types

Link copied to clipboard
interface DataSource

Represents a source of user interaction data from the application. The application implements this to feed data to the KarlContainer. This interface resides in the data package as it's specific to providing data.

Link copied to clipboard
interface DataStorage

Represents the persistent storage for KarlContainer state and user metadata. Implementations will wrap specific storage solutions (like SQLDelight or Room). This interface resides in the data package as it's specific to data persistence.

Link copied to clipboard
data class InteractionData(val type: String, val details: Map<String, Any>, val timestamp: Long, val userId: String)

Represents a single user interaction event captured from an application.

Link copied to clipboard
data class KarlContainerState(val data: ByteArray, val version: Int = 1)

Represents the complete serialized state of a KARL container for persistence and recovery.

Link copied to clipboard
sealed class KarlInstruction

Represents user-defined instructions that customize KARL's learning and prediction behavior.

Link copied to clipboard
data class Prediction(val content: String, val confidence: Float, val type: String, val metadata: Map<String, Any>? = emptyMap(), val alternatives: List<String>? = null)

Represents an AI-generated prediction, suggestion, or recommendation from the KARL system.