Skip to main content

Module loop

Module loop 

Source
Expand description

Background cognition loop.

Runs pattern scanning, abstraction, gap detection, hypothesis generation, and analogy detection on a configurable interval. Uses READ-ONLY locks on meaning memory stores. Discovered insights are collected in a separate Vec.

Structs§

CognitionConfig
Configuration for the cognition loop.
CognitionLoop
The cognition loop. Spawns a background thread that periodically scans the triple store for patterns, gaps, and analogies.
CognitionState
Shared state for the cognition loop: insights and run flag.

Enums§

Insight
A single insight discovered by the cognition loop.