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

Copy Markdown View Source

Character memory with entries and capacity limit.

Summary

Functions

Returns the Zoi schema for Memory

Types

t()

@type t() :: %Jido.Character.Schema.Memory{
  capacity: integer(),
  entries: [
    %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 Memory