MemoryEntry
A single memory entry across any tier.
Usage
MemoryEntry(
key, value, tier, timestamp=0.0, ttl=None, tags=(), metadata=dict()
)Parameters
key: str-
Unique identifier for this memory within its tier.
value: Any-
The stored value (any JSON-serializable object).
tier: MemoryTier-
Which memory tier this entry belongs to.
timestamp: float = 0.0-
Unix timestamp when the entry was created or last updated.
ttl: float | None = None-
Time-to-live in seconds.
Nonemeans no expiration. tags: tuple[str, …] = ()-
Tags for categorization and search.
metadata: dict[str, Any] = dict()- Additional metadata about this entry.
Attributes
| Name | Description |
|---|---|
| is_expired | Whether this entry has exceeded its TTL. |
is_expired
Whether this entry has exceeded its TTL.
is_expired: bool