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

Copy Markdown View Source

Permanent fact the character knows (no decay).

Summary

Functions

Returns the Zoi schema for KnowledgeItem

Types

t()

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

Functions

new(attrs)

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

new!(attrs)

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

schema()

Returns the Zoi schema for KnowledgeItem