Jido.Chat.Response (Jido Chat v1.0.0)

Copy Markdown View Source

Canonical normalized outbound send/edit result.

Summary

Functions

Creates a canonical response struct from adapter data.

Returns the Zoi schema for Response.

Types

t()

@type t() :: %Jido.Chat.Response{
  channel_id: nil | nil | any(),
  channel_type: nil | nil | atom(),
  chat_id: nil | nil | any(),
  date: nil | nil | any(),
  external_message_id: nil | nil | binary(),
  external_room_id: nil | nil | any(),
  message_id: nil | nil | any(),
  metadata: map(),
  raw: nil | nil | any(),
  status: :sent | :edited | :accepted | :failed,
  timestamp: nil | nil | any()
}

Functions

new(attrs)

Creates a canonical response struct from adapter data.

schema()

Returns the Zoi schema for Response.