MemorySession class
Engineering Session holding project-level engineering memory and context summaries.
Constructors
-
MemorySession({required String sessionId, required String projectRoot, required String summary, List<
KnowledgeEntry> entries = const [], required DateTime createdAt, required DateTime lastAccessedAt}) - MemorySession.create({required String projectRoot, String? sessionId, String summary = 'Active engineering session', DateTime? now})
-
factory
-
MemorySession.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt → DateTime
-
Session creation timestamp.
final
-
entries
→ List<
KnowledgeEntry> -
Documented knowledge entries associated with this session.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastAccessedAt → DateTime
-
Last accessed or updated timestamp.
final
- projectRoot → String
-
Project root directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String
-
Unique session identifier (e.g.
session_2026_09_04_arch).final - summary → String
-
High-level context summary of this session's engineering scope.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purgeExpired(
{DateTime? now}) → MemorySession - Removes expired entries.
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
withEntry(
KnowledgeEntry entry, {DateTime? now}) → MemorySession - Adds a new knowledge entry and returns an updated session.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited