SemanticMemory class
Stores, retrieves, and manages general world-knowledge facts.
Constructors
- SemanticMemory({ConsciousnessLogger? logger})
Properties
Methods
-
factsAbout(
String subject) → List< SemanticFact> -
Retrieves facts about a given
subject. -
forget(
String factId) → void - Removes a fact by ID.
-
generaliseFromEpisodes(
List< Memory> memories) → int -
Generalises from episodic
memoriesinto semantic facts. -
getAll(
) → List< SemanticFact> - All stored facts.
-
getHighConfidenceFacts(
{double minConfidence = 0.7}) → List< SemanticFact> -
Returns all facts above a minimum
confidencethreshold. -
getMostFrequentFacts(
int n) → List< SemanticFact> -
Returns the
nmost frequently seen facts. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String query, {int maxResults = 10}) → List< Memory> -
Searches facts whose content contains
querytokens. -
storeFact(
{required String subject, required String predicate, required String object, double confidence = 0.5, String? episodeId}) → SemanticFact - Stores or reinforces a subject–predicate–object fact.
-
storeMemory(
Memory memory) → void - Stores a raw Memory object directly (non-triple form).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited