Documentation
¶
Index ¶
- type DiaryEntry
- type Manager
- func (m *Manager) AppendDiary(entry string) (string, error)
- func (m *Manager) AppendDiaryAt(ts time.Time, entry string) (string, error)
- func (m *Manager) Ensure() error
- func (m *Manager) ReadDiary(date string) (string, error)
- func (m *Manager) ReadLongTerm() (string, error)
- func (m *Manager) ReadRecentDiaries(limit int) ([]DiaryEntry, error)
- func (m *Manager) RecallContext(query string, recentLimit, keywordLimit int) (RecallResult, error)
- func (m *Manager) WriteLongTerm(content string) error
- type RecallItem
- type RecallResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiaryEntry ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AppendDiaryAt ¶
func (*Manager) ReadLongTerm ¶
func (*Manager) ReadRecentDiaries ¶
func (m *Manager) ReadRecentDiaries(limit int) ([]DiaryEntry, error)
func (*Manager) RecallContext ¶ added in v0.5.0
func (m *Manager) RecallContext(query string, recentLimit, keywordLimit int) (RecallResult, error)
RecallContext selects context fragments using recent-first + keyword-hit strategy.
func (*Manager) WriteLongTerm ¶
type RecallItem ¶ added in v0.5.0
RecallItem is one recalled memory fragment with source attribution.
type RecallResult ¶ added in v0.5.0
type RecallResult struct {
Query string
RecallCount int
SourceHits map[string]int
Items []RecallItem
}
RecallResult summarizes context recall quality and provenance.
Click to show internal directories.
Click to hide internal directories.