AiMemoryInput class

One memory to add: the body of memory.add(), and an item of memory.addMany().

With embedding (your own vector, 1–2000 numbers) and model (the embedding model that made it) the server calls no provider. Search only compares vectors of the same model and size.

Constructors

AiMemoryInput(String content, {String? subject, String? kind, int? importance, DateTime? expiresAt, Map<String, dynamic>? metadata, String? sourceThreadId, bool? dedupe, List<double>? embedding, String? model, int? dims})
const

Properties

content → String
final
dedupe → bool?
final
dims → int?
Checked against the length of embedding.
final
embedding → List<double>?
final
expiresAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
importance → int?
1–5 (default 3).
final
kind → String?
final
metadata → Map<String, dynamic>?
metadata.trust is reserved: a lowercase word such as user, tool or web that search can filter by.
final
model → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sourceThreadId → String?
final
subject → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Throws ArgumentError when embedding comes without model, or dims does not match it.
toString() → String
A string representation of this object.
inherited

Operators

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