# `PhoenixAI.Store.EventLog.Event`
[🔗](https://github.com/franciscpd/phoenix-ai-store/blob/v0.1.0/lib/phoenix_ai/store/event_log/event.ex#L1)

An immutable event record in the append-only event log.

Events capture significant actions (message sent, cost recorded,
policy violation, etc.) with a `type` atom and a `data` map
containing type-specific payload.

# `t`

```elixir
@type t() :: %PhoenixAI.Store.EventLog.Event{
  conversation_id: String.t() | nil,
  data: map(),
  id: String.t() | nil,
  inserted_at: DateTime.t() | nil,
  metadata: map(),
  type: atom(),
  user_id: String.t() | nil
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
