"""Data types for the memory subsystem."""

from __future__ import annotations

from dataclasses import dataclass, field
from typing import Any


@dataclass
class MemoryChunk:
    """A single piece of stored memory."""

    id: str
    text: str
    source: str  # "short_term" | "long_term"
    created_at: float
    hash: str = ""
    metadata: dict[str, Any] = field(default_factory=dict)
    embedding: list[float] | None = None
