Zep.Schemas.Message (Zep v1.0.0)

Copy Markdown View Source

A single chat message, as stored on a thread.

role mirrors common chat-completion roles ("user", "assistant", "system", "function", "tool", "norole") - Zep passes this through largely opaquely, so it is kept as a string here rather than a closed enum to avoid this client rejecting new role values the API adds later.

Summary

Types

role()

@type role() :: String.t()

t()

@type t() :: %Zep.Schemas.Message{
  content: String.t(),
  created_at: String.t() | nil,
  metadata: map() | nil,
  name: String.t() | nil,
  processed: boolean() | nil,
  role: role(),
  uuid: String.t() | nil
}