Jido.Messaging.Thread (Jido Messaging v1.0.0)

Copy Markdown View Source

Canonical persisted thread model for Jido.Messaging.

Summary

Functions

Creates a thread with generated ID and timestamps.

Returns the Zoi schema for Thread.

Types

t()

@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()
      }
}

Functions

new(attrs)

Creates a thread with generated ID and timestamps.

schema()

Returns the Zoi schema for Thread.