org.llm4s.agent.memory.Memory
See theMemory companion object
final case class Memory(id: MemoryId, content: String, memoryType: MemoryType, metadata: Map[String, String], timestamp: Instant, importance: Option[Double], embedding: Option[Array[Float]])
A single memory entry in the memory system.
Memories are immutable records that capture information for later retrieval. They include content, metadata for filtering, and timestamps for recency-based retrieval.
Value parameters
- content
-
The actual content/text of the memory
- embedding
-
Optional pre-computed embedding vector for semantic search
- id
-
Unique identifier for this memory
- importance
-
Optional importance score (0.0 to 1.0) for prioritization
- memoryType
-
Classification of the memory
- metadata
-
Key-value pairs for filtering and context
- timestamp
-
When this memory was created
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article