# `Jido.Messaging.Message`
[🔗](https://github.com/agentjido/jido_messaging/blob/v1.0.0/lib/jido_messaging/message.ex#L1)

Canonical persisted runtime message model for `Jido.Messaging`.

# `t`

```elixir
@type t() :: %Jido.Messaging.Message{
  content: [any()],
  delivery_external_room_id: nil | nil | binary(),
  external_id: nil | nil | binary(),
  external_reply_to_id: nil | nil | binary(),
  external_thread_id: nil | nil | binary(),
  id: binary(),
  inserted_at:
    nil
    | nil
    | %DateTime{
        calendar: term(),
        day: term(),
        hour: term(),
        microsecond: term(),
        minute: term(),
        month: term(),
        second: term(),
        std_offset: term(),
        time_zone: term(),
        utc_offset: term(),
        year: term(),
        zone_abbr: term()
      },
  metadata: map(),
  reactions: map(),
  receipts: map(),
  reply_to_id: nil | nil | binary(),
  role: :user | :assistant | :system | :tool,
  room_id: binary(),
  sender_id: binary(),
  status: :sending | :sent | :delivered | :read | :failed,
  thread_id: nil | nil | binary(),
  updated_at:
    nil
    | nil
    | %DateTime{
        calendar: term(),
        day: term(),
        hour: term(),
        microsecond: term(),
        minute: term(),
        month: term(),
        second: term(),
        std_offset: term(),
        time_zone: term(),
        utc_offset: term(),
        year: term(),
        zone_abbr: term()
      }
}
```

# `new`

Creates a message with generated ID and timestamps.

# `schema`

Returns the Zoi schema for Message.

---

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