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

Copy Markdown View Source

Character personality - how the character behaves.

Summary

Functions

Returns the Zoi schema for Personality

Returns the trait schema (string or Trait struct)

Types

t()

@type t() :: %Jido.Character.Schema.Personality{
  quirks: [binary()],
  traits: [
    binary() | %Jido.Character.Schema.Trait{intensity: float(), name: binary()}
  ],
  values: [binary()]
}

trait()

@type trait() :: String.t() | Jido.Character.Schema.Trait.t()

Functions

new(attrs \\ %{})

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

new!(attrs \\ %{})

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

schema()

Returns the Zoi schema for Personality

trait_schema()

Returns the trait schema (string or Trait struct)