Helpers for reading and writing identity profile fields.
Summary
Functions
Returns the age from the identity profile, or nil when no identity exists.
Get a key from the identity profile with a default.
Set a key in the identity profile.
Functions
@spec age(Jido.Agent.t()) :: non_neg_integer() | nil
Returns the age from the identity profile, or nil when no identity exists.
@spec get(Jido.Agent.t(), atom(), term()) :: term()
Get a key from the identity profile with a default.
@spec put(Jido.Agent.t(), atom(), term()) :: Jido.Agent.t()
Set a key in the identity profile.