Documentation
¶
Overview ¶
Package metrics collects observability metrics from the memory substrate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector gathers metrics from the underlying store.
func NewCollector ¶
NewCollector creates a new Collector backed by the given store.
type Snapshot ¶
type Snapshot struct {
CollectedAt time.Time `json:"collected_at"`
TotalRecords int `json:"total_records"`
RecordsByType map[string]int `json:"records_by_type"`
AvgSalience float64 `json:"avg_salience"`
AvgConfidence float64 `json:"avg_confidence"`
SalienceDistribution map[string]int `json:"salience_distribution"`
ActiveRecords int `json:"active_records"`
PinnedRecords int `json:"pinned_records"`
TotalAuditEntries int `json:"total_audit_entries"`
// RFC 15.10 metrics
MemoryGrowthRate float64 `json:"memory_growth_rate"`
RetrievalUsefulness float64 `json:"retrieval_usefulness"`
CompetenceSuccessRate float64 `json:"competence_success_rate"`
PlanReuseFrequency float64 `json:"plan_reuse_frequency"`
RevisionRate float64 `json:"revision_rate"`
}
Snapshot is a point-in-time view of memory substrate metrics.
Click to show internal directories.
Click to hide internal directories.