Jido.Character.Schema.MemoryEntry (Jido Character v1.0.0)

Copy Markdown View Source

Individual memory item with decay properties.

Summary

Functions

Returns the Zoi schema for MemoryEntry

Types

t()

@type t() :: %Jido.Character.Schema.MemoryEntry{
  category: nil | nil | binary(),
  content: binary(),
  decay_rate: float(),
  importance: float(),
  timestamp: nil | nil | DateTime.t()
}

Functions

new(attrs)

@spec new(map()) :: {:ok, t()} | {:error, term()}

new!(attrs)

@spec new!(map()) :: t()

schema()

Returns the Zoi schema for MemoryEntry