Documentation
¶
Overview ¶
Package memory stores memories: durable, source-backed knowledge derived from raw events. In v0.1 they are generated by rules (see summary.Memories); every memory keeps references to the events and sessions it came from.
Index ¶
Constants ¶
const ( TypeEpisodic = "episodic" TypeProcedural = "procedural" StatusCandidate = "candidate" )
Types and statuses.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
ProjectID string
Type string
Status string
// Before/BeforeID page backwards from the last row of the previous page
// (memories generated together share updated_at).
Before *time.Time
BeforeID string
Limit int
}
Filter selects memories.
type Memory ¶
type Memory struct {
ID string `json:"memory_id"`
ProjectID string `json:"project_id"`
ProjectName string `json:"project_name,omitempty"`
SessionID string `json:"session_id,omitempty"`
DedupKey string `json:"-"`
Scope string `json:"scope"`
Type string `json:"type"`
Title string `json:"title"`
Content string `json:"content"`
Status string `json:"status"`
Confidence float64 `json:"confidence"`
SourceRefs []SourceRef `json:"source_refs"`
Generator string `json:"generator"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Memory is one stored memory.