Metadata tracked per node for value function scoring.
Captures access patterns, temporal information, and accumulated rewards to enable recency, frequency, and reward-based scoring.
Summary
Functions
Returns the average reward, or 0.0 if no rewards recorded.
Creates a new metadata struct with the given options.
Increments access count and updates last accessed timestamp.
Adds a reward observation to the metadata.
Types
@type t() :: %Mnemosyne.NodeMetadata{ access_count: non_neg_integer(), created_at: DateTime.t(), cumulative_reward: float(), last_accessed_at: DateTime.t() | nil, reward_count: non_neg_integer() }
Functions
Returns the average reward, or 0.0 if no rewards recorded.
Creates a new metadata struct with the given options.
Increments access count and updates last accessed timestamp.
Adds a reward observation to the metadata.