Jido.Chat.Author (Jido Chat v1.0.0)

Copy Markdown View Source

Canonical author identity used by normalized incoming messages.

Summary

Functions

Creates a new author.

Returns the Zoi schema for Author.

Types

t()

@type t() :: %Jido.Chat.Author{
  full_name: nil | nil | binary(),
  is_bot: boolean(),
  is_me: boolean(),
  metadata: map(),
  user_id: binary(),
  user_name: binary()
}

Functions

new(attrs)

Creates a new author.

schema()

Returns the Zoi schema for Author.