from dataclasses import dataclass, field
from typing import Any


@dataclass
class Message:
    """Internal representation of a message to be sent."""

    text: str
    title: str | None = None
    metadata: dict[str, Any] = field(default_factory=dict)
