AgentMemoryEntry class

A long-term memory entry specific to the agent framework.

Distinct from the consciousness_sim Memory type — this stores agent-level events: decisions made, tool results, goal completions, and self-reflection outputs.

Constructors

AgentMemoryEntry({required String id, required AgentMemoryType type, required String content, String? goalId, String? taskId, double importance = 0.5, DateTime? timestamp, Map<String, dynamic>? metadata})

Properties

content → String
Plain-text or JSON content of the memory.
final
goalId → String?
Associated goal ID (if any).
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
importance ↔ double
Importance score used for retrieval ranking (0.0 – 1.0).
getter/setter pair
metadata → Map<String, dynamic>
final
recencyScore → double
Recency decay: exponential with 24-hour half-life.
no setter
retrievalCount ↔ int
How many times this memory has been retrieved.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score → double
Composite retrieval score: importance × recency.
no setter
taskId → String?
Associated task ID (if any).
final
timestamp → DateTime
final
type → AgentMemoryType
Category of memory (decision, observation, reflection, etc.).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited