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

Canonical persisted thread model for `Jido.Messaging`.

# `t`

```elixir
@type t() :: %Jido.Messaging.Thread{
  assigned_agent_id: nil | nil | binary(),
  delivery_external_room_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(),
  room_id: binary(),
  root_external_message_id: nil | nil | binary(),
  root_message_id: nil | nil | binary(),
  status: :active | :archived | :closed,
  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 thread with generated ID and timestamps.

# `schema`

Returns the Zoi schema for Thread.

---

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