Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStatus ¶
FormatStatus renders dreaming state for /learn dream status.
Types ¶
type Config ¶
type Config struct {
Enabled *bool `json:"enabled"`
Frequency string `json:"frequency"` // cron, default "0 3 * * *"
MinScore float64 `json:"minScore"`
MinRecallCount int `json:"minRecallCount"`
MinUniqueSessions int `json:"minUniqueSessions"`
RecencyHalfLifeDays int `json:"recencyHalfLifeDays"`
MaxPromotedChars int `json:"maxPromotedChars"`
SessionScanLimit int `json:"sessionScanLimit"`
}
Config controls grounded dreaming sweeps.
func (Config) Normalized ¶
type Diary ¶
type Diary struct {
Path string
}
Diary appends human-readable phase blocks to DREAMS.md.
type PromoteFunc ¶
PromoteFunc writes one promoted memory entry.
type Signal ¶
type Signal struct {
ID string `json:"id"`
Text string `json:"text"`
Source string `json:"source"`
SessionID string `json:"sessionId,omitempty"`
RecallCount int `json:"recallCount"`
SessionSources []string `json:"sessionSources,omitempty"`
FirstSeen time.Time `json:"firstSeen"`
LastSeen time.Time `json:"lastSeen"`
LightHits int `json:"lightHits,omitempty"`
REMHits int `json:"remHits,omitempty"`
GroundedBackfill bool `json:"groundedBackfill,omitempty"`
}
Signal is one grounded short-term memory candidate.
type State ¶
type State struct {
Enabled bool `json:"enabled"`
LastSweep time.Time `json:"lastSweep,omitempty"`
Signals []Signal `json:"signals"`
ProcessedEvents map[string]time.Time `json:"processedEvents,omitempty"`
PromotedToday int `json:"promotedToday,omitempty"`
PromotedDate string `json:"promotedDate,omitempty"`
}
State persists dreaming machine state on disk.
Click to show internal directories.
Click to hide internal directories.