AiMemory class
One remembered fact about a subject (user:<id>, agent:support, …).
Constructors
-
AiMemory({required String id, required String subjectType, required String subjectId, required String kind, required String content, String? embedModel, int importance = 3, Map<
String, dynamic> metadata = const {}, String? sourceThreadId, DateTime? expiresAt, DateTime? createdAt, DateTime? updatedAt, Map<String, dynamic> raw = const {}}) -
const
-
AiMemory.fromJson(Map<
String, dynamic> j) -
factory
Properties
- content → String
-
final
- createdAt → DateTime?
-
final
- embedModel → String?
-
final
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- importance → int
-
1–5.
final
- kind → String
-
fact,preference,episode,summary, or your own word.final -
metadata
→ Map<
String, dynamic> -
final
-
raw
→ Map<
String, dynamic> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceThreadId → String?
-
final
- subject → String
-
type:id, the formsubjectparameters take.no setter - subjectId → String
-
final
- subjectType → String
-
final
- updatedAt → DateTime?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited