Jido.Chat.Room (Jido Chat v1.0.0)

Copy Markdown View Source

Represents a conversation room/chat.

Rooms are the primary conversation container and can be bound to external channels (Telegram chats, Discord channels, etc.).

Summary

Functions

Creates a new room with generated ID and timestamp

Returns the Zoi schema for Room

Types

t()

@type t() :: %Jido.Chat.Room{
  external_bindings: map(),
  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(),
  name: nil | nil | binary(),
  type: :direct | :group | :channel | :thread
}

Functions

new(attrs)

Creates a new room with generated ID and timestamp

schema()

Returns the Zoi schema for Room