MemoryScope

sealed interface MemoryScope(source)

Defines the operational boundary for memory storage and retrieval. Memory scope determines how information is shared and isolated between different components of the system.

Inheritors

Types

Link copied to clipboard
@Serializable
data class Agent(val name: String) : MemoryScope

Scope for memories specific to a single agent instance Used when information should be isolated to a particular agent's context

Link copied to clipboard
@Serializable
object CrossProduct : MemoryScope

Scope for memories shared across all products Used for global information that should be available everywhere

Link copied to clipboard
@Serializable
data class Feature(val id: String) : MemoryScope

Scope for memories specific to a particular feature Used when information should be shared across agent instances but only within a feature

Link copied to clipboard
@Serializable
data class Product(val name: String) : MemoryScope

Scope for memories shared within a specific product Used when information should be available across features within a product