Jido.Chat.EphemeralMessage (Jido Chat v1.0.0)

Copy Markdown View Source

Canonical result of an ephemeral send attempt.

Summary

Functions

Creates an ephemeral message result struct.

Returns the Zoi schema for EphemeralMessage.

Types

t()

@type t() :: %Jido.Chat.EphemeralMessage{
  attachments: [
    %Jido.Chat.Attachment{
      data: term(),
      duration: term(),
      filename: term(),
      height: term(),
      kind: term(),
      media_type: term(),
      metadata: term(),
      path: term(),
      size_bytes: term(),
      url: term(),
      width: term()
    }
  ],
  formatted: nil | nil | binary(),
  id: binary(),
  metadata: map(),
  raw: nil | nil | any(),
  text: nil | nil | binary(),
  thread_id: binary(),
  used_fallback: boolean()
}

Functions

new(attrs)

Creates an ephemeral message result struct.

schema()

Returns the Zoi schema for EphemeralMessage.