AgentMemoryEntry constructor
AgentMemoryEntry({})
Implementation
AgentMemoryEntry({
required this.id,
required this.type,
required this.content,
this.goalId,
this.taskId,
double importance = 0.5,
DateTime? timestamp,
Map<String, dynamic>? metadata,
}) : assert(importance >= 0.0 && importance <= 1.0),
importance = importance,
timestamp = timestamp ?? DateTime.now(),
metadata = metadata ?? const {};